haproxy to optionally depend on a custom state.
This commit is contained in:
parent
672fe36551
commit
1bbf7fd182
2 changed files with 12 additions and 1 deletions
|
@ -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
|
|
@ -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 %}
|
Loading…
Reference in a new issue