Skip to content

Instantly share code, notes, and snippets.

@Spankalish
Created March 3, 2016 19:12
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/1d76999496fa21b1c8de to your computer and use it in GitHub Desktop.
Save Spankalish/1d76999496fa21b1c8de to your computer and use it in GitHub Desktop.
nginx:
pkg.installed:
- name: nginx
nginx_run:
service.running:
- watch:
- pkg: nginx
- file: /etc/nginx/nginx.conf
-require:
-file: /etc/nginx/nginx.conf
- pkg: nginx
/etc/nginx/nginx.conf:
file:
- managed
- source: salt://nginx/nginx.conf
- user: root
- group: root
- mode: 644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment