formula-haproxy/haproxy/install.sls

12 lines
290 B
Text
Raw Normal View History

{% from "haproxy/map.jinja" import haproxy with context %}
haproxy.install:
pkg.installed:
- name: {{ haproxy.package }}
{% if salt['pillar.get']('haproxy:require') %}
- require:
{% for item in salt['pillar.get']('haproxy:require') %}
- {{ item }}
{% endfor %}
{% endif %}