summaryrefslogtreecommitdiffstats
path: root/nginx
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-01-10 18:32:53 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2017-01-10 18:32:53 +0100
commitbbde6e826af96704d73f2fed1785106d6c4ea188 (patch)
treeb910cba9549430a33a55d90675e952ac99c56ee3 /nginx
parent9d62717332f9ec9270c0ace70d0d39f3ea7a1a20 (diff)
downloadpillar-bbde6e826af96704d73f2fed1785106d6c4ea188.tar.xz
nginx: base: set up site config requirements up properly
Make the server{-available,-enabled} directiories require the server configs so that the enabled ones won't be removed. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nginx')
-rw-r--r--nginx/base.sls6
1 files changed, 4 insertions, 2 deletions
diff --git a/nginx/base.sls b/nginx/base.sls
index d225e39..47f430a 100644
--- a/nginx/base.sls
+++ b/nginx/base.sls
@@ -32,8 +32,10 @@ nginx:
servers:
managed_opts:
require_in:
- - /etc/nginx/sites-available
- - /etc/nginx/sites-enabled
+ - file: nginx_server_available_dir
+ symlink_opts:
+ require_in:
+ - file: nginx_server_enabled_dir
dir_opts:
clean: 'on'