oh I see what i did finally
This commit is contained in:
parent
11abb39bbc
commit
5656ca66aa
1 changed files with 8 additions and 4 deletions
|
@ -3,8 +3,8 @@
|
||||||
###############
|
###############
|
||||||
## {{ env }}
|
## {{ env }}
|
||||||
|
|
||||||
{% for key, value in groups.iteritems() %}
|
|
||||||
{% if env == "staging" %}
|
{% if env == "staging" %}
|
||||||
|
{% for key, value in groups.iteritems() %}
|
||||||
{% if groups[key] %}
|
{% if groups[key] %}
|
||||||
|
|
||||||
define hostgroup{
|
define hostgroup{
|
||||||
|
@ -15,7 +15,11 @@ define hostgroup{
|
||||||
}
|
}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
|
{% for key, value in groups.iteritems() %}
|
||||||
{% if groups[key] %}
|
{% if groups[key] %}
|
||||||
define hostgroup{
|
define hostgroup{
|
||||||
hostgroup_name {{ key }}
|
hostgroup_name {{ key }}
|
||||||
|
@ -23,11 +27,11 @@ define hostgroup{
|
||||||
members {% for host in groups[key] %}{{host}}, {% endfor %}
|
members {% for host in groups[key] %}{{host}}, {% endfor %}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
{$ endif %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
##
|
##
|
||||||
## Management hardware
|
## Management hardware
|
||||||
define hostgroup {
|
define hostgroup {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue