summaryrefslogtreecommitdiffstats
path: root/nginx
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2017-01-10 18:19:46 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2017-01-10 18:22:35 +0100
commit9d62717332f9ec9270c0ace70d0d39f3ea7a1a20 (patch)
treef5556c7eb1501948380695e9e86fe93b2675ca1c /nginx
parent377ffa944fcedd68f49d765731ac781c420a3591 (diff)
downloadpillar-9d62717332f9ec9270c0ace70d0d39f3ea7a1a20.tar.xz
nginx: base: Clean servers directories
All sites should be managed with salt so they can be nuked properly when removed. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Diffstat (limited to 'nginx')
-rw-r--r--nginx/base.sls8
1 files changed, 8 insertions, 0 deletions
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: