Compare commits

...

7 Commits

4 changed files with 28 additions and 17 deletions

1
debian/control vendored
View File

@ -28,6 +28,7 @@ Package: eole-risotto-all
Architecture: any Architecture: any
Depends: ${misc:Depends}, Depends: ${misc:Depends},
eole-risotto, eole-risotto,
eole-risotto-setting,
python3-risotto-user, python3-risotto-user,
python3-risotto-setting, python3-risotto-setting,
python3-risotto-provider, python3-risotto-provider,

View File

@ -2,9 +2,9 @@
<creole> <creole>
<files> <files>
<service>risotto</service> <service>risotto</service>
<file filelist='risotto' name='/etc/risotto/risotto.conf' mkdir='True' rm='True'/> <file name='/etc/risotto/risotto.conf' owner="risotto" mkdir='True' rm='True'/>
<file filelist='risotto' 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 filelist='risotto' name='/etc/eole/eole-db.d/tiramisu.yml' mkdir='True' rm='True'/> <file name='/etc/eole/eole-db.d/tiramisu.yml'/>
</files> </files>
<variables> <variables>
<family name='risotto'> <family name='risotto'>

View File

@ -1,8 +1,9 @@
#!/bin/bash #!/bin/bash
for dir in risotto_cache_dir risotto_seed_dir risotto_temp_dir risotto_configuration_dir risotto_images_dir; do for dir in risotto_cache_dir risotto_seed_dir risotto_temp_dir risotto_configuration_dir risotto_images_dir; do
mkdir -p $(CreoleGet $dir) dirname=$(CreoleGet $dir)
chown risotto: $dir mkdir -p $dirname
chown risotto: $dirname
done done
exit 0 exit 0

View File

@ -1,19 +1,28 @@
CONFIGURATION_DIR=%%risotto_configuration_dir CONFIGURATION_DIR=%%risotto_configuration_dir
TMP_DIR=%%risotto_temp_dir TMP_DIR="%%risotto_temp_dir"
DEFAULT_USER=%%risotto_default_user IMAGE_PATH="%%risotto_images_dir"
RISOTTO_DB_NAME=%%risotto_main_dbname DEFAULT_USER="%%risotto_default_user"
RISOTTO_DB_USER=%%risotto_db_user RISOTTO_DB_NAME="%%risotto_main_dbname"
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 DB_ADDRESS="%%risotto_db_address"
MESSAGE_PATH=%%risotto_messages_dir MESSAGE_PATH="%%risotto_messages_dir"
CACHE_ROOT_PATH=%%risotto_cache_dir CACHE_ROOT_PATH="%%risotto_cache_dir"
SRV_SEED_PATH=%%risotto_seed_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('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/"
%end if