Revert "have to add group by group to see where break is"
This reverts commit 553341ca7a
.
This commit is contained in:
parent
553341ca7a
commit
fd67776bab
1 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,16 @@
|
||||||
# All Servers and associated devices
|
# All Servers and associated devices
|
||||||
###############
|
###############
|
||||||
## {{ env }}
|
## {{ env }}
|
||||||
|
{% for key, value in groups.iteritems()|sort %}
|
||||||
|
{% if groups[key] != [] and key not in vars['exclude_hostgroups'] %}
|
||||||
|
define hostgroup{
|
||||||
|
hostgroup_name {{ key }}
|
||||||
|
alias {{ key }}
|
||||||
|
members {% for host in groups[key]|sort %}{% if hostvars[host].nagios_Can_Connect == true %}{{host}}, {% endif %}{% endfor %}
|
||||||
|
|
||||||
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
define hostgroup{
|
define hostgroup{
|
||||||
hostgroup_name no_ping
|
hostgroup_name no_ping
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue