Skip to content

Instantly share code, notes, and snippets.

Created June 9, 2015 18:50
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 anonymous/b9399ebb2b641f92b71b to your computer and use it in GitHub Desktop.
Save anonymous/b9399ebb2b641f92b71b to your computer and use it in GitHub Desktop.
nginx:
pkg:
- installed
service.disabled:
- name: nginx
- require:
- pkg: nginx
- file: /etc/nginx/sites-available/default
service.dead:
- name: nginx
/etc/nginx/sites-available/default:
file.managed:
- user: root
- group: root
- mode: 644
- source: salt://nginx/files/default
- require:
- pkg: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment