and we have an attempt at this

This commit is contained in:
Stephen Smoogen 2017-04-29 22:30:16 +00:00
parent 00898d910e
commit 73920cf38b
3 changed files with 14 additions and 1 deletions

View file

@ -257,3 +257,7 @@ vpn: False
# assume createrepo is true and this builder has the koji nfs mount to do that
createrepo: True
# Nagios global variables
nagios_has_named: false

View file

@ -20,3 +20,5 @@ sudoers: "{{ private }}/files/sudo/sysadmin-dns"
csi_security_category: High
csi_primary_contact: Fedora Admins - admin@fedoraproject.org
csi_purpose: Domain Name Service
nagios_has_named: true

View file

@ -5,7 +5,14 @@
define hostgroup {
hostgroup_name phx-virt
alias PHX Virtual ServiceGroup
members {% for host in groups['virtservers'] %} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH, {% endfor %}
members {% for host in groups['virtservers'] %}{% if hostvars[host].datacenter == 'phx2'%} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH,{% endif %}{% endfor %}
}
define hostgroup {
hostgroup_name remote-virt
alias PHX Virtual ServiceGroup
members {% for host in groups['virtservers'] %}{% if hostvars[host].datacenter != 'phx2'%} {{host}}, Disk space /, {{host}}, Total Processes, {{host}}, Check Raid, {{host}}, Swap, {{host}}, SSH,{% endif %}{% endfor %}
}