Matrix Docker Ansible eploy
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

194 wiersze
14 KiB

  1. ---
  2. - name: (Deprecation) Catch and report renamed Matrix playbook settings
  3. ansible.builtin.fail:
  4. msg: >-
  5. Your configuration contains a variable, which now has a different name.
  6. Please change your configuration to rename the variable (`{{ item.old }}` -> `{{ item.new }}`).
  7. when: "item.old in vars"
  8. with_items:
  9. - {'old': 'matrix_vars_yml_snapshotting_enabled', 'new': 'devture_playbook_state_preserver_vars_preservation_enabled'}
  10. - {'old': 'matrix_vars_yml_snapshotting_src', 'new': 'devture_playbook_state_preserver_vars_preservation_src'}
  11. - {'old': 'matrix_playbook_commit_hash_preservation_enabled', 'new': 'devture_playbook_state_preserver_commit_hash_preservation_enabled'}
  12. - {'old': 'matrix_ntpd_package', 'new': 'devture_timesync_ntpd_package'}
  13. - {'old': 'matrix_ntpd_service', 'new': 'devture_timesync_ntpd_service'}
  14. - {'old': 'matrix_systemd_unit_home_path', 'new': 'devture_systemd_docker_base_systemd_unit_home_path'}
  15. - {'old': 'matrix_systemd_path', 'new': 'devture_systemd_docker_base_systemd_path'}
  16. - {'old': 'matrix_host_command_docker', 'new': 'devture_systemd_docker_base_host_command_docker'}
  17. - {'old': 'matrix_host_command_sh', 'new': 'devture_systemd_docker_base_host_command_sh'}
  18. - {'old': 'matrix_host_command_systemctl', 'new': 'devture_systemd_docker_base_host_command_systemctl'}
  19. - {'old': 'matrix_container_retries_count', 'new': 'devture_playbook_help_container_retries_count'}
  20. - {'old': 'matrix_container_retries_delay', 'new': 'devture_playbook_help_container_retries_delay'}
  21. - {'old': 'matrix_geturl_retries_count', 'new': 'devture_playbook_help_geturl_retries_count'}
  22. - {'old': 'matrix_geturl_retries_delay', 'new': 'devture_playbook_help_geturl_retries_delay'}
  23. - {'old': 'matrix_nginx_proxy_synapse_cache_path', 'new': 'matrix_synapse_reverse_proxy_companion_synapse_cache_path'}
  24. - {'old': 'matrix_nginx_proxy_synapse_cache_enabled', 'new': 'matrix_synapse_reverse_proxy_companion_synapse_cache_enabled'}
  25. - {'old': 'matrix_docker_installation_enabled', 'new': 'matrix_playbook_docker_installation_enabled'}
  26. - {'old': 'matrix_docker_package_name', 'new': '<Not applicable. Docker is installed using https://github.com/geerlingguy/ansible-role-docker now>'}
  27. - {'old': 'matrix_systemd_services_list', 'new': 'devture_systemd_service_manager_services_list_additional'}
  28. - {'old': 'matrix_common_after_systemd_service_start_wait_for_timeout_seconds', 'new': 'devture_systemd_service_manager_up_verification_delay_seconds'}
  29. - {'old': 'matrix_systemd_services_autostart_enabled', 'new': 'devture_systemd_service_manager_services_autostart_enabled'}
  30. - {'old': 'matrix_prometheus_node_exporter_metrics_proxying_enabled', 'new': 'matrix_prometheus_services_proxy_connect_prometheus_node_exporter_metrics_proxying_enabled'}
  31. - {'old': 'matrix_prometheus_postgres_exporter_metrics_proxying_enabled', 'new': 'matrix_prometheus_services_proxy_connect_prometheus_postgres_exporter_metrics_proxying_enabled'}
  32. - {'old': 'matrix_playbook_traefik_certs_dumper_role_enabled', 'new': 'devture_traefik_certs_dumper_enabled'}
  33. - {'old': 'matrix_playbook_traefik_role_enabled', 'new': 'devture_traefik_enabled'}
  34. # Most important variables from the old Prometheus role here, for people who miss the changelog entry
  35. - {'old': 'matrix_prometheus_enabled', 'new': 'prometheus_enabled'}
  36. - {'old': 'matrix_prometheus_process_default_arguments', 'new': 'prometheus_process_default_arguments'}
  37. - {'old': 'matrix_prometheus_process_extra_arguments', 'new': 'prometheus_process_extra_arguments'}
  38. - {'old': 'matrix_prometheus_configuration_extension_yaml', 'new': 'prometheus_configuration_extension_yaml'}
  39. - {'old': 'matrix_prometheus_scraper_synapse_enabled', 'new': 'matrix_prometheus_services_connect_synapse_enabled'}
  40. - {'old': 'matrix_prometheus_scraper_synapse_targets', 'new': '<superseded by matrix_prometheus_services_connect_scraper_synapse_main_process_static_configs_target>'}
  41. - {'old': 'matrix_prometheus_scraper_synapse_workers_enabled_list', 'new': 'matrix_prometheus_services_connect_scraper_synapse_workers_enabled_list'}
  42. - {'old': 'matrix_prometheus_scraper_synapse_rules_synapse_tag', 'new': 'matrix_prometheus_services_connect_synapse_rules_download_synapse_tag'}
  43. - {'old': 'matrix_prometheus_scraper_node_enabled', 'new': 'prometheus_self_node_scraper_enabled'}
  44. - {'old': 'matrix_prometheus_scraper_node_targets', 'new': '<superseded by prometheus_self_node_scraper_static_configs_target>'}
  45. - {'old': 'matrix_prometheus_scraper_postgres_enabled', 'new': 'matrix_prometheus_services_connect_scraper_postgres_enabled'}
  46. - {'old': 'matrix_prometheus_scraper_postgres_targets', 'new': '<superseded by matrix_prometheus_services_connect_scraper_postgres_static_configs_target>'}
  47. - {'old': 'matrix_prometheus_scraper_hookshot_enabled', 'new': 'matrix_prometheus_services_connect_scraper_hookshot_enabled'}
  48. - {'old': 'matrix_prometheus_scraper_hookshot_targets', 'new': '<superseded by matrix_prometheus_services_connect_scraper_hookshot_static_configs_target>'}
  49. - {'old': 'matrix_prometheus_scraper_nginxlog_enabled', 'new': 'matrix_prometheus_services_connect_scraper_nginxlog_enabled'}
  50. - {'old': 'matrix_prometheus_scraper_nginxlog_server_port', 'new': 'matrix_prometheus_services_connect_scraper_nginxlog_static_configs_target'}
  51. - {'old': 'XXXXX', 'new': 'XXXXX'}
  52. - name: (Deprecation) Catch and report matrix_postgres variables
  53. ansible.builtin.fail:
  54. msg: |-
  55. The matrix-postgres role in the playbook has been replaced with the com.devture.ansible.role.postgres role (https://github.com/devture/com.devture.ansible.role.postgres).
  56. The new role is pretty much the same, but uses differently named variables.
  57. The matrix-postgres-backup role in the playbook has been replaced with the com.devture.ansible.role.postgres_backup role (https://github.com/devture/com.devture.ansible.role.postgres_backup).
  58. The new role is pretty much the same, but uses differently named variables.
  59. Please change your configuration (vars.yml) to rename all `matrix_postgres`-prefixed variables (`matrix_postgres_*` -> `devture_postgres_*`).
  60. The following variables in your configuration need to be renamed: {{ vars | dict2items | selectattr('key', 'match', 'matrix_postgres_.*') | map (attribute='key') | join(', ') }}
  61. when: "vars | dict2items | selectattr('key', 'match', 'matrix_postgres_.*') | list | items2dict"
  62. - when: matrix_playbook_migration_matrix_prometheus_node_exporter_migration_validation_enabled | bool
  63. block:
  64. - ansible.builtin.set_fact:
  65. matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars: |-
  66. {{ vars | dict2items | selectattr('key', 'match', 'matrix_prometheus_node_exporter_.*') | list | items2dict }}
  67. - name: (Deprecation) Catch and report matrix_prometheus_node_exporter variables
  68. ansible.builtin.fail:
  69. msg: >-
  70. The matrix-prometheus-node-exporter role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/prometheus_node_exporter.
  71. The new role is compatible with the old one, but uses different names for its variables.
  72. Please change your configuration (vars.yml) to rename all variables (`matrix_prometheus_node_exporter_` -> `prometheus_node_exporter_`).
  73. We found usage of the following variables: {{ matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars.keys() | join(', ') }}
  74. when: "matrix_playbook_migration_matrix_prometheus_node_exporter_migration_vars | length > 0"
  75. - when: matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_validation_enabled | bool
  76. block:
  77. - ansible.builtin.set_fact:
  78. matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars: |-
  79. {{ vars | dict2items | selectattr('key', 'match', 'matrix_prometheus_postgres_exporter_.*') | list | items2dict }}
  80. - name: (Deprecation) Catch and report matrix_prometheus_postgres_exporter variables
  81. ansible.builtin.fail:
  82. msg: >-
  83. The matrix-prometheus-postgres-exporter role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/prometheus_postgres_exporter.
  84. The new role is compatible with the old one, but uses different names for its variables.
  85. Please change your configuration (vars.yml) to rename all variables (`matrix_prometheus_postgres_exporter_` -> `prometheus_postgres_exporter_`).
  86. We found usage of the following variables: {{ matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars.keys() | join(', ') }}
  87. when: "matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_vars | length > 0"
  88. - when: matrix_playbook_migration_matrix_backup_borg_migration_validation_enabled | bool
  89. block:
  90. - ansible.builtin.set_fact:
  91. matrix_playbook_migration_backup_borg_migration_vars: |-
  92. {{ vars | dict2items | selectattr('key', 'match', 'matrix_backup_borg_.*') | list | items2dict }}
  93. - name: (Deprecation) Catch and report matrix_backup_borg variables
  94. ansible.builtin.fail:
  95. msg: >-
  96. The matrix-backup-borg role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/backup_borg.
  97. The new role is compatible with the old one, but uses different names for its variables.
  98. Please change your configuration (vars.yml) to rename all variables (`matrix_backup_borg_` -> `backup_borg_`).
  99. We found usage of the following variables: {{ matrix_playbook_migration_backup_borg_migration_vars.keys() | join(', ') }}
  100. when: "matrix_playbook_migration_backup_borg_migration_vars | length > 0"
  101. - when: matrix_playbook_migration_matrix_grafana_migration_validation_enabled | bool
  102. block:
  103. - ansible.builtin.set_fact:
  104. matrix_playbook_migration_grafana_migration_vars: |-
  105. {{ vars | dict2items | selectattr('key', 'match', 'matrix_grafana_.*') | list | items2dict }}
  106. - name: (Deprecation) Catch and report matrix_grafana variables
  107. ansible.builtin.fail:
  108. msg: >-
  109. The matrix-grafana role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/grafana.
  110. The new role is compatible with the old one, but uses different names for its variables.
  111. Please change your configuration (vars.yml) to rename all variables (`matrix_grafana_` -> `grafana_`).
  112. We found usage of the following variables: {{ matrix_playbook_migration_grafana_migration_vars.keys() | join(', ') }}
  113. when: "matrix_playbook_migration_grafana_migration_vars | length > 0"
  114. - when: matrix_playbook_migration_matrix_ntfy_migration_validation_enabled | bool
  115. block:
  116. - ansible.builtin.set_fact:
  117. matrix_playbook_migration_ntfy_migration_vars: |-
  118. {{ vars | dict2items | selectattr('key', 'match', 'matrix_ntfy_.*') | list | items2dict }}
  119. - name: (Deprecation) Catch and report matrix_ntfy variables
  120. ansible.builtin.fail:
  121. msg: >-
  122. The matrix-ntfy role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/ntfy.
  123. The new role is compatible with the old one, but uses different names for its variables.
  124. Please change your configuration (vars.yml) to rename all variables (`matrix_ntfy_` -> `ntfy_`).
  125. We found usage of the following variables: {{ matrix_playbook_migration_ntfy_migration_vars.keys() | join(', ') }}
  126. when: "matrix_playbook_migration_ntfy_migration_vars | length > 0"
  127. - when: matrix_playbook_migration_matrix_redis_migration_validation_enabled | bool
  128. block:
  129. - ansible.builtin.set_fact:
  130. matrix_playbook_migration_redis_migration_vars: |-
  131. {{ vars | dict2items | selectattr('key', 'match', 'matrix_redis_.*') | list | items2dict }}
  132. - name: (Deprecation) Catch and report matrix_redis variables
  133. ansible.builtin.fail:
  134. msg: >-
  135. The matrix-redis role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/redis.
  136. The new role is compatible with the old one, but uses different names for its variables.
  137. Please change your configuration (vars.yml) to rename all variables (`matrix_redis_` -> `redis_`).
  138. We found usage of the following variables: {{ matrix_playbook_migration_redis_migration_vars.keys() | join(', ') }}
  139. when: "matrix_playbook_migration_redis_migration_vars | length > 0"
  140. - when: matrix_playbook_migration_matrix_etherpad_migration_validation_enabled | bool
  141. block:
  142. - ansible.builtin.set_fact:
  143. matrix_playbook_migration_etherpad_migration_vars: |-
  144. {{ vars | dict2items | selectattr('key', 'match', 'matrix_etherpad_.*') | list | items2dict }}
  145. - name: (Deprecation) Catch and report matrix_etherpad variables
  146. ansible.builtin.fail:
  147. msg: >-
  148. The matrix-etherpad role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/etherpad.
  149. The new role is compatible with the old one, but uses different names for its variables.
  150. Please change your configuration (vars.yml) to rename all variables (`matrix_etherpad_` -> `etherpad_`).
  151. We found usage of the following variables: {{ matrix_playbook_migration_etherpad_migration_vars.keys() | join(', ') }}
  152. when: "matrix_playbook_migration_etherpad_migration_vars | length > 0"
  153. - when: matrix_playbook_migration_matrix_aux_migration_validation_enabled | bool
  154. block:
  155. - ansible.builtin.set_fact:
  156. matrix_playbook_migration_aux_migration_vars: |-
  157. {{ vars | dict2items | selectattr('key', 'match', 'matrix_aux_.*') | list | items2dict }}
  158. - name: (Deprecation) Catch and report matrix_aux variables
  159. ansible.builtin.fail:
  160. msg: >-
  161. The matrix-aux role that used to be part of this playbook has been replaced by https://github.com/mother-of-all-self-hosting/ansible-role-aux.
  162. The new role is compatible with the old one, but uses different names for its variables.
  163. Please change your configuration (vars.yml) to rename all variables (`matrix_aux_` -> `aux_`).
  164. We found usage of the following variables: {{ matrix_playbook_migration_aux_migration_vars.keys() | join(', ') }}
  165. when: "matrix_playbook_migration_aux_migration_vars | length > 0"