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'] %}
|
{% for host in groups['all'] %}
|
||||||
{% if hostvars[host].datacenter == 'staging' %}
|
{% if hostvars[host].datacenter == 'staging' %}
|
||||||
define host {
|
define host {
|
||||||
|
{% if hostvars[host].nagios_Check_Services['nrpe'] == true %}
|
||||||
use defaulttemplate
|
use defaulttemplate
|
||||||
|
{% else %}
|
||||||
|
use mincheck
|
||||||
|
{% endif %}
|
||||||
host_name {{ host }}
|
host_name {{ host }}
|
||||||
{% if hostvars[host].ansible_hostname is defined %}
|
{% if hostvars[host].ansible_hostname is defined %}
|
||||||
alias {{ hostvars[host].ansible_hostname }}
|
alias {{ hostvars[host].ansible_hostname }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue