# lokole_install: False
# lokole_enabled: False

# lokole_sim_type can be: 'hologram', 'Ethernet', 'LocalOnly', or 'mkwvconf'
# Details: https://github.com/ascoderu/lokole/blob/master/install.py#L35
# lokole_sim_type: LocalOnly

# All above are set in: github.com/iiab/iiab/blob/master/vars/default_vars.yml
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!

# Info needed to install Lokole:

# By default, IIAB will always try to install the latest Lokole as published on
# https://pypi.org/project/opwen-email-client/ ...OR... HARDCODE EITHER HERE:
#lokole_commit:     # OPTIONAL: a 40-char git hash, from https://github.com/ascoderu/lokole/commits/master
#lokole_version:    # OPTIONAL: e.g. master or 0.5.10 or a version number from https://pypi.org/project/opwen-email-client/#history
lokole_repo: https://github.com/ascoderu/lokole.git     # the lokole git repo location to pull from if lokole_commit is defined 

lokole_admin_user: admin    # lowercase is nec here (even though uppercase Admin/changeme is IIAB's OOB recommendation: BOTH WORK to log in to http://box/lokole)
lokole_admin_password: changeme

lokole_install_path: "{{ content_base }}/lokole"    # /library/lokole
lokole_venv: "{{ lokole_install_path }}/venv"       # /library/lokole/venv
lokole_confd: /etc/supervisor/conf.d

# Info needed to run Lokole:
lokole_user: lokole
lokole_url: /lokole
lokole_uid: "2000"
lokole_home_dir: /home/{{ lokole_user }}
lokole_run_dir: "{{ lokole_home_dir }}/state"
lokole_log_dir: "{{ lokole_home_dir }}/logs"
lokole_settings: "{{ lokole_run_dir }}/settings.env"
lokole_domain_socket: "{{ lokole_run_dir }}/lokole_gunicorn.sock"
lokole_sim_type: LocalOnly

lokole_full_url: "http://{{ iiab_hostname }}.{{ iiab_domain }}{{ lokole_url }}"    # http://box.lan/lokole