From c7ede18d76784d5cd3e7c7d99f9f4baef8e79551 Mon Sep 17 00:00:00 2001 From: Ross Perkins Date: Fri, 31 Oct 2014 09:08:50 -0700 Subject: [PATCH] Added optional ability to disable creation of /etc/nginx/sites-(available|enabled) --- nginx/common.sls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx/common.sls b/nginx/common.sls index edf45d1..2f0d341 100644 --- a/nginx/common.sls +++ b/nginx/common.sls @@ -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 %}