Matrix Docker Ansible eploy
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 

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