Skip to content

Instantly share code, notes, and snippets.

@nickmarden
Created September 29, 2014 23:48
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 nickmarden/665c339f4116bf58c65a to your computer and use it in GitHub Desktop.
Save nickmarden/665c339f4116bf58c65a to your computer and use it in GitHub Desktop.
nginx:
pkg:
- installed
nginx-config:
file:
- managed
- name: /etc/nginx/nginx.conf
- source: salt://conf/nginx/nginx.conf
- user: nginx
- group: nginx
- require:
- pkg: nginx
reload-nginx:
service.running:
- name: nginx
- enable: true
- reload: true
- watch:
- file: /etc/nginx/nginx.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment