Snipt: Glitch Edition
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
696 B

nginx:
pkg:
- installed
service:
- running
- enable: True
- watch:
- file: /etc/nginx/nginx.conf
- file: /etc/nginx/sites-enabled/*
/etc/nginx/sites-available:
file.directory:
- mode: 755
- require:
- pkg: nginx
/etc/nginx/sites-enabled:
file.directory:
- mode: 755
- require:
- pkg: nginx
{% if pillar.env_name != 'vagrant' %}
/etc/certs:
file.directory:
- mode: 644
- require:
- pkg: nginx
{% endif %}
/etc/nginx/nginx.conf:
file.managed:
- source: salt://nginx/nginx.conf
- mode: 400
- template: jinja
- require:
- pkg: nginx
/etc/nginx/sites-enabled/default:
file.absent