Skip to content

Instantly share code, notes, and snippets.

@tuco86
Created January 15, 2016 00:13
Show Gist options
  • Save tuco86/32b928a32fcd21550294 to your computer and use it in GitHub Desktop.
Save tuco86/32b928a32fcd21550294 to your computer and use it in GitHub Desktop.
#nginx/init.sls
nginx:
pkg.installed: []
service.running:
- reload: True
- watch:
- file: /etc/nginx/nginx.conf
- file: /etc/nginx/sites.d/default
- pkg: nginx
/etc/nginx/nginx.conf:
file.managed:
- user: root
- group: root
- mode: 644
- source: salt://nginx/nginx.conf
- require:
- pkg: nginx
/etc/nginx/sites.d:
file.directory: []
/etc/nginx/sites.d/default:
file.managed:
- user: root
- group: root
- mode: 644
- template: jinja
- source: salt://nginx/sites.d/default
/etc/nginx/sites-enabled/000default:
file.absent: []
/etc/nginx/sites-enabled/default:
file.absent: []
# sentry/init.sls
include:
- nginx
/etc/nginx/sites.d/sentry.tuc0.de:
file.managed:
- source: salt://sentry/sentry.tuc0.de
- watch_in:
- servie: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment