formula-haproxy/haproxy/config.sls

12 lines
339 B
Text
Raw Normal View History

haproxy.config:
file.managed:
- name: {{ salt['pillar.get']('haproxy:config_file_path', '/etc/haproxy/haproxy.cfg') }}
- source: salt://haproxy/templates/haproxy.jinja
- template: jinja
- user: root
- group: root
- mode: 644
- require_in:
- service: haproxy.service
- watch_in:
- service: haproxy.service