From d11aeabedf66d2d606bc476bb82db30e2ae97661 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Mon, 19 Jun 2017 18:23:39 +0000 Subject: [PATCH] and we need an external dns group --- inventory/inventory | 5 +++++ .../templates/nagios/hostgroups/all-external.cfg.j2 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/inventory/inventory b/inventory/inventory index 8a295e18a7..8327bbdd49 100644 --- a/inventory/inventory +++ b/inventory/inventory @@ -556,6 +556,11 @@ ns03.phx2.fedoraproject.org ns04.phx2.fedoraproject.org ns05.fedoraproject.org +[dns-external] +ns02.fedoraproject.org +ns04.phx2.fedoraproject.org +ns05.fedoraproject.org + [openqa] openqa01.qa.fedoraproject.org diff --git a/roles/nagios_server/templates/nagios/hostgroups/all-external.cfg.j2 b/roles/nagios_server/templates/nagios/hostgroups/all-external.cfg.j2 index 3c5710f31e..65c1c8794a 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/all-external.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/all-external.cfg.j2 @@ -1,7 +1,7 @@ define hostgroup { hostgroup_name dnsservers alias DNS Servers - members {% for host in groups["dns"] %} {{ hostvars[host]["inventory_hostname_short"] }}.fedoraproject.org {% if not loop.last %}, {% endif %} {% endfor %} + members {% for host in groups["dns-external"] %} {{ hostvars[host]["inventory_hostname_short"] }}.fedoraproject.org {% if not loop.last %}, {% endif %} {% endfor %} }