Compare commits
3 Commits
pkg/dev/ri
...
develop
Author | SHA1 | Date | |
---|---|---|---|
99bd9b4fb5 | |||
e086e08d9a | |||
2eb256a760 |
12
lemur_cron.service
Normal file
12
lemur_cron.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Lemur
|
||||
After=lemur.service
|
||||
|
||||
[Service]
|
||||
Environment="LEMUR_CONF=/etc/lemur/lemur.conf.py"
|
||||
ExecStart=/usr/bin/lemur certificate reissue --commit
|
||||
User=lemur
|
||||
Group=lemur
|
||||
|
||||
[Install]
|
||||
WantedBy=basic.target
|
9
lemur_cron.timer
Normal file
9
lemur_cron.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Crontab for Lemur
|
||||
|
||||
[Timer]
|
||||
OnCalendar=daily
|
||||
Unit=lemur_cron.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
@ -18,4 +18,6 @@ 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)"
|
||||
systemctl stop postgresql.service
|
||||
|
||||
systemctl enable --now lemur_cron.timer
|
||||
|
||||
exit 0
|
||||
|
@ -26,6 +26,7 @@ LEMUR_ALLOWED_DOMAINS = []
|
||||
|
||||
LEMUR_EMAIL = '%%lemur_admin_email'
|
||||
LEMUR_SECURITY_TEAM_EMAIL = []
|
||||
LEMUR_EMAIL_SENDER = 'smtp'
|
||||
|
||||
# Certificate Defaults
|
||||
|
||||
|
@ -16,3 +16,7 @@ sqlscripts:
|
||||
- /usr/share/eole/db/lemur/gen/lemur.sql
|
||||
pwd_files:
|
||||
- {'file': '/etc/lemur/lemur.conf.py', 'pattern': "SQLALCHEMY_DATABASE_PASSWORD = '"}
|
||||
%set %%var = %%getVar('risotto_main_dbname', None)
|
||||
%if not %%is_empty(%%var)
|
||||
- {'file': '/etc/risotto/risotto.conf', 'pattern': "LEMUR_DB_PASSWORD='"}
|
||||
%end if
|
||||
|
Reference in New Issue
Block a user