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 }}
|
||||
|
||||
{% for key, value in groups.iteritems() %}
|
||||
{% if env == "staging" %}
|
||||
{% for key, value in groups.iteritems() %}
|
||||
{% if groups[key] %}
|
||||
|
||||
define hostgroup{
|
||||
|
@ -15,7 +15,11 @@ define hostgroup{
|
|||
}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
|
||||
{% for key, value in groups.iteritems() %}
|
||||
{% if groups[key] %}
|
||||
define hostgroup{
|
||||
hostgroup_name {{ key }}
|
||||
|
@ -23,11 +27,11 @@ define hostgroup{
|
|||
members {% for host in groups[key] %}{{host}}, {% endfor %}
|
||||
|
||||
}
|
||||
|
||||
|
||||
{$ endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% endif %}
|
||||
|
||||
##
|
||||
## Management hardware
|
||||
define hostgroup {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue