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.
 
 

130 lines
7.0 KiB

  1. # SPDX-FileCopyrightText: 2024 MDAD Team and contributors
  2. #
  3. # SPDX-License-Identifier: AGPL-3.0-or-later
  4. ---
  5. # Mx Puppet Steam is a Matrix <-> Steam bridge
  6. # Project source code URL: https://github.com/icewind1991/mx-puppet-steam
  7. matrix_mx_puppet_steam_enabled: true
  8. matrix_mx_puppet_steam_container_image_self_build: false
  9. matrix_mx_puppet_steam_container_image_self_build_repo: "https://github.com/icewind1991/mx-puppet-steam.git"
  10. matrix_mx_puppet_steam_container_image_self_build_repo_version: "{{ 'master' if matrix_mx_puppet_steam_version == 'latest' else matrix_mx_puppet_steam_version }}"
  11. # Controls whether the mx-puppet-steam container exposes its HTTP port (tcp/8432 in the container).
  12. #
  13. # Takes an "<ip>:<port>" or "<port>" value (e.g. "127.0.0.1:8432"), or empty string to not expose.
  14. matrix_mx_puppet_steam_container_http_host_bind_port: ''
  15. # renovate: datasource=docker depName=icewind1991/mx-puppet-steam
  16. matrix_mx_puppet_steam_version: latest
  17. matrix_mx_puppet_steam_docker_image: "{{ matrix_mx_puppet_steam_docker_image_name_prefix }}icewind1991/mx-puppet-steam:{{ matrix_mx_puppet_steam_version }}"
  18. matrix_mx_puppet_steam_docker_image_name_prefix: "{{ 'localhost/' if matrix_mx_puppet_steam_container_image_self_build else matrix_container_global_registry_prefix }}"
  19. matrix_mx_puppet_steam_docker_image_force_pull: "{{ matrix_mx_puppet_steam_docker_image.endswith(':latest') }}"
  20. matrix_mx_puppet_steam_base_path: "{{ matrix_base_data_path }}/mx-puppet-steam"
  21. matrix_mx_puppet_steam_config_path: "{{ matrix_mx_puppet_steam_base_path }}/config"
  22. matrix_mx_puppet_steam_data_path: "{{ matrix_mx_puppet_steam_base_path }}/data"
  23. matrix_mx_puppet_steam_docker_src_files_path: "{{ matrix_mx_puppet_steam_base_path }}/docker-src"
  24. matrix_mx_puppet_steam_appservice_port: "8432"
  25. matrix_mx_puppet_steam_homeserver_address: ""
  26. matrix_mx_puppet_steam_homeserver_domain: '{{ matrix_domain }}'
  27. matrix_mx_puppet_steam_appservice_address: 'http://matrix-mx-puppet-steam:{{ matrix_mx_puppet_steam_appservice_port }}'
  28. # "@user:example.com" to allow a specific user
  29. # "@.*:example.com" to allow users on a specific homeserver
  30. # "@.*" to allow anyone
  31. matrix_mx_puppet_steam_provisioning_whitelist:
  32. - "@.*:{{ matrix_domain | regex_escape }}"
  33. # Leave empty to disable blacklist
  34. # "@user:example.com" to disallow a specific user
  35. # "@.*:example.com" to disallow users on a specific homeserver
  36. matrix_mx_puppet_steam_provisioning_blacklist: []
  37. matrix_mx_puppet_steam_container_network: ""
  38. matrix_mx_puppet_steam_container_additional_networks: "{{ matrix_mx_puppet_steam_container_additional_networks_auto + matrix_mx_puppet_steam_container_additional_networks_custom }}"
  39. matrix_mx_puppet_steam_container_additional_networks_auto: []
  40. matrix_mx_puppet_steam_container_additional_networks_custom: []
  41. # A list of extra arguments to pass to the container
  42. matrix_mx_puppet_steam_container_extra_arguments: []
  43. # List of systemd services that matrix-puppet-steam.service depends on.
  44. matrix_mx_puppet_steam_systemd_required_services_list: "{{ matrix_mx_puppet_steam_systemd_required_services_list_default + matrix_mx_puppet_steam_systemd_required_services_list_auto + matrix_mx_puppet_steam_systemd_required_services_list_custom }}"
  45. matrix_mx_puppet_steam_systemd_required_services_list_default: "{{ [devture_systemd_docker_base_docker_service_name] if devture_systemd_docker_base_docker_service_name else [] }}"
  46. matrix_mx_puppet_steam_systemd_required_services_list_auto: []
  47. matrix_mx_puppet_steam_systemd_required_services_list_custom: []
  48. # List of systemd services that matrix-puppet-steam.service wants
  49. matrix_mx_puppet_steam_systemd_wanted_services_list: []
  50. matrix_mx_puppet_steam_appservice_token: ''
  51. matrix_mx_puppet_steam_homeserver_token: ''
  52. # Can be set to enable automatic double-puppeting via Shared Secret Auth (https://github.com/devture/matrix-synapse-shared-secret-auth).
  53. matrix_mx_puppet_steam_login_shared_secret: ''
  54. matrix_mx_puppet_steam_presence_enabled: true
  55. matrix_mx_puppet_steam_presence_interval: 5000
  56. matrix_mx_puppet_steam_database_engine: sqlite
  57. matrix_mx_puppet_steam_sqlite_database_path_local: "{{ matrix_mx_puppet_steam_data_path }}/database.db"
  58. matrix_mx_puppet_steam_sqlite_database_path_in_container: "/data/database.db"
  59. matrix_mx_puppet_steam_database_username: matrix_mx_puppet_steam
  60. matrix_mx_puppet_steam_database_password: ~
  61. matrix_mx_puppet_steam_database_hostname: ''
  62. matrix_mx_puppet_steam_database_port: 5432
  63. matrix_mx_puppet_steam_database_name: matrix_mx_puppet_steam
  64. matrix_mx_puppet_steam_database_sslmode: disable
  65. matrix_mx_puppet_steam_database_connection_string: 'postgresql://{{ matrix_mx_puppet_steam_database_username }}:{{ matrix_mx_puppet_steam_database_password }}@{{ matrix_mx_puppet_steam_database_hostname }}:{{ matrix_mx_puppet_steam_database_port }}/{{ matrix_mx_puppet_steam_database_name }}?sslmode={{ matrix_mx_puppet_steam_database_sslmode }}'
  66. # Default configuration template which covers the generic use case.
  67. # You can customize it by controlling the various variables inside it.
  68. #
  69. # For a more advanced customization, you can extend the default (see `matrix_mx_puppet_steam_configuration_extension_yaml`)
  70. # or completely replace this variable with your own template.
  71. matrix_mx_puppet_steam_configuration_yaml: "{{ lookup('template', 'templates/config.yaml.j2') }}"
  72. matrix_mx_puppet_steam_configuration_extension_yaml: |
  73. # Your custom YAML configuration goes here.
  74. # This configuration extends the default starting configuration (`matrix_mx_puppet_steam_configuration_yaml`).
  75. #
  76. # You can override individual variables from the default configuration, or introduce new ones.
  77. #
  78. # If you need something more special, you can take full control by
  79. # completely redefining `matrix_mx_puppet_steam_configuration_yaml`.
  80. matrix_mx_puppet_steam_configuration_extension: "{{ matrix_mx_puppet_steam_configuration_extension_yaml | from_yaml if matrix_mx_puppet_steam_configuration_extension_yaml | from_yaml is mapping else {} }}"
  81. # Holds the final configuration (a combination of the default and its extension).
  82. # You most likely don't need to touch this variable. Instead, see `matrix_mx_puppet_steam_configuration_yaml`.
  83. matrix_mx_puppet_steam_configuration: "{{ matrix_mx_puppet_steam_configuration_yaml | from_yaml | combine(matrix_mx_puppet_steam_configuration_extension, recursive=True) }}"
  84. matrix_mx_puppet_steam_registration_yaml: |
  85. as_token: "{{ matrix_mx_puppet_steam_appservice_token }}"
  86. hs_token: "{{ matrix_mx_puppet_steam_homeserver_token }}"
  87. id: steam-puppet
  88. namespaces:
  89. users:
  90. - exclusive: true
  91. regex: '@_steampuppet_.*:{{ matrix_mx_puppet_steam_homeserver_domain | regex_escape }}'
  92. rooms: []
  93. aliases:
  94. - exclusive: true
  95. regex: '#_steampuppet_.*:{{ matrix_mx_puppet_steam_homeserver_domain | regex_escape }}'
  96. protocols: []
  97. rate_limited: false
  98. sender_localpart: _steampuppet_bot
  99. url: {{ matrix_mx_puppet_steam_appservice_address }}
  100. de.sorunome.msc2409.push_ephemeral: true
  101. matrix_mx_puppet_steam_registration: "{{ matrix_mx_puppet_steam_registration_yaml | from_yaml }}"