haproxy.install: pkg.installed: - name: haproxy {% if salt['pillar.get']('haproxy:require') %} - require: {% for item in salt['pillar.get']('haproxy:require') %} - {{ item }} {% endfor %} {% endif %}