zabbix: Enable zabbix agent on prod hosts

Signed-off-by: David Kirwan <davidkirwanirl@gmail.com>
This commit is contained in:
David Kirwan 2024-01-03 14:31:12 +00:00
parent 5fd49a0b20
commit 5ad386ed6f
No known key found for this signature in database
GPG key ID: A5893AB6474AC37D
23 changed files with 23 additions and 25 deletions

View file

@ -21,7 +21,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- {role: openvpn/client, - {role: openvpn/client,
when: env != "staging"} when: env != "staging"}

View file

@ -21,7 +21,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- {role: openvpn/client, - {role: openvpn/client,
when: env != "staging"} when: env != "staging"}

View file

@ -34,7 +34,7 @@
roles: roles:
- base - base
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- collectd/base - collectd/base
- hosts - hosts
- ipa/client - ipa/client

View file

@ -16,7 +16,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- {role: openvpn/client, when: env != "staging"} - {role: openvpn/client, when: env != "staging"}
- ipa/client - ipa/client

View file

@ -27,7 +27,7 @@
- rkhunter - rkhunter
- {role: ipa/client, when: env == "staging"} - {role: ipa/client, when: env == "staging"}
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
#- postgresql_server #- postgresql_server
#- collectd/base #- collectd/base

View file

@ -19,7 +19,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- ipa/client - ipa/client
- collectd/base - collectd/base

View file

@ -21,7 +21,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- {role: openvpn/client, - {role: openvpn/client,
when: env != "staging"} when: env != "staging"}

View file

@ -16,7 +16,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- collectd/base - collectd/base
- hosts - hosts
- {role: openvpn/client, - {role: openvpn/client,

View file

@ -20,7 +20,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- rsyncd - rsyncd
- sudo - sudo

View file

@ -28,7 +28,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- ipa/client - ipa/client
- collectd/base - collectd/base

View file

@ -19,7 +19,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
# openvpn on the prod frontend nodes # openvpn on the prod frontend nodes
- {role: openvpn/client, when: "'mbs_frontend' in group_names and datacenter == 'iad2'"} - {role: openvpn/client, when: "'mbs_frontend' in group_names and datacenter == 'iad2'"}

View file

@ -16,7 +16,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- ipa/client - ipa/client
- collectd/base - collectd/base

View file

@ -16,7 +16,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- {role: openvpn/client, when: env != "staging" and inventory_hostname.startswith('mm-frontend')} - {role: openvpn/client, when: env != "staging" and inventory_hostname.startswith('mm-frontend')}
- ipa/client - ipa/client

View file

@ -17,8 +17,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- { role: zabbix/zabbix_agent, - zabbix/zabbix_agent
when: env == "staging" }
- hosts - hosts
- { role: openvpn/client, - { role: openvpn/client,
when: env != "staging" } when: env != "staging" }

View file

@ -19,7 +19,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- ipa/client - ipa/client
- rsyncd - rsyncd

View file

@ -16,7 +16,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- openvpn/client - openvpn/client
- ipa/client - ipa/client

View file

@ -22,7 +22,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- collectd/base - collectd/base
- hosts - hosts
- ipa/client - ipa/client

View file

@ -18,7 +18,7 @@
- hosts - hosts
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- ipa/client - ipa/client
- collectd/base - collectd/base
- sudo - sudo

View file

@ -27,7 +27,7 @@
- rkhunter - rkhunter
- ipa/client - ipa/client
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- postgresql_server - postgresql_server
- collectd/base - collectd/base

View file

@ -28,7 +28,7 @@
- ipa/client - ipa/client
- rkhunter - rkhunter
- nagios_client - nagios_client
- role: zabbix/zabbix_agent - zabbix/zabbix_agent
- collectd/base - collectd/base
- sudo - sudo
- role: keytab/service - role: keytab/service

View file

@ -16,7 +16,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- {role: openvpn/client, - {role: openvpn/client,
when: env != "staging"} when: env != "staging"}

View file

@ -40,7 +40,7 @@
- base - base
- {role: rkhunter} - {role: rkhunter}
- {role: nagios_client} - {role: nagios_client}
- {role: zabbix/zabbix_agent, when: env == "staging"} - zabbix/zabbix_agent
- hosts - hosts
- {role: openvpn/client, when: vpn|bool} - {role: openvpn/client, when: vpn|bool}
- ipa/client - ipa/client

View file

@ -24,6 +24,7 @@
- base - base
- rkhunter - rkhunter
- nagios_client - nagios_client
- zabbix/zabbix_agent
- hosts - hosts
- { role: openvpn/client, - { role: openvpn/client,
when: env != "staging" } when: env != "staging" }
@ -39,8 +40,6 @@
- { role: nfs/client, when: env != "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app/app/attachments' } - { role: nfs/client, when: env != "staging", mnt_dir: '/mnt/web/attachments', nfs_src_dir: 'fedora_app/app/attachments' }
- mediawiki - mediawiki
- sudo - sudo
- role: zabbix/zabbix_agent
when: env == "staging"
tasks: tasks:
- import_tasks: "{{ tasks_path }}/motd.yml" - import_tasks: "{{ tasks_path }}/motd.yml"