From 77051c0a0ec5b75b344c0c3f692a52a4a2fa4038 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 30 Aug 2020 11:36:48 +0200 Subject: [PATCH] bundles/nginx: clean up unmanaged nginx vhosts --- bundles/nginx/items.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bundles/nginx/items.py b/bundles/nginx/items.py index 694ad61..a14fcb2 100644 --- a/bundles/nginx/items.py +++ b/bundles/nginx/items.py @@ -3,6 +3,15 @@ # support wildcard certificates assert node.has_bundle('letsencrypt'), 'nginx needs letsencrypt' +directories = { + '/etc/nginx/sites': { + 'purge': True, + 'triggers': { + 'svc_systemd:nginx:restart', + }, + }, +} + files = { '/etc/nginx/nginx.conf': { 'content_type': 'mako',