Compare commits

...

8 Commits

Author SHA1 Message Date
a9bda337a1 better lemur integration 2021-05-22 16:37:50 +02:00
3a82a76c39 variable to personalise password length 2021-05-11 18:29:17 +02:00
b83e20ce22 open port 8080 (for terraform) 2021-04-24 10:20:03 +02:00
4e4a6469d5 add systemd notifier 2020-11-14 19:01:52 +01:00
d7d406ffcc add pki informations 2020-11-14 08:16:08 +01:00
b0e81c15f7 start risotto after postgres 2020-10-20 22:36:54 +02:00
d55098922b add password support 2020-10-14 18:31:05 +02:00
e090026120 mkdir 2020-09-20 21:33:50 +02:00
3 changed files with 39 additions and 14 deletions

View File

@ -2,7 +2,10 @@
<creole> <creole>
<files> <files>
<service>risotto</service> <service>risotto</service>
<file name='/etc/risotto/risotto.conf' owner="risotto"/> <service_access service='risotto'>
<port>8080</port>
</service_access>
<file name='/etc/risotto/risotto.conf' owner="risotto" mkdir='True' rm='True'/>
<file name='/etc/eole/eole-db.d/risotto.yml' mkdir='True' rm='True'/> <file name='/etc/eole/eole-db.d/risotto.yml' mkdir='True' rm='True'/>
<file name='/etc/eole/eole-db.d/tiramisu.yml'/> <file name='/etc/eole/eole-db.d/tiramisu.yml'/>
</files> </files>

View File

@ -1,7 +1,9 @@
[Unit] [Unit]
Description=risotto Description=risotto
After=postgresql.service
[Service] [Service]
Type=notify
ExecStart=/usr/bin/risotto-server ExecStart=/usr/bin/risotto-server
User=risotto User=risotto
Group=risotto Group=risotto

View File

@ -1,20 +1,40 @@
CONFIGURATION_DIR=%%risotto_configuration_dir CONFIGURATION_DIR=%%risotto_configuration_dir
TMP_DIR=%%risotto_temp_dir TMP_DIR="%%risotto_temp_dir"
IMAGE_PATH=%%risotto_images_dir IMAGE_PATH="%%risotto_images_dir"
DEFAULT_USER=%%risotto_default_user DEFAULT_USER="%%risotto_default_user"
RISOTTO_DB_NAME=%%risotto_main_dbname RISOTTO_DB_NAME="%%risotto_main_dbname"
RISOTTO_DB_USER=%%risotto_db_user RISOTTO_DB_USER="%%risotto_db_user"
RISOTTO_DB_PASSWORD=replace_me RISOTTO_DB_PASSWORD=replace_me
TIRAMISU_DB_NAME=%%risotto_tiramisu_dbname TIRAMISU_DB_NAME="%%risotto_tiramisu_dbname"
TIRAMISU_DB_USER=%%risotto_tiramisu_db_user TIRAMISU_DB_USER="%%risotto_tiramisu_db_user"
TIRAMISU_DB_PASSWORD=replace_me TIRAMISU_DB_PASSWORD=replace_me
DB_ADDRESS=%%risotto_db_address RISOTTO_URL="http://%%nom_domaine_machine:8080/"
MESSAGE_PATH=%%risotto_messages_dir DB_ADDRESS="%%risotto_db_address"
CACHE_ROOT_PATH=%%risotto_cache_dir MESSAGE_PATH="%%risotto_messages_dir"
SRV_SEED_PATH=%%risotto_seed_dir CACHE_ROOT_PATH="%%risotto_cache_dir"
SRV_SEED_PATH="%%risotto_seed_dir"
%set %%var = %%getVar('celeryrisotto_db_user', None) %set %%var = %%getVar('celeryrisotto_db_user', None)
%if not %%is_empty(%%var) %if not %%is_empty(%%var)
CELERYRISOTTO_DB_NAME=%%celeryrisotto_main_dbname CELERYRISOTTO_DB_NAME="%%celeryrisotto_main_dbname"
CELERYRISOTTO_DB_USER=%%var CELERYRISOTTO_DB_USER="%%var"
CELERYRISOTTO_DB_PASSWORD=replace_me CELERYRISOTTO_DB_PASSWORD=replace_me
%end if %end if
%set %%var = %%getVar('lemur_db_user', None)
%if not %%is_empty(%%var)
LEMUR_DB_NAME="%%lemur_db_name"
LEMUR_DB_USER="%%var"
LEMUR_DB_PASSWORD='replace_me'
%end if
%set %%var = %%getVar('password_admin_username', None)
%if not %%is_empty(%%var)
PASSWORD_ADMIN_USERNAME="%%password_admin_username"
PASSWORD_ADMIN_EMAIL="%%password_admin_email"
PASSWORD_ADMIN_PASSWORD="%%password_admin_password"
PASSWORD_DEVICE_IDENTIFIER="%%password_device_identifier"
PASSWORD_URL="https://%%nom_domaine_machine:8001/"
PASSWORD_LENGTH=%%password_length
%end if
%if %%getVar('lemur_db_name', None)
PKI_ADMIN_PASSWORD="%%lemur_admin_password"
PKI_ADMIN_EMAIL="%%lemur_admin_email"
%end if