mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-11-04 09:08:56 +01:00 
			
		
		
		
	Move variables block for /matrix-bridge-postmoogle
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
This commit is contained in:
		@@ -2571,6 +2571,81 @@ matrix_mx_puppet_groupme_database_password: "{{ '%s' | format(matrix_homeserver_
 | 
			
		||||
#
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
######################################################################
 | 
			
		||||
#
 | 
			
		||||
# matrix-bridge-postmoogle
 | 
			
		||||
#
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
# We don't enable bridges by default.
 | 
			
		||||
matrix_postmoogle_enabled: false
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_ssl_path: |-
 | 
			
		||||
  {{
 | 
			
		||||
    {
 | 
			
		||||
      'playbook-managed-traefik': (traefik_certs_dumper_dumped_certificates_dir_path if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'other-traefik-container': (traefik_certs_dumper_dumped_certificates_dir_path if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'none': '',
 | 
			
		||||
    }[matrix_playbook_reverse_proxy_type]
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
matrix_playbook_bot_postmoogle_traefik_tls_cert: "{% for domain in matrix_postmoogle_domains %}/ssl/{{ domain }}/certificate.crt {% endfor %}"
 | 
			
		||||
matrix_playbook_bot_postmoogle_traefik_key: "{% for domain in matrix_postmoogle_domains %}/ssl/{{ domain }}/privatekey.key {% endfor %}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_tls_cert: |-
 | 
			
		||||
  {{
 | 
			
		||||
    {
 | 
			
		||||
      'playbook-managed-traefik': (matrix_playbook_bot_postmoogle_traefik_tls_cert if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'other-traefik-container': (matrix_playbook_bot_postmoogle_traefik_tls_cert if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'none': '',
 | 
			
		||||
    }[matrix_playbook_reverse_proxy_type]
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_tls_key: |-
 | 
			
		||||
  {{
 | 
			
		||||
    {
 | 
			
		||||
      'playbook-managed-traefik': (matrix_playbook_bot_postmoogle_traefik_key if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'other-traefik-container': (matrix_playbook_bot_postmoogle_traefik_key if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'none': '',
 | 
			
		||||
    }[matrix_playbook_reverse_proxy_type]
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
matrix_playbook_bot_postmoogle_traefik_certs_dumper_waiter_services: "{% for domain in matrix_postmoogle_domains %}{{ traefik_certs_dumper_identifier }}-wait-for-domain@{{ domain }}.service {% endfor %}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_systemd_required_services_list_auto: |
 | 
			
		||||
  {{
 | 
			
		||||
    matrix_addons_homeserver_systemd_services_list
 | 
			
		||||
    +
 | 
			
		||||
    ([postgres_identifier ~ '.service'] if postgres_enabled and matrix_postmoogle_database_hostname == matrix_postmoogle_database_hostname else [])
 | 
			
		||||
    +
 | 
			
		||||
    (matrix_playbook_bot_postmoogle_traefik_certs_dumper_waiter_services | trim | split(' ') if matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] and traefik_certs_dumper_enabled else [])
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
# Postgres is the default, except if not using internal Postgres server
 | 
			
		||||
matrix_postmoogle_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
 | 
			
		||||
matrix_postmoogle_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
 | 
			
		||||
matrix_postmoogle_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'postmoogle.db', rounds=655555) | to_uuid }}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_homeserver: "{{ matrix_addons_homeserver_client_api_url }}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_container_network: "{{ matrix_addons_container_network }}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_container_additional_networks_auto: |-
 | 
			
		||||
  {{
 | 
			
		||||
    (
 | 
			
		||||
      ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
 | 
			
		||||
      +
 | 
			
		||||
      ([postgres_container_network] if postgres_enabled and matrix_bot_matrix_reminder_bot_database_hostname == postgres_connection_hostname else [])
 | 
			
		||||
    ) | unique
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
######################################################################
 | 
			
		||||
#
 | 
			
		||||
# /matrix-bridge-postmoogle
 | 
			
		||||
#
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
######################################################################
 | 
			
		||||
#
 | 
			
		||||
@@ -2855,84 +2930,6 @@ matrix_bot_baibot_container_additional_networks_auto: |-
 | 
			
		||||
#
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
######################################################################
 | 
			
		||||
#
 | 
			
		||||
# matrix-postmoogle
 | 
			
		||||
#
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
# We don't enable bots by default.
 | 
			
		||||
matrix_postmoogle_enabled: false
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_container_image_self_build: "{{ matrix_architecture not in ['amd64', 'arm64'] }}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_ssl_path: |-
 | 
			
		||||
  {{
 | 
			
		||||
    {
 | 
			
		||||
      'playbook-managed-traefik': (traefik_certs_dumper_dumped_certificates_dir_path if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'other-traefik-container': (traefik_certs_dumper_dumped_certificates_dir_path if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'none': '',
 | 
			
		||||
    }[matrix_playbook_reverse_proxy_type]
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
matrix_playbook_bot_postmoogle_traefik_tls_cert: "{% for domain in matrix_postmoogle_domains %}/ssl/{{ domain }}/certificate.crt {% endfor %}"
 | 
			
		||||
matrix_playbook_bot_postmoogle_traefik_key: "{% for domain in matrix_postmoogle_domains %}/ssl/{{ domain }}/privatekey.key {% endfor %}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_tls_cert: |-
 | 
			
		||||
  {{
 | 
			
		||||
    {
 | 
			
		||||
      'playbook-managed-traefik': (matrix_playbook_bot_postmoogle_traefik_tls_cert if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'other-traefik-container': (matrix_playbook_bot_postmoogle_traefik_tls_cert if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'none': '',
 | 
			
		||||
    }[matrix_playbook_reverse_proxy_type]
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_tls_key: |-
 | 
			
		||||
  {{
 | 
			
		||||
    {
 | 
			
		||||
      'playbook-managed-traefik': (matrix_playbook_bot_postmoogle_traefik_key if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'other-traefik-container': (matrix_playbook_bot_postmoogle_traefik_key if traefik_certs_dumper_enabled else ''),
 | 
			
		||||
      'none': '',
 | 
			
		||||
    }[matrix_playbook_reverse_proxy_type]
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
matrix_playbook_bot_postmoogle_traefik_certs_dumper_waiter_services: "{% for domain in matrix_postmoogle_domains %}{{ traefik_certs_dumper_identifier }}-wait-for-domain@{{ domain }}.service {% endfor %}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_systemd_required_services_list_auto: |
 | 
			
		||||
  {{
 | 
			
		||||
    matrix_addons_homeserver_systemd_services_list
 | 
			
		||||
    +
 | 
			
		||||
    ([postgres_identifier ~ '.service'] if postgres_enabled and matrix_postmoogle_database_hostname == matrix_postmoogle_database_hostname else [])
 | 
			
		||||
    +
 | 
			
		||||
    (matrix_playbook_bot_postmoogle_traefik_certs_dumper_waiter_services | trim | split(' ') if matrix_playbook_reverse_proxy_type in ['playbook-managed-traefik', 'other-traefik-container'] and traefik_certs_dumper_enabled else [])
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
# Postgres is the default, except if not using internal Postgres server
 | 
			
		||||
matrix_postmoogle_database_engine: "{{ 'postgres' if postgres_enabled else 'sqlite' }}"
 | 
			
		||||
matrix_postmoogle_database_hostname: "{{ postgres_connection_hostname if postgres_enabled else '' }}"
 | 
			
		||||
matrix_postmoogle_database_password: "{{ '%s' | format(matrix_homeserver_generic_secret_key) | password_hash('sha512', 'postmoogle.db', rounds=655555) | to_uuid }}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_homeserver: "{{ matrix_addons_homeserver_client_api_url }}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_container_network: "{{ matrix_addons_container_network }}"
 | 
			
		||||
 | 
			
		||||
matrix_postmoogle_container_additional_networks_auto: |-
 | 
			
		||||
  {{
 | 
			
		||||
    (
 | 
			
		||||
      ([] if matrix_addons_homeserver_container_network == '' else [matrix_addons_homeserver_container_network])
 | 
			
		||||
      +
 | 
			
		||||
      ([postgres_container_network] if postgres_enabled and matrix_bot_matrix_reminder_bot_database_hostname == postgres_connection_hostname else [])
 | 
			
		||||
    ) | unique
 | 
			
		||||
  }}
 | 
			
		||||
 | 
			
		||||
######################################################################
 | 
			
		||||
#
 | 
			
		||||
# /matrix-postmoogle
 | 
			
		||||
#
 | 
			
		||||
######################################################################
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
######################################################################
 | 
			
		||||
#
 | 
			
		||||
# matrix-bot-chatgpt
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user