Browse Source

Added optional ability to disable creation of /etc/nginx/sites-(available|enabled)

susefix
Ross Perkins 10 years ago
parent
commit
c7ede18d76
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      nginx/common.sls

+ 3
- 1
nginx/common.sls View File

@@ -41,9 +41,11 @@
default_user: {{ nginx_map.default_user }}
default_group: {{ nginx_map.default_group }}

{% if nginx.get('init_conf_dirs', True) %}
{% for dir in ('sites-enabled', 'sites-available') %}
/etc/nginx/{{ dir }}:
{{ conf_dir }}/{{ dir }}:
file.directory:
- user: root
- group: root
{% endfor -%}
{% endif %}

Loading…
Cancel
Save