Try vars['nagios_location'] instead of nagios_location
Signed-off-by: Rick Elrod <relrod@redhat.com>
This commit is contained in:
parent
3441c2e1b6
commit
ab87b7ceb5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue