setup vagrant box roles and nginx package

This commit is contained in:
Jan Dittberner 2015-10-04 19:00:46 +02:00
parent 6f9b17dc49
commit 18ae1e15f4
9 changed files with 88 additions and 0 deletions

21
salt/roots/base/nginx.sls Normal file
View file

@ -0,0 +1,21 @@
nginx:
pkg:
- installed
service.running:
- enable: True
- require:
- pkg: nginx
nginx-common:
pkg.installed
/etc/nginx/nginx.conf:
file.managed:
- source: salt://base/nginx.conf
- user: root
- group: root
- mode: 0644
- require:
- pkg: nginx-common
- watch_in:
- service: nginx