1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

Setup config file for local-only mode, add password generation

This commit is contained in:
Aidan Fitzgerald 2018-07-22 23:29:57 -04:00 committed by Aidan Fitzgerald
parent 1284a62246
commit f1cc074c0f
3 changed files with 6 additions and 17 deletions

View file

@ -17,6 +17,9 @@ lokole_abs_path: "{{ lokole_install_path }}/lokole-{{ lokole_version }}"
lokole_venv: "{{ lokole_abs_path }}/venv" lokole_venv: "{{ lokole_abs_path }}/venv"
# TODO decide what directory to make this
lokole_run_directory: "{{ lokole_abs_path }}"
lokole_url: /lokole lokole_url: /lokole
lokole_full_url: "http://{{ iiab_hostname }}.{{ iiab_domain }}/{{ lokole_url }}" lokole_full_url: "http://{{ iiab_hostname }}.{{ iiab_domain }}/{{ lokole_url }}"

View file

@ -23,18 +23,10 @@
- download - download
when: internet_available when: internet_available
# - name: Generate session key
# password:
# length: 32
# encrypt: no
# _terms: /dev/null
# tags:
# - configure
- name: Configure Lokole - name: Configure Lokole
template: template:
src: webapp_secrets.sh.j2 src: webapp_secrets.sh.j2
dest: {{ lokole_wd }}/webapp_secrets.sh dest: {{ lokole_run_directory }}/webapp_secrets.sh
tags: tags:
- configure - configure

View file

@ -1,10 +1,4 @@
export OPWEN_STATE_DIRECTORY='{{lokole_run_directory}}' export OPWEN_STATE_DIRECTORY='{{lokole_run_directory}}'
export OPWEN_SESSION_KEY='{{lokole_config_session_key}}' export OPWEN_SESSION_KEY='{{ lookup('password', '/dev/null chars=ascii_letters,digits,_ length=32 encrypt=no }}'
export OPWEN_PASSWORD_SALT='{{opwen_webapp_config_password_salt}}' export OPWEN_PASSWORD_SALT='{{ lookup('password', '/dev/null chars=ascii_letters,digits,_ length=16 encrypt=no }}'
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='iiab-{{ iiab_hostname }}' export OPWEN_CLIENT_NAME='iiab-{{ iiab_hostname }}'
export OPWEN_EMAIL_SERVER_READ_API='{{opwen_server_read_host}}'
export OPWEN_EMAIL_SERVER_WRITE_API='{{opwen_server_write_host}}'