Skip to content

Instantly share code, notes, and snippets.

@Spankalish
Created March 5, 2016 13:03
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/10e73cfb6d91cc93827a to your computer and use it in GitHub Desktop.
Save Spankalish/10e73cfb6d91cc93827a to your computer and use it in GitHub Desktop.
nginx:
pkg.installed:
- name: nginx-full
nginx_run:
service.running:
- pkg: nginx_run
- enable: True
- watch:
- 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