Support disable overwrite of existing haproxy config file
This commit is contained in:
parent
0a550b89b9
commit
df3aeb1e4c
1 changed files with 4 additions and 0 deletions
|
@ -14,3 +14,7 @@ haproxy.config:
|
|||
- service: haproxy.service
|
||||
- watch_in:
|
||||
- service: haproxy.service
|
||||
{% if salt['pillar.get']('haproxy:overwrite', default=True) == False %}
|
||||
- unless:
|
||||
- test -e /etc/haproxy/haproxy.cfg
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue