Try vars['nagios_location'] instead of nagios_location

Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
Rick Elrod 2018-06-27 22:40:02 +00:00
parent 3441c2e1b6
commit ab87b7ceb5

View file

@ -1,8 +1,8 @@
{% for host in groups['cloud']|sort %}
{% if host.startswith('copr') and nagios_location == 'external' %}
{% if host.startswith('copr') and vars['nagios_location'] == 'external' %}
{% else %}
define host {
{% if hostvars[host]['nagios_Check_Services']['nrpe'] and nagios_location == 'internal' %}
{% if hostvars[host].nagios_Check_Services['nrpe'] and vars['nagios_location'] == 'internal' %}
use defaulttemplate
{% else %}
use mincheck