From 0fcbef0842aef67b5f0af491b4e4717cfed3e6e0 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Mon, 1 May 2017 19:55:23 +0000 Subject: [PATCH] and we really should have remembered we solved this months ago --- roles/nagios_server/templates/nagios/hosts/cloud-hosts.cfg.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0e53dc55e1..dee66e3b8c 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,7 @@ {% for host in groups['all'] %} {% if hostvars[host].datacenter == 'cloud' or hostvars[host].datacenter == 'fedorainfracloud' %} define host { - use defaulttemplate + use mincheck host_name {{ host }} {% if hostvars[host].ansible_hostname is defined %} alias {{ hostvars[host].ansible_hostname }}