From eb36b5e7f05a1a2b9a82350ef2e3943687025868 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Mon, 19 Jun 2017 17:52:14 +0000 Subject: [PATCH] I have no idea what I am doing --- .../templates/nagios/hostgroups/all-external.cfg.j2 | 4 ++-- .../nagios_server/templates/nagios/hosts/phx2-external.cfg.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 eebb0b9b92..626d8c32a0 100644 --- a/roles/nagios_server/templates/nagios/hostgroups/all-external.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hostgroups/all-external.cfg.j2 @@ -1,13 +1,13 @@ define hostgroup { hostgroup_name dnsservers alias DNS Servers - members {% for host in groups["dns"] %} {{ hostvars[host]['inventory_hostname_short'] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %} + members {% for host in groups["dns"] %} {{ hostvars["host"]["inventory_hostname_short"] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %} } define hostgroup { hostgroup_name proxies alias Web Servers - members {% for host in groups["proxies"] %} {{ hostvars[host]['inventory_hostname_short'] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %} + members {% for host in groups["proxies"] %} {{ hostvars["host"]["inventory_hostname_short"] }}.fedoraproject.org {% if !loop.last %}, {% endif %} {% endfor %} } diff --git a/roles/nagios_server/templates/nagios/hosts/phx2-external.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/phx2-external.cfg.j2 index 679ba729a7..9e711cedb4 100644 --- a/roles/nagios_server/templates/nagios/hosts/phx2-external.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/phx2-external.cfg.j2 @@ -1,4 +1,4 @@ -{% for host in vars['phx2_external'] %} +{% for host in vars["phx2_external"] %} define host { host_name {{ host }} alias {{ host }}