Compare commits
8 Commits
pkg/dev/ri
...
40ea7d186b
Author | SHA1 | Date | |
---|---|---|---|
40ea7d186b | |||
3d0eadd954 | |||
50f6890c3f | |||
fc97ee1c63 | |||
1304947542 | |||
10df7f69cf | |||
3b15634a55 | |||
356f2723f1 |
1
debian/compat
vendored
Normal file
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
12
|
19
debian/control
vendored
Normal file
19
debian/control
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
Source: eole-lemur
|
||||||
|
Section: admin
|
||||||
|
Priority: extra
|
||||||
|
Maintainer: Cadoles <contact@cadoles.com>
|
||||||
|
Build-depends: debhelper (>=11)
|
||||||
|
Standards-Version: 3.9.4
|
||||||
|
Homepage: https://forge.cadoles.com/Infra/lemur
|
||||||
|
|
||||||
|
Package: eole-lemur
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
lemur,
|
||||||
|
lemur-static,
|
||||||
|
eole-postgresql,
|
||||||
|
# for PIP
|
||||||
|
python3-pip,
|
||||||
|
gcc,
|
||||||
|
python3-dev
|
||||||
|
Description: Lemur - eolisation
|
10
debian/copyright
vendored
Normal file
10
debian/copyright
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: lemur
|
||||||
|
Upstream-Contact: Cadoles <contact@cadoles.com>
|
||||||
|
Source: https://forge.cadoles.com/Infra/lemur
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: Lemur
|
||||||
|
License: Apache-2.0 License
|
||||||
|
|
||||||
|
License: Apache-2.0 License
|
5
debian/eole-lemur.install
vendored
Normal file
5
debian/eole-lemur.install
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
dicos usr/share/eole/creole/
|
||||||
|
tmpl/* usr/share/eole/creole/distrib/
|
||||||
|
posttemplate/* usr/share/eole/posttemplate/
|
||||||
|
funcs/* usr/share/creole/funcs
|
||||||
|
db/* /usr/share/eole/db/lemur/gen/
|
12
debian/eole-lemur.postinst
vendored
Normal file
12
debian/eole-lemur.postinst
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = configure ]; then
|
||||||
|
# Make sure the administrative user exists
|
||||||
|
if ! getent passwd lemur > /dev/null; then
|
||||||
|
adduser --system --home /usr/share/lemur --no-create-home --group --gecos "User for lemur" lemur --quiet
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
1
debian/lemur.service
vendored
Symbolic link
1
debian/lemur.service
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../lemur.service
|
11
debian/rules
vendored
Normal file
11
debian/rules
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
# -*- makefile -*-
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
override_dh_installsystemd:
|
||||||
|
dh_installsystemd --name=lemur --no-enable --no-start --no-stop-on-upgrade
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<creole>
|
<creole>
|
||||||
<files>
|
<files>
|
||||||
<!--service>lemur</service-->
|
<service>lemur</service>
|
||||||
<file name='/etc/lemur/lemur.conf.py' mkdir='True'/>
|
<file name='/etc/lemur/lemur.conf.py' mkdir='True'/>
|
||||||
<file name='/etc/eole/eole-db.d/lemur.yml'/>
|
<file name='/etc/eole/eole-db.d/lemur.yml'/>
|
||||||
<file name='/etc/nginx/web.d/lemur.conf' source='nginx-lemur.conf'/>
|
<file name='/etc/nginx/web.d/lemur.conf' source='nginx-lemur.conf'/>
|
||||||
</files>
|
</files>
|
||||||
<variables>
|
<variables>
|
||||||
<family name='lemur'>
|
<family name='lemur'>
|
||||||
@ -18,6 +18,18 @@
|
|||||||
<value>lemur</value>
|
<value>lemur</value>
|
||||||
</variable>
|
</variable>
|
||||||
<variable name='lemur_admin_password' type='password' description="Mot de passe de l'utilisateur admin de Lemur" auto_save="True"/>
|
<variable name='lemur_admin_password' type='password' description="Mot de passe de l'utilisateur admin de Lemur" auto_save="True"/>
|
||||||
|
<variable name='lemur_admin_email' type='mail' description="Adresse courriel d'administration de Lemur" mandatory="True"/>
|
||||||
|
<variable name='lemur_default_country' type='string' description="" mandatory="True">
|
||||||
|
<value>FR</value>
|
||||||
|
</variable>
|
||||||
|
<variable name='lemur_default_state' type='string' description="" mandatory="True">
|
||||||
|
<value>Bourgogne</value>
|
||||||
|
</variable>
|
||||||
|
<variable name='lemur_default_location' type='string' description="" mandatory="True">
|
||||||
|
<value>Dijon</value>
|
||||||
|
</variable>
|
||||||
|
<variable name='lemur_default_organization' type='string' description="" mandatory="True"/>
|
||||||
|
<variable name='lemur_default_organization_unit' type='string' description="" mandatory="True"/>
|
||||||
</family>
|
</family>
|
||||||
</variables>
|
</variables>
|
||||||
<constraints>
|
<constraints>
|
||||||
|
@ -3,7 +3,7 @@ Description=Lemur
|
|||||||
After=postgresql.service
|
After=postgresql.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/lemur start -b 127.0.0.1:8002 -c /etc/lemur/lemur.conf.py
|
ExecStart=/usr/bin/lemur -c /etc/lemur/lemur.conf.py start -b 127.0.0.1:8002
|
||||||
User=lemur
|
User=lemur
|
||||||
Group=lemur
|
Group=lemur
|
||||||
|
|
||||||
|
@ -12,8 +12,10 @@ chown lemur: /var/log/lemur/
|
|||||||
chmod 640 /etc/lemur/*
|
chmod 640 /etc/lemur/*
|
||||||
chgrp lemur /etc/lemur/*
|
chgrp lemur /etc/lemur/*
|
||||||
systemctl start postgresql.service
|
systemctl start postgresql.service
|
||||||
|
psql -Upostgres -c "grant all on all tables in schema public to lemur" lemur
|
||||||
|
psql -Upostgres -c "grant all on all sequences in schema public to lemur" lemur
|
||||||
|
psql -Upostgres -c "grant all on all functions in schema public to lemur" lemur
|
||||||
su - lemur -s /bin/bash -c "lemur --config=/etc/lemur/lemur.conf.py init --password $(CreoleGet lemur_admin_password)"
|
su - lemur -s /bin/bash -c "lemur --config=/etc/lemur/lemur.conf.py init --password $(CreoleGet lemur_admin_password)"
|
||||||
systemctl stop postgresql.service
|
systemctl stop postgresql.service
|
||||||
rm -f *.log
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -24,16 +24,20 @@ LEMUR_ALLOWED_DOMAINS = []
|
|||||||
|
|
||||||
# Mail Server
|
# Mail Server
|
||||||
|
|
||||||
LEMUR_EMAIL = ''
|
LEMUR_EMAIL = '%%lemur_admin_email'
|
||||||
LEMUR_SECURITY_TEAM_EMAIL = []
|
LEMUR_SECURITY_TEAM_EMAIL = []
|
||||||
|
|
||||||
# Certificate Defaults
|
# Certificate Defaults
|
||||||
|
|
||||||
LEMUR_DEFAULT_COUNTRY = ''
|
LEMUR_DEFAULT_COUNTRY = '%%lemur_default_country'
|
||||||
LEMUR_DEFAULT_STATE = ''
|
LEMUR_DEFAULT_STATE = '%%lemur_default_state'
|
||||||
LEMUR_DEFAULT_LOCATION = ''
|
LEMUR_DEFAULT_LOCATION = '%%lemur_default_location'
|
||||||
LEMUR_DEFAULT_ORGANIZATION = ''
|
LEMUR_DEFAULT_ORGANIZATION = '%%lemur_default_organization'
|
||||||
LEMUR_DEFAULT_ORGANIZATIONAL_UNIT = ''
|
LEMUR_DEFAULT_ORGANIZATIONAL_UNIT = '%%lemur_default_organization_unit'
|
||||||
|
|
||||||
|
# Default issuer
|
||||||
|
|
||||||
|
LEMUR_DEFAULT_ISSUER_PLUGIN = 'cryptography-issuer'
|
||||||
|
|
||||||
# Authentication Providers
|
# Authentication Providers
|
||||||
ACTIVE_PROVIDERS = []
|
ACTIVE_PROVIDERS = []
|
||||||
@ -45,6 +49,7 @@ METRIC_PROVIDERS = []
|
|||||||
|
|
||||||
LOG_LEVEL = "DEBUG"
|
LOG_LEVEL = "DEBUG"
|
||||||
LOG_FILE = "/var/log/lemur/lemur.log"
|
LOG_FILE = "/var/log/lemur/lemur.log"
|
||||||
|
LOG_UPGRADE_FILE = '/var/log/lemur/db_upgrade.log'
|
||||||
|
|
||||||
|
|
||||||
# Database
|
# Database
|
||||||
|
Reference in New Issue
Block a user