fix staging hosts nrpe checking for staging builders
This commit is contained in:
parent
39d45bab43
commit
32dc682b1f
1 changed files with 4 additions and 0 deletions
|
@ -1,7 +1,11 @@
|
|||
{% for host in groups['all'] %}
|
||||
{% if hostvars[host].datacenter == 'staging' %}
|
||||
define host {
|
||||
{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}
|
||||
use defaulttemplate
|
||||
{% else %}
|
||||
use mincheck
|
||||
{% endif %}
|
||||
host_name {{ host }}
|
||||
{% if hostvars[host].ansible_hostname is defined %}
|
||||
alias {{ hostvars[host].ansible_hostname }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue