From 9d62717332f9ec9270c0ace70d0d39f3ea7a1a20 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Tue, 10 Jan 2017 18:19:46 +0100 Subject: nginx: base: Clean servers directories MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All sites should be managed with salt so they can be nuked properly when removed. Signed-off-by: Johannes Löthberg --- nginx/base.sls | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'nginx') diff --git a/nginx/base.sls b/nginx/base.sls index 10f39b3..d225e39 100644 --- a/nginx/base.sls +++ b/nginx/base.sls @@ -29,4 +29,12 @@ nginx: - /etc/nginx/conf.d/*.conf - /etc/nginx/sites-enabled/* + servers: + managed_opts: + require_in: + - /etc/nginx/sites-available + - /etc/nginx/sites-enabled + dir_opts: + clean: 'on' + # vim: ft=yaml et: -- cgit v1.2.3-70-g09d2