morphit/ops/ansible/roles/matrix_bot/templates/matrix-bot.env.j2

35 lines
1.3 KiB
Django/Jinja

# /etc/morphit/matrix-bot.env
# Generated by Ansible morphit-ansible/roles/matrix_bot/.
# Do not edit by hand — your changes will be overwritten on next
# playbook run. Edit group_vars/vault.yml + re-run instead.
MORPHIT_MATRIX_BOT_HOMESERVER={{ matrix_bot_homeserver }}
MORPHIT_MATRIX_BOT_ACCESS_TOKEN={{ matrix_bot_access_token }}
MORPHIT_MATRIX_BOT_ALERT_MXID={{ matrix_bot_alert_mxid }}
{% if matrix_bot_digest_time is defined %}
MORPHIT_MATRIX_BOT_DIGEST_SEND_TIME_UTC={{ matrix_bot_digest_time }}
{% endif %}
{% if matrix_bot_dry_run | default(false) %}
MORPHIT_MATRIX_BOT_DRY_RUN=true
{% endif %}
{% if matrix_bot_extra_units is defined %}
# Additional units to tail on top of the bot's built-in defaults
# (morphit-indexer, morphit-relay, morphit-host-monitor,
# morphit-smartctl-monitor, morphit-fail2ban-monitor,
# morphit-mdadm-monitor). If you set this var, REPLACE the full
# list — it does not append.
MORPHIT_MATRIX_BOT_JOURNALCTL_UNITS={{ matrix_bot_extra_units }}
{% endif %}
{% if matrix_bot_healthcheck_port is defined %}
# Override the default healthcheck loopback port (9876).
MORPHIT_MATRIX_BOT_HEALTHCHECK_PORT={{ matrix_bot_healthcheck_port }}
{% endif %}
{% if matrix_bot_state_db is defined %}
# Override the default state-DB path (/var/lib/morphit-matrix-bot/state.db).
MORPHIT_MATRIX_BOT_STATE_DB={{ matrix_bot_state_db }}
{% endif %}