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_pass: zabbix # OVERRIDE
# This is to configure matching PSK identity to the agents
zabbix_tls_psk_identity: "Fedora" # OVERRIDE
zabbix_server_pkgs:
- zabbix-server-pgsql
- zabbix-web-pgsql

View file

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