Zabbix-stg: disable user-management until we can upgrade to 3.3.0

This commit is contained in:
Greg Sutcliffe 2025-04-04 16:27:23 +01:00
parent a39db46926
commit f5475063e6
2 changed files with 30 additions and 24 deletions

View file

@ -8,6 +8,9 @@ zabbix_db_name: zabbix # OVERRIDE
zabbix_db_user: zabbix # OVERRIDE zabbix_db_user: zabbix # OVERRIDE
zabbix_db_pass: zabbix # OVERRIDE zabbix_db_pass: zabbix # OVERRIDE
# This is to configure matching PSK identity to the agents
zabbix_tls_psk_identity: "Fedora" # OVERRIDE
zabbix_server_pkgs: zabbix_server_pkgs:
- zabbix-server-pgsql - zabbix-server-pgsql
- zabbix-web-pgsql - zabbix-web-pgsql

View file

@ -65,30 +65,33 @@
- zabbix_configuration - zabbix_configuration
- zabbix_triggers - zabbix_triggers
- name: Create a new Zabbix user for Matrix triggers # Breaks on second run with community.zabbix < 3.3.0
community.zabbix.zabbix_user: # See https://github.com/ansible-collections/community.zabbix/commit/8a962bfc046353db60a594ddc259fae396fc20a9
username: matrix-bot # Revisit after freeze is over - don't delete the user or the next task will fail
name: Matrix # - name: Create a new Zabbix user for Matrix triggers
surname: Bot # community.zabbix.zabbix_user:
usrgrps: # username: matrix-bot
- Zabbix administrators # name: Matrix
passwd: "{{ (env == 'staging') | ternary(zabbix_stg_botuser_pwd, zabbix_botuser_pwd) }}" # surname: Bot
user_medias: # usrgrps:
- mediatype: Matrix # - Zabbix administrators
sendto: "{{ (env == 'staging') | ternary(zabbix_stg_matrix_roomid, zabbix_matrix_roomid) }}" # passwd: "{{ (env == 'staging') | ternary(zabbix_stg_botuser_pwd, zabbix_botuser_pwd) }}"
period: 1-7,00:00-24:00 # user_medias:
severity: # - mediatype: Matrix
not_classified: yes # sendto: "{{ (env == 'staging') | ternary(zabbix_stg_matrix_roomid, zabbix_matrix_roomid) }}"
information: yes # period: 1-7,00:00-24:00
warning: yes # severity:
average: yes # not_classified: yes
high: yes # information: yes
disaster: yes # warning: yes
active: yes # average: yes
state: present # high: yes
tags: # disaster: yes
- zabbix_configuration # active: yes
- zabbix_users # state: present
# tags:
# - zabbix_configuration
# - zabbix_users
- name: Send alerts to Matrix - name: Send alerts to Matrix
community.zabbix.zabbix_action: community.zabbix.zabbix_action: