Skip to content

Instantly share code, notes, and snippets.

@Spankalish
Created March 5, 2016 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spankalish/68213e0a6213b5dd8ccd to your computer and use it in GitHub Desktop.
Save Spankalish/68213e0a6213b5dd8ccd to your computer and use it in GitHub Desktop.
haproxy:
pkg.installed:
- name: haproxy
haproxy_run:
service.running:
- name: haproxy
- enable: True
- reload: True
- watch:
- pkg: haproxy
- file: /etc/haproxy/haproxy.cfg
- file: /etc/default/haproxy
- require:
- file: /etc/haproxy/haproxy.cfg
- file: /etc/default/haproxy
- pkg: haproxy
/etc/haproxy/haproxy.cfg:
file:
- managed
- source: salt://haproxy/haproxy.cfg
- user: root
- group: root
- mode: 644
/etc/default/haproxy:
file:
- replace
- pattern: 'ENABLED=0'
- repl: 'ENABLED=1'
- show_changes: True
socat:
pkg.installed:
- name: socat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment