Merge branch 'master' of /git/ansible
This commit is contained in:
commit
527e769f34
2 changed files with 6 additions and 0 deletions
|
@ -415,6 +415,8 @@ buildppcle
|
||||||
buildarm
|
buildarm
|
||||||
buildaarch64
|
buildaarch64
|
||||||
buildvm-s390
|
buildvm-s390
|
||||||
|
buildvm-s390x
|
||||||
|
bkernel
|
||||||
|
|
||||||
[builders-stg:children]
|
[builders-stg:children]
|
||||||
buildarm-stg
|
buildarm-stg
|
||||||
|
|
|
@ -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