Matrix Docker Ansible eploy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

106 lines
7.2 KiB

  1. ---
  2. # A moderation tool for Matrix
  3. # Project source code URL: https://github.com/the-draupnir-project/Draupnir
  4. matrix_appservice_draupnir_for_all_enabled: true
  5. # renovate: datasource=docker depName=gnuxie/draupnir
  6. matrix_appservice_draupnir_for_all_version: "v2.1.0"
  7. matrix_appservice_draupnir_for_all_container_image_self_build: false
  8. matrix_appservice_draupnir_for_all_container_image_self_build_repo: "https://github.com/the-draupnir-project/Draupnir.git"
  9. matrix_appservice_draupnir_for_all_docker_image_registry_prefix: "{{ 'localhost/' if matrix_appservice_draupnir_for_all_container_image_self_build else matrix_appservice_draupnir_for_all_docker_image_registry_prefix_upstream }}"
  10. matrix_appservice_draupnir_for_all_docker_image_registry_prefix_upstream: "{{ matrix_appservice_draupnir_for_all_docker_image_registry_prefix_upstream_default }}"
  11. matrix_appservice_draupnir_for_all_docker_image_registry_prefix_upstream_default: "docker.io/"
  12. matrix_appservice_draupnir_for_all_docker_image: "{{ matrix_appservice_draupnir_for_all_docker_image_registry_prefix }}gnuxie/draupnir:{{ matrix_appservice_draupnir_for_all_version }}"
  13. matrix_appservice_draupnir_for_all_docker_image_force_pull: "{{ matrix_appservice_draupnir_for_all_docker_image.endswith(':latest') }}"
  14. matrix_appservice_draupnir_for_all_base_path: "{{ matrix_base_data_path }}/draupnir-for-all"
  15. matrix_appservice_draupnir_for_all_config_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/config"
  16. matrix_appservice_draupnir_for_all_data_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/data"
  17. matrix_appservice_draupnir_for_all_docker_src_files_path: "{{ matrix_appservice_draupnir_for_all_base_path }}/docker-src"
  18. matrix_appservice_draupnir_for_all_container_network: ""
  19. matrix_appservice_draupnir_for_all_container_additional_networks: "{{ matrix_appservice_draupnir_for_all_container_additional_networks_auto + matrix_appservice_draupnir_for_all_container_additional_networks_custom }}"
  20. matrix_appservice_draupnir_for_all_container_additional_networks_auto: []
  21. matrix_appservice_draupnir_for_all_container_additional_networks_custom: []
  22. # A list of extra arguments to pass to the container
  23. matrix_appservice_draupnir_for_all_container_extra_arguments: []
  24. # List of systemd services that matrix-bot-draupnir.service depends on
  25. matrix_appservice_draupnir_for_all_systemd_required_services_list: "{{ matrix_appservice_draupnir_for_all_systemd_required_services_list_default + matrix_appservice_draupnir_for_all_systemd_required_services_list_auto + matrix_appservice_draupnir_for_all_systemd_required_services_list_custom }}"
  26. matrix_appservice_draupnir_for_all_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  27. matrix_appservice_draupnir_for_all_systemd_required_services_list_auto: []
  28. matrix_appservice_draupnir_for_all_systemd_required_services_list_custom: []
  29. # List of systemd services that matrix-bot-draupnir.service wants
  30. matrix_appservice_draupnir_for_all_systemd_wanted_services_list: []
  31. # The room ID where people can use the bot. The bot has no access controls, so
  32. # anyone in this room can use the bot - secure your room!
  33. # This should be a room alias - not a matrix.to URL.
  34. # Note: Draupnir is fairly verbose - expect a lot of messages from it.
  35. # This room is diffrent for Appservice Mode compared to normal mode.
  36. # In Appservice mode it provides functions like user management.
  37. matrix_appservice_draupnir_for_all_master_control_room_alias: ""
  38. # Placeholder Remenant of the fact that Cat belived Master Control Room to be separated from Access Control Policy List.
  39. # The alias of the Policy list used to control who can provision a bot for them selfs.
  40. # This should be a room alias - not a matrix.to URL.
  41. # matrix_appservice_draupnir_for_all_management_policy_list_alias: ""
  42. matrix_appservice_draupnir_for_all_database_username: matrix_appservice_draupnir_for_all
  43. matrix_appservice_draupnir_for_all_database_password: 'some-passsword'
  44. matrix_appservice_draupnir_for_all_database_hostname: ''
  45. matrix_appservice_draupnir_for_all_database_port: 5432
  46. matrix_appservice_draupnir_for_all_database_name: matrix_appservice_draupnir_for_all
  47. matrix_appservice_draupnir_for_all_database_sslmode: disable
  48. matrix_appservice_draupnir_for_all_appservice_port: "9001"
  49. matrix_appservice_draupnir_for_all_appservice_url: 'http://matrix-appservice-draupnir-for-all'
  50. matrix_appservice_draupnir_for_all_database_connection_string: 'postgresql://{{ matrix_appservice_draupnir_for_all_database_username }}:{{ matrix_appservice_draupnir_for_all_database_password }}@{{ matrix_appservice_draupnir_for_all_database_hostname }}:{{ matrix_appservice_draupnir_for_all_database_port }}/{{ matrix_appservice_draupnir_for_all_database_name }}?sslmode={{ matrix_appservice_draupnir_for_all_database_sslmode }}'
  51. matrix_appservice_draupnir_for_all_user_prefix: "draupnir_"
  52. matrix_appservice_draupnir_for_all_registration_yaml: |
  53. id: "draupnir-for-all"
  54. as_token: "{{ matrix_appservice_draupnir_for_all_appservice_token }}"
  55. hs_token: "{{ matrix_appservice_draupnir_for_all_homeserver_token }}"
  56. url: "{{ matrix_appservice_draupnir_for_all_appservice_url }}:{{ matrix_appservice_draupnir_for_all_appservice_port }}"
  57. sender_localpart: draupnir-main
  58. namespaces:
  59. users:
  60. - exclusive: true
  61. regex: '@{{ matrix_appservice_draupnir_for_all_user_prefix }}*'
  62. rate_limited: false
  63. matrix_appservice_draupnir_for_all_registration: "{{ matrix_appservice_draupnir_for_all_registration_yaml | from_yaml }}"
  64. matrix_appservice_draupnir_for_all_configuration_appservice: "{{ lookup('template', 'templates/production-appservice.yaml.j2') | from_yaml }}"
  65. # Default configuration template which covers the generic use case.
  66. # You can customize it by controlling the various variables inside it.
  67. #
  68. # For a more advanced customization, you can extend the default (see `matrix_appservice_draupnir_for_all_configuration_extension_yaml`)
  69. # or completely replace this variable with your own template.
  70. matrix_appservice_draupnir_for_all_configuration_yaml: "{{ lookup('template', 'templates/production-bots.yaml.j2') }}"
  71. matrix_appservice_draupnir_for_all_configuration_extension_yaml: |
  72. # Your custom YAML configuration goes here.
  73. # This configuration extends the default starting configuration (`matrix_appservice_draupnir_for_all_configuration_yaml`).
  74. #
  75. # You can override individual variables from the default configuration, or introduce new ones.
  76. #
  77. # If you need something more special, you can take full control by
  78. # completely redefining `matrix_appservice_draupnir_for_all_configuration_yaml`.
  79. matrix_appservice_draupnir_for_all_configuration_extension: "{{ matrix_appservice_draupnir_for_all_configuration_extension_yaml | from_yaml if matrix_appservice_draupnir_for_all_configuration_extension_yaml | from_yaml is mapping else {} }}"
  80. # Holds the final configuration (a combination of the default and its extension).
  81. # You most likely don't need to touch this variable. Instead, see `matrix_appservice_draupnir_for_all_configuration_yaml`.
  82. matrix_appservice_draupnir_for_all_configuration: "{{ matrix_appservice_draupnir_for_all_configuration_yaml | from_yaml | combine(matrix_appservice_draupnir_for_all_configuration_extension, recursive=True) }}"