ok I cant see what the f is wrong so we are undoing each loop until it breaks
This commit is contained in:
parent
4ccab7da0f
commit
b8b8155e52
1 changed files with 0 additions and 42 deletions
|
@ -3,10 +3,6 @@
|
||||||
###############
|
###############
|
||||||
## {{ env }}
|
## {{ env }}
|
||||||
|
|
||||||
{% if env == "staging" %}
|
|
||||||
{% for key, value in groups.iteritems() %}
|
|
||||||
{% if groups[key] %}
|
|
||||||
|
|
||||||
define hostgroup{
|
define hostgroup{
|
||||||
hostgroup_name {{ key }}
|
hostgroup_name {{ key }}
|
||||||
alias {{ key }}
|
alias {{ key }}
|
||||||
|
@ -14,41 +10,3 @@ define hostgroup{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
|
|
||||||
{% for key, value in groups.iteritems() %}
|
|
||||||
{% if groups[key] %}
|
|
||||||
define hostgroup{
|
|
||||||
hostgroup_name {{ key }}
|
|
||||||
alias {{ key }}
|
|
||||||
members {% for host in groups[key] %}{{host}}, {% endfor %}
|
|
||||||
|
|
||||||
}
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
##
|
|
||||||
## Management hardware
|
|
||||||
define hostgroup {
|
|
||||||
hostgroup_name phx2_mgmt_systems
|
|
||||||
alias phx2_mgmt_systems
|
|
||||||
members {% for host in vars['phx2_management_hosts'] %}{{host}}{% if not loop.last %},{% endif %} {% endfor %}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
{% if env != "staging" %}
|
|
||||||
##
|
|
||||||
## VPN clients
|
|
||||||
define hostgroup {
|
|
||||||
hostgroup_name vpnclients
|
|
||||||
alias vpnclients
|
|
||||||
members {% for host in groups['all'] %}{% if hostvars[host].vpn %}{{host}},{% endif %} {% endfor %}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue