We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dfd7468 + 4e5f763 commit b69c7edCopy full SHA for b69c7ed
2 files changed
haproxy/config.sls
@@ -14,3 +14,7 @@ haproxy.config:
14
- service: haproxy.service
15
- watch_in:
16
17
+ {% if salt['pillar.get']('haproxy:overwrite', default=True) == False %}
18
+ - unless:
19
+ - test -e {{ salt['pillar.get']('haproxy:config_file_path', '/etc/haproxy/haproxy.cfg') }}
20
+ {% endif %}
pillar.example
@@ -4,6 +4,7 @@
4
5
haproxy:
6
enabled: True
7
+ overwrite: True # Overwrite an existing config file if present (default behaviour unless set to false)
8
config_file_path: /etc/haproxy/haproxy.cfg
9
global:
10
stats:
0 commit comments