diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2017-01-10 18:19:46 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-01-10 18:22:35 +0100 |
commit | 9d62717332f9ec9270c0ace70d0d39f3ea7a1a20 (patch) | |
tree | f5556c7eb1501948380695e9e86fe93b2675ca1c /nginx | |
parent | 377ffa944fcedd68f49d765731ac781c420a3591 (diff) | |
download | pillar-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.sls | 8 |
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: |