2022-02-05 20:32:54 +00:00
|
|
|
---
|
2020-07-20 11:13:08 +00:00
|
|
|
# matrix-reminder-bot is a bot for one-off and recurring reminders
|
2022-07-16 20:59:21 +00:00
|
|
|
# Project source code URL: https://github.com/anoadragon453/matrix-reminder-bot
|
2020-07-20 11:13:08 +00:00
|
|
|
|
|
|
|
matrix_bot_matrix_reminder_bot_enabled: true
|
2021-07-25 21:16:37 +00:00
|
|
|
|
2022-01-07 10:18:45 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_container_image_self_build: false
|
2021-07-25 21:16:37 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_docker_repo: "https://github.com/anoadragon453/matrix-reminder-bot.git"
|
2022-07-18 11:43:52 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_docker_repo_version: "{{ matrix_bot_matrix_reminder_bot_version }}"
|
2021-07-25 21:16:37 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_docker_src_files_path: "{{ matrix_base_data_path }}/matrix-reminder-bot/docker-src"
|
|
|
|
|
2021-07-20 00:02:29 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_version: release-v0.2.1
|
2021-04-12 12:39:16 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_docker_image: "{{ matrix_container_global_registry_prefix }}anoa/matrix-reminder-bot:{{ matrix_bot_matrix_reminder_bot_version }}"
|
2020-07-20 11:13:08 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_docker_image_force_pull: "{{ matrix_bot_matrix_reminder_bot_docker_image.endswith(':latest') }}"
|
|
|
|
|
|
|
|
matrix_bot_matrix_reminder_bot_base_path: "{{ matrix_base_data_path }}/matrix-reminder-bot"
|
|
|
|
matrix_bot_matrix_reminder_bot_config_path: "{{ matrix_bot_matrix_reminder_bot_base_path }}/config"
|
|
|
|
matrix_bot_matrix_reminder_bot_data_path: "{{ matrix_bot_matrix_reminder_bot_base_path }}/data"
|
|
|
|
matrix_bot_matrix_reminder_bot_data_store_path: "{{ matrix_bot_matrix_reminder_bot_data_path }}/store"
|
|
|
|
|
2022-07-04 20:53:43 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_command_prefix: "!"
|
|
|
|
|
2020-07-20 11:13:08 +00:00
|
|
|
# A list of extra arguments to pass to the container
|
|
|
|
matrix_bot_matrix_reminder_bot_container_extra_arguments: []
|
|
|
|
|
|
|
|
# List of systemd services that matrix-bot-matrix-reminder-bot.service depends on
|
|
|
|
matrix_bot_matrix_reminder_bot_systemd_required_services_list: ['docker.service']
|
|
|
|
|
|
|
|
# List of systemd services that matrix-bot-matrix-reminder-bot.service wants
|
|
|
|
matrix_bot_matrix_reminder_bot_systemd_wanted_services_list: []
|
|
|
|
|
|
|
|
|
2020-12-14 13:02:11 +00:00
|
|
|
# Database-related configuration fields.
|
|
|
|
#
|
|
|
|
# To use SQLite, stick to these defaults.
|
|
|
|
#
|
|
|
|
# To use Postgres:
|
|
|
|
# - change the engine (`matrix_bot_matrix_reminder_bot_database_engine: 'postgres'`)
|
|
|
|
# - adjust your database credentials via the `matrix_bot_matrix_reminder_bot_database_*` variables
|
|
|
|
matrix_bot_matrix_reminder_bot_database_engine: 'sqlite'
|
|
|
|
|
|
|
|
matrix_bot_matrix_reminder_bot_sqlite_database_path_local: "{{ matrix_bot_matrix_reminder_bot_data_path }}/bot.db"
|
|
|
|
matrix_bot_matrix_reminder_bot_sqlite_database_path_in_container: "/data/bot.db"
|
|
|
|
|
|
|
|
matrix_bot_matrix_reminder_bot_database_username: 'matrix_reminder_bot'
|
|
|
|
matrix_bot_matrix_reminder_bot_database_password: 'some-password'
|
2022-11-27 06:23:43 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_database_hostname: ''
|
2020-12-14 13:02:11 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_database_port: 5432
|
2020-12-22 15:10:02 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_database_name: 'matrix_reminder_bot'
|
2020-12-14 13:02:11 +00:00
|
|
|
|
2020-12-22 15:10:02 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_database_connection_string: 'postgres://{{ matrix_bot_matrix_reminder_bot_database_username }}:{{ matrix_bot_matrix_reminder_bot_database_password }}@{{ matrix_bot_matrix_reminder_bot_database_hostname }}:{{ matrix_bot_matrix_reminder_bot_database_port }}/{{ matrix_bot_matrix_reminder_bot_database_name }}'
|
2020-12-14 13:02:11 +00:00
|
|
|
|
|
|
|
matrix_bot_matrix_reminder_bot_storage_database: "{{
|
|
|
|
{
|
|
|
|
'sqlite': ('sqlite://' + matrix_bot_matrix_reminder_bot_sqlite_database_path_in_container),
|
|
|
|
'postgres': matrix_bot_matrix_reminder_bot_database_connection_string,
|
|
|
|
}[matrix_bot_matrix_reminder_bot_database_engine]
|
|
|
|
}}"
|
|
|
|
|
|
|
|
|
2020-07-20 11:13:08 +00:00
|
|
|
# The bot's username. This user needs to be created manually beforehand.
|
|
|
|
# Also see `matrix_bot_matrix_reminder_bot_user_password`.
|
|
|
|
matrix_bot_matrix_reminder_bot_matrix_user_id_localpart: "bot.matrix-reminder-bot"
|
|
|
|
|
|
|
|
matrix_bot_matrix_reminder_bot_matrix_user_id: '@{{ matrix_bot_matrix_reminder_bot_matrix_user_id_localpart }}:{{ matrix_domain }}'
|
|
|
|
|
|
|
|
# The password that the bot uses to authenticate.
|
|
|
|
matrix_bot_matrix_reminder_bot_matrix_user_password: ''
|
|
|
|
|
2021-01-25 11:55:08 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_matrix_homeserver_url: "{{ matrix_homeserver_container_url }}"
|
2020-07-20 11:13:08 +00:00
|
|
|
|
|
|
|
# The timezone to use when creating reminders.
|
|
|
|
# Examples: 'Europe/London', 'Etc/UTC'
|
|
|
|
matrix_bot_matrix_reminder_bot_reminders_timezone: ''
|
|
|
|
|
|
|
|
# Default configuration template which covers the generic use case.
|
|
|
|
# You can customize it by controlling the various variables inside it.
|
|
|
|
#
|
|
|
|
# For a more advanced customization, you can extend the default (see `matrix_bot_matrix_reminder_bot_configuration_extension_yaml`)
|
|
|
|
# or completely replace this variable with your own template.
|
|
|
|
matrix_bot_matrix_reminder_bot_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
|
|
|
|
|
|
|
|
matrix_bot_matrix_reminder_bot_configuration_extension_yaml: |
|
|
|
|
# Your custom YAML configuration goes here.
|
|
|
|
# This configuration extends the default starting configuration (`matrix_bot_matrix_reminder_bot_configuration_yaml`).
|
|
|
|
#
|
|
|
|
# You can override individual variables from the default configuration, or introduce new ones.
|
|
|
|
#
|
|
|
|
# If you need something more special, you can take full control by
|
|
|
|
# completely redefining `matrix_bot_matrix_reminder_bot_configuration_yaml`.
|
|
|
|
#
|
|
|
|
# Example configuration extension follows:
|
|
|
|
#
|
|
|
|
# matrix:
|
|
|
|
# device_name: My-Reminder-Bot
|
|
|
|
|
2022-07-18 08:22:05 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_configuration_extension: "{{ matrix_bot_matrix_reminder_bot_configuration_extension_yaml | from_yaml if matrix_bot_matrix_reminder_bot_configuration_extension_yaml | from_yaml is mapping else {} }}"
|
2020-07-20 11:13:08 +00:00
|
|
|
|
|
|
|
# Holds the final configuration (a combination of the default and its extension).
|
|
|
|
# You most likely don't need to touch this variable. Instead, see `matrix_bot_matrix_reminder_bot_configuration_yaml`.
|
2022-07-18 09:28:39 +00:00
|
|
|
matrix_bot_matrix_reminder_bot_configuration: "{{ matrix_bot_matrix_reminder_bot_configuration_yaml | from_yaml | combine(matrix_bot_matrix_reminder_bot_configuration_extension, recursive=True) }}"
|