From 707e0e606d005d624392a32e47c41438b2a112df Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 23 Jun 2017 15:59:17 +0000 Subject: [PATCH] hahahahahahahaha hahahahahahahhaha hahahahahahahahahahahha --- .../templates/nagios/hosts/gateway-hosts.cfg.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 index b004ac774b..708e989d5c 100644 --- a/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/gateway-hosts.cfg.j2 @@ -12,8 +12,10 @@ define host { {% else %} address 66.187.228.248 {% endif %} +{% if vars['nagios_location'] == 'external' %} + parents ibiblio-gw +{% endif %} - address } #'ibiblio' @@ -25,7 +27,6 @@ define host { address 152.19.134.129 {% if vars['nagios_location'] == 'internal' %} parents phx2-gw -{% else %} {% endif %} }