Last active
December 22, 2015 17:19
-
-
Save vbabiy/6505075 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx: | |
pkg: | |
- installed | |
service: | |
- running | |
- require: | |
- pkg: nginx | |
- watch: | |
- file: /etc/nginx/sites-enabled/{{ pillar['application']['name'] }} | |
/etc/nginx/sites-enabled/default: | |
file.absent: | |
- watch_in: | |
- service: nginx | |
/etc/nginx/sites-available/{{ pillar['application']['name'] }}: | |
file.managed: | |
- template: jinja | |
- source: salt://nginx/files/site-conf | |
/etc/nginx/sites-enabled/{{ pillar['application']['name'] }}: | |
file.symlink: | |
- target: /etc/nginx/sites-available/{{ pillar['application']['name'] }} | |
- require: | |
- file: /etc/nginx/sites-available/{{ pillar['application']['name'] }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment