Replace matrix-grafana with an external role
This commit is contained in:
@ -8,3 +8,6 @@ matrix_playbook_migration_matrix_prometheus_postgres_exporter_migration_validati
|
||||
|
||||
# Controls if (`matrix_backup_borg` -> `backup_borg`) validation will run.
|
||||
matrix_playbook_migration_matrix_backup_borg_migration_validation_enabled: true
|
||||
|
||||
# Controls if (`matrix_grafana` -> `grafana`) validation will run.
|
||||
matrix_playbook_migration_matrix_grafana_migration_validation_enabled: true
|
||||
|
@ -95,3 +95,18 @@
|
||||
Please change your configuration (vars.yml) to rename all variables (`matrix_backup_borg_` -> `backup_borg_`).
|
||||
We found usage of the following variables: {{ matrix_playbook_migration_backup_borg_migration_vars.keys() | join(', ') }}
|
||||
when: "matrix_playbook_migration_backup_borg_migration_vars | length > 0"
|
||||
|
||||
- when: matrix_playbook_migration_matrix_grafana_migration_validation_enabled | bool
|
||||
block:
|
||||
- ansible.builtin.set_fact:
|
||||
matrix_playbook_migration_grafana_migration_vars: |-
|
||||
{{ vars | dict2items | selectattr('key', 'match', 'matrix_grafana_.*') | list | items2dict }}
|
||||
|
||||
- name: (Deprecation) Catch and report matrix_grafana variables
|
||||
ansible.builtin.fail:
|
||||
msg: >-
|
||||
The matrix-grafana role that used to be part of this playbook has been replaced by https://gitlab.com/etke.cc/roles/grafana.
|
||||
The new role is compatible with the old one, but uses different names for its variables.
|
||||
Please change your configuration (vars.yml) to rename all variables (`matrix_grafana_` -> `grafana_`).
|
||||
We found usage of the following variables: {{ matrix_playbook_migration_grafana_migration_vars.keys() | join(', ') }}
|
||||
when: "matrix_playbook_migration_grafana_migration_vars | length > 0"
|
||||
|
Reference in New Issue
Block a user