From 51ef6e74c87873847c9996cb37c675e1c3304c38 Mon Sep 17 00:00:00 2001 From: Aidan Fitzgerald Date: Fri, 13 Jul 2018 21:47:33 -0400 Subject: [PATCH] Add config file template --- roles/lokole/templates/webapp_secrets.sh.j2 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/roles/lokole/templates/webapp_secrets.sh.j2 b/roles/lokole/templates/webapp_secrets.sh.j2 index 44dcfbae6..c48afd45f 100644 --- a/roles/lokole/templates/webapp_secrets.sh.j2 +++ b/roles/lokole/templates/webapp_secrets.sh.j2 @@ -1,4 +1,10 @@ export OPWEN_STATE_DIRECTORY='{{lokole_run_directory}}' -export OPWEN_SESSION_KEY='{{ lookup('password', '/dev/null chars=ascii_letters,digits,_ length=32') }}' -export OPWEN_PASSWORD_SALT='{{ lookup('password', '/dev/null chars=ascii_letters,digits,_ length=16') }}' -export OPWEN_CLIENT_NAME='iiab-{{ iiab_hostname }}' +export OPWEN_SESSION_KEY='{{lokole_config_session_key}}' +export OPWEN_PASSWORD_SALT='{{opwen_webapp_config_password_salt}}' +export OPWEN_ADMIN_SECRET='{{opwen_webapp_admin_secret}}' +export OPWEN_REMOTE_ACCOUNT_NAME='{{opwen_webapp_config_remote_account_name}}' +export OPWEN_REMOTE_ACCOUNT_KEY='{{opwen_webapp_config_remote_account_key}}' +export OPWEN_CLIENT_ID='{{opwen_webapp_config_client_id}}' +export OPWEN_CLIENT_NAME='{{opwen_webapp_config_client_name}}' +export OPWEN_EMAIL_SERVER_READ_API='{{opwen_server_read_host}}' +export OPWEN_EMAIL_SERVER_WRITE_API='{{opwen_server_write_host}}'