We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4586aea + aeb1844 commit 1b7e179Copy full SHA for 1b7e179
1 file changed
haproxy/init.sls
@@ -3,11 +3,10 @@
3
# Meta-state to fully setup haproxy on debian. (or any other distro that has haproxy in their repo)
4
5
include:
6
-{% if salt['pillar.get']('haproxy:include') %}
7
-{% for item in salt['pillar.get']('haproxy:include') %}
+{%- set haproxy_items = salt['pillar.get']('haproxy:include', []) %}
+{%- for item in haproxy_items %}
8
- {{ item }}
9
-{% endfor %}
10
-{% endif %}
+{%- endfor %}
11
- haproxy.install
12
- haproxy.service
13
- haproxy.config
0 commit comments