setup vagrant box roles and nginx package
This commit is contained in:
parent
6f9b17dc49
commit
18ae1e15f4
9 changed files with 88 additions and 0 deletions
21
salt/roots/base/nginx.sls
Normal file
21
salt/roots/base/nginx.sls
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue