because its not doing what I want.. really I dont
This commit is contained in:
parent
213280d31f
commit
11abb39bbc
1 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
###############
|
###############
|
||||||
# All Servers and associated devices
|
# All Servers and associated devices
|
||||||
###############
|
###############
|
||||||
|
## {{ env }}
|
||||||
|
|
||||||
{% for key, value in groups.iteritems() %}
|
{% for key, value in groups.iteritems() %}
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
|
@ -26,7 +27,9 @@ define hostgroup{
|
||||||
|
|
||||||
{$ endif %}
|
{$ endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{{ env }}
|
|
||||||
|
##
|
||||||
|
## Management hardware
|
||||||
define hostgroup {
|
define hostgroup {
|
||||||
hostgroup_name phx2_mgmt_systems
|
hostgroup_name phx2_mgmt_systems
|
||||||
alias phx2_mgmt_systems
|
alias phx2_mgmt_systems
|
||||||
|
@ -35,10 +38,13 @@ define hostgroup {
|
||||||
}
|
}
|
||||||
|
|
||||||
{% if env != "staging" %}
|
{% if env != "staging" %}
|
||||||
|
##
|
||||||
|
## VPN clients
|
||||||
define hostgroup {
|
define hostgroup {
|
||||||
hostgroup_name vpnclients
|
hostgroup_name vpnclients
|
||||||
alias vpnclients
|
alias vpnclients
|
||||||
members {% for host in groups['all'] %}{% if hostvars[host].vpn %}{{host}},{% endif %} {% endfor %}
|
members {% for host in groups['all'] %}{% if hostvars[host].vpn %}{{host}},{% endif %} {% endfor %}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue