diff --git a/haproxy/config.sls b/haproxy/config.sls index 71e3d83..b70f570 100644 --- a/haproxy/config.sls +++ b/haproxy/config.sls @@ -8,7 +8,6 @@ haproxy.config: - template: jinja - user: {{ haproxy.user }} - group: {{ haproxy.group }} - {% endif %} - mode: 644 - require_in: - service: haproxy.service diff --git a/pillar.example b/pillar.example index f49824b..a83917e 100644 --- a/pillar.example +++ b/pillar.example @@ -7,9 +7,12 @@ haproxy: #lookup: #user: 'custom-user' #group: 'custom-group' + # new setting to override configuration file path + #config_file: /etc/haproxy/haproxy.cfg enabled: True overwrite: True # Overwrite an existing config file if present (default behaviour unless set to false) - config_file_path: /etc/haproxy/haproxy.cfg + # old setting to override configuration file path, kept for compatibility + #config_file_path: /etc/haproxy/haproxy.cfg global: log: - 127.0.0.1 local2