2015-02-24 16:19:02 -05:00
|
|
|
haproxy.service:
|
|
|
|
service.running:
|
|
|
|
- name: haproxy
|
|
|
|
- enable: True
|
2015-03-17 12:35:21 -04:00
|
|
|
- reload: True
|
2015-02-24 16:19:02 -05:00
|
|
|
- require:
|
|
|
|
- pkg: haproxy
|
|
|
|
- watch:
|
|
|
|
- file: haproxy.config
|
|
|
|
file.managed:
|
|
|
|
- name: /etc/default/haproxy
|
|
|
|
#TODO: Add switch to turn the service on and off based on pillar configuration.
|
|
|
|
- source: salt://haproxy/files/haproxy-init-enable
|
|
|
|
- create: True
|
|
|
|
- user: "root"
|
|
|
|
- group: "root"
|
|
|
|
- mode: "0644"
|