Simplifies jinja logic and removes extra lines
This commit is contained in:
parent
4586aea25c
commit
aeb1844e2f
1 changed files with 3 additions and 4 deletions
|
@ -3,11 +3,10 @@
|
||||||
# Meta-state to fully setup haproxy on debian. (or any other distro that has haproxy in their repo)
|
# Meta-state to fully setup haproxy on debian. (or any other distro that has haproxy in their repo)
|
||||||
|
|
||||||
include:
|
include:
|
||||||
{% if salt['pillar.get']('haproxy:include') %}
|
{%- set haproxy_items = salt['pillar.get']('haproxy:include', []) %}
|
||||||
{% for item in salt['pillar.get']('haproxy:include') %}
|
{%- for item in haproxy_items %}
|
||||||
- {{ item }}
|
- {{ item }}
|
||||||
{% endfor %}
|
{%- endfor %}
|
||||||
{% endif %}
|
|
||||||
- haproxy.install
|
- haproxy.install
|
||||||
- haproxy.service
|
- haproxy.service
|
||||||
- haproxy.config
|
- haproxy.config
|
||||||
|
|
Loading…
Reference in a new issue