this staging noc only looks for staging hosts inside of phx2.
This commit is contained in:
parent
43c2c08479
commit
e29b677aad
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
define hostgroup{
|
||||
hostgroup_name all
|
||||
alias all
|
||||
members {% for host in groups['all'] %}{% if (hostvars[host].env is defined) and (hostvars[host].env == 'staging') %} {{host}}, {% endif %} {% endfor %}
|
||||
members {% for host in groups['all'] %}{% if (hostvars[host].env is defined) and (hostvars[host].env == 'staging') and (if hostvars[host].datacenter == 'phx2') %} {{host}}, {% endif %} {% endfor %}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue