mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
move the dns_external check to using a group variable in the nagios group. This takes it out of the main inventory where its names do not match and this other group was not used in any other playbook
This commit is contained in:
@@ -105,6 +105,13 @@ iad2_external:
|
||||
- retrace01.fedoraproject.org
|
||||
- secondary01.fedoraproject.org
|
||||
|
||||
dns_external:
|
||||
- ns-iad01.fedoraproject.org
|
||||
- ns-iad02.fedoraproject.org
|
||||
- ns02.fedoraproject.org
|
||||
- ns05.fedoraproject.org
|
||||
|
||||
|
||||
# When you have a group which comes up with empty members in all.cfg, it
|
||||
# is because it contains all hosts which aren't pinganble. You may want
|
||||
# to add that group to this list. Other items on this list are ones
|
||||
|
||||
@@ -392,12 +392,6 @@ ns02.fedoraproject.org
|
||||
ns05.fedoraproject.org
|
||||
ns13.rdu2.fedoraproject.org
|
||||
|
||||
[dns_external]
|
||||
ns-iad01.iad2.fedoraproject.org
|
||||
ns-iad02.iad2.fedoraproject.org
|
||||
ns02.fedoraproject.org
|
||||
ns05.fedoraproject.org
|
||||
|
||||
[odcs_frontend]
|
||||
odcs-frontend01.iad2.fedoraproject.org
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
define hostgroup {
|
||||
hostgroup_name dns
|
||||
alias DNS Servers
|
||||
members {% for host in groups["dns_external"]|sort %} {{ hostvars[host]["inventory_hostname_short"] }}.fedoraproject.org {% if not loop.last %}, {% endif %} {% endfor %}
|
||||
members {% for host in vars['dns_external']|sort %}{{ host }}{% if not loop.last %}, {% endif %} {% endfor %}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user