From bbde6e826af96704d73f2fed1785106d6c4ea188 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 10 Jan 2017 18:32:53 +0100 Subject: nginx: base: set up site config requirements up properly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- nginx/base.sls | 6 ++++-- 1 file 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' -- cgit v1.2.3-70-g09d2