From af5ffb55f113b9fc925c2a7fb0ee03e28e6829c5 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Fri, 23 Jun 2017 20:03:23 +0000 Subject: [PATCH] ok let us try and make this just a minimal set of looks --- .../nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 index 5674832615..47ecc04bdc 100644 --- a/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 +++ b/roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 @@ -1,7 +1,6 @@ -{% for host in groups['all'] %} -{% if hostvars[host].datacenter == 'cloud' %} +{% for host in groups['cloud'] %} define host { -{% if hostvars[host].nagios_Check_Services['nrpe'] == true %} +{% if hostvars[host].nagios_Check_Services['nrpe'] == true and nagios_location == 'internal' %} use defaulttemplate {% else %} use mincheck