Merge pull request #54 from sbraverman/brave-1

Simplifies jinja logic and removes extra lines
This commit is contained in:
Forrest 2016-06-16 17:36:10 -07:00 committed by GitHub
commit 1b7e1794ef

View file

@ -3,11 +3,10 @@
# Meta-state to fully setup haproxy on debian. (or any other distro that has haproxy in their repo)
include:
{% if salt['pillar.get']('haproxy:include') %}
{% for item in salt['pillar.get']('haproxy:include') %}
{%- set haproxy_items = salt['pillar.get']('haproxy:include', []) %}
{%- for item in haproxy_items %}
- {{ item }}
{% endfor %}
{% endif %}
{%- endfor %}
- haproxy.install
- haproxy.service
- haproxy.config