Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if nginx.sites is defined and nginx.sites %}
- {% for site, site_data in nginx.sites.items() %}
- nginx_site_{{nginx.conf_d}}/{{site}}.conf:
- file.managed:
- - name: {{nginx.conf_d}}/{{site}}.conf
- - template: jinja
- - user: root
- - group: root
- - mode: 0644
- - source: salt://nginx/templates/nginx_site.conf.jinja
- - require:
- - pkg: nginx
- - watch_in:
- - service: nginx
- {% endfor %}
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement