mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
Zabbix: First try of the CMDB-in-Zabbix-Inventory idea (#12817)
Signed-off-by: Greg Sutcliffe <fedora@emeraldreverie.org>
This commit is contained in:
@@ -341,6 +341,11 @@ zabbix_url_path: "" # If Zabbix WebUI runs on non-default (zabbix) path ,e.g. h
|
||||
zabbix_host: "zabbix01{{ env_suffix }}.{{ datacenter }}.fedoraproject.org"
|
||||
zabbix_tls_psk_identity: "Fedora"
|
||||
zabbix_tls_psk: "{{ zabbix_tls_prod_psk }}" # in ansible-private repo
|
||||
# This is used to populate the inventory fields, only specific keys are allowed, see
|
||||
# https://www.zabbix.com/documentation/current/en/manual/api/reference/host/object#host-inventory
|
||||
zabbix_inventory:
|
||||
# Env is not a valid key, so use this field for environment
|
||||
deployment_status: production
|
||||
|
||||
notes: |
|
||||
Unspecified.
|
||||
|
||||
@@ -69,3 +69,8 @@ wildcard_key_file: wildcard-2025.stg.fedoraproject.org.key
|
||||
zabbix_server: zabbix.stg.fedoraproject.org
|
||||
zabbix_auth_key: "{{ zabbix_stg_apikey }}" # in ansible-private repo
|
||||
zabbix_tls_psk: "{{ zabbix_tls_stg_psk }}" # in ansible-private repo
|
||||
# This is used to populate the inventory fields, only specific keys are allowed, see
|
||||
# https://www.zabbix.com/documentation/current/en/manual/api/reference/host/object#host-inventory
|
||||
zabbix_inventory:
|
||||
# Env is not a valid key, so use this field for environment
|
||||
deployment_status: staging
|
||||
|
||||
@@ -65,3 +65,12 @@ network_connections:
|
||||
state: up
|
||||
mtu: 1500
|
||||
zabbix_host: zabbix01.vpn.fedoraproject.org
|
||||
# This is used to populate the inventory fields, only specific keys are allowed, see
|
||||
# https://www.zabbix.com/documentation/current/en/manual/api/reference/host/object#host-inventory
|
||||
zabbix_inventory:
|
||||
hardware: PowerEdge R6525
|
||||
location: RDU3
|
||||
oob_ip: 10.16.160.23
|
||||
serialno_a: BM4LS13
|
||||
site_rack: W34 U18
|
||||
vendor: Dell
|
||||
|
||||
@@ -63,3 +63,12 @@ network_connections:
|
||||
state: up
|
||||
mtu: 1500
|
||||
zabbix_host: zabbix01.vpn.fedoraproject.org
|
||||
# This is used to populate the inventory fields, only specific keys are allowed, see
|
||||
# https://www.zabbix.com/documentation/current/en/manual/api/reference/host/object#host-inventory
|
||||
zabbix_inventory:
|
||||
hardware: PowerEdge R6525
|
||||
location: RDU3
|
||||
oob_ip: 10.16.160.24
|
||||
serialno_a: BM4MS13
|
||||
site_rack: W34 U19
|
||||
vendor: Dell
|
||||
|
||||
@@ -65,3 +65,12 @@ network_connections:
|
||||
state: up
|
||||
mtu: 1500
|
||||
zabbix_host: zabbix01.vpn.fedoraproject.org
|
||||
# This is used to populate the inventory fields, only specific keys are allowed, see
|
||||
# https://www.zabbix.com/documentation/current/en/manual/api/reference/host/object#host-inventory
|
||||
zabbix_inventory:
|
||||
hardware: PowerEdge R6525
|
||||
location: RDU3
|
||||
oob_ip: 10.16.160.25
|
||||
serialno_a: BM4KS13
|
||||
site_rack: W34 U20
|
||||
vendor: Dell
|
||||
|
||||
@@ -65,3 +65,12 @@ network_connections:
|
||||
state: up
|
||||
mtu: 1500
|
||||
zabbix_host: zabbix01.vpn.fedoraproject.org
|
||||
# This is used to populate the inventory fields, only specific keys are allowed, see
|
||||
# https://www.zabbix.com/documentation/current/en/manual/api/reference/host/object#host-inventory
|
||||
zabbix_inventory:
|
||||
hardware: PowerEdge R6525
|
||||
location: RDU3
|
||||
oob_ip: 10.16.160.26
|
||||
serialno_a: BM3RS13
|
||||
site_rack: BB34 U18
|
||||
vendor: Dell
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
host_name: "{{ inventory_hostname }}"
|
||||
host_groups: "{{ zabbix_base_hostgroups }}"
|
||||
link_templates: "{{ zabbix_base_templates }}"
|
||||
inventory_mode: manual
|
||||
inventory_zabbix: "{{ zabbix_inventory }}"
|
||||
interfaces:
|
||||
- type: agent
|
||||
main: 1
|
||||
|
||||
Reference in New Issue
Block a user