oh I see what i did finally

This commit is contained in:
Stephen Smoogen 2017-01-10 17:03:58 +00:00
parent 11abb39bbc
commit 5656ca66aa

View file

@ -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 {