mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Setup config file for local-only mode, add password generation
This commit is contained in:
		
							parent
							
								
									95c7ddafd0
								
							
						
					
					
						commit
						593bd01fcd
					
				
					 3 changed files with 6 additions and 17 deletions
				
			
		| 
						 | 
				
			
			@ -17,6 +17,9 @@ lokole_abs_path: "{{ lokole_install_path }}/lokole-{{ lokole_version }}"
 | 
			
		|||
 | 
			
		||||
lokole_venv: "{{ lokole_abs_path }}/venv"
 | 
			
		||||
 | 
			
		||||
# TODO decide what directory to make this
 | 
			
		||||
lokole_run_directory: "{{ lokole_abs_path }}"
 | 
			
		||||
 | 
			
		||||
lokole_url: /lokole
 | 
			
		||||
lokole_full_url: "http://{{ iiab_hostname }}.{{ iiab_domain }}/{{ lokole_url }}"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -23,18 +23,10 @@
 | 
			
		|||
    - download
 | 
			
		||||
  when: internet_available
 | 
			
		||||
 | 
			
		||||
# - name: Generate session key
 | 
			
		||||
#   password:
 | 
			
		||||
#     length: 32
 | 
			
		||||
#     encrypt: no
 | 
			
		||||
#     _terms: /dev/null
 | 
			
		||||
#   tags:
 | 
			
		||||
#     - configure
 | 
			
		||||
 | 
			
		||||
- name: Configure Lokole
 | 
			
		||||
  template:
 | 
			
		||||
    src: webapp_secrets.sh.j2
 | 
			
		||||
    dest: {{ lokole_wd }}/webapp_secrets.sh
 | 
			
		||||
    dest: {{ lokole_run_directory }}/webapp_secrets.sh
 | 
			
		||||
  tags:
 | 
			
		||||
    - configure
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,10 +1,4 @@
 | 
			
		|||
export OPWEN_STATE_DIRECTORY='{{lokole_run_directory}}'
 | 
			
		||||
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_SESSION_KEY='{{ lookup('password', '/dev/null chars=ascii_letters,digits,_ length=32 encrypt=no }}'
 | 
			
		||||
export OPWEN_PASSWORD_SALT='{{ lookup('password', '/dev/null chars=ascii_letters,digits,_ length=16 encrypt=no }}'
 | 
			
		||||
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}}'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue