haproxy to optionally depend on a custom state.

This commit is contained in:
Adam Bolte 2015-07-17 12:43:19 +10:00
parent 672fe36551
commit 1bbf7fd182
2 changed files with 12 additions and 1 deletions

View file

@ -3,6 +3,11 @@
# 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') %}
- {{ item }}
{% endfor %}
{% endif %}
- haproxy.install
- haproxy.service
- haproxy.config

View file

@ -12,3 +12,9 @@ haproxy_ppa_repo:
haproxy.install:
pkg.installed:
- name: haproxy
{% if salt['pillar.get']('haproxy:require') %}
- require:
{% for item in salt['pillar.get']('haproxy:require') %}
- {{ item }}
{% endfor %}
{% endif %}