From e81fcafe7a870b6da9a2b5d1e16cf443478c3fe0 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Fri, 18 Dec 2020 06:41:24 +0100 Subject: [PATCH] bundles/powerdns: fix dependencies --- bundles/powerdns/items.py | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/bundles/powerdns/items.py b/bundles/powerdns/items.py index 728bf6f..c856425 100644 --- a/bundles/powerdns/items.py +++ b/bundles/powerdns/items.py @@ -68,8 +68,6 @@ files = { svc_systemd = { 'pdns': { 'needs': { - 'directory:', - 'file:', 'pkg_apt:pdns-server', 'pkg_apt:pdns-backend-bind', 'pkg_apt:pdns-backend-pgsql', @@ -111,12 +109,18 @@ if node.metadata['powerdns'].get('features', {}).get('bind', False): 'triggers': { 'action:powerdns_reload_zones', }, + 'needed_by': { + 'svc_systemd:pdns', + }, } files['/etc/powerdns/pdns.d/bind.conf'] = { 'needs': { 'pkg_apt:pdns-backend-bind', }, + 'needed_by': { + 'svc_systemd:pdns', + }, 'triggers': { 'action:powerdns_reload_zones', }, @@ -130,6 +134,9 @@ if node.metadata['powerdns'].get('features', {}).get('bind', False): 'needs': { 'pkg_apt:pdns-backend-bind', }, + 'needed_by': { + 'svc_systemd:pdns', + }, 'triggers': { 'action:powerdns_reload_zones', }, @@ -144,6 +151,9 @@ if node.metadata['powerdns'].get('features', {}).get('pgsql', False): 'needs': { 'pkg_apt:pdns-backend-pgsql', }, + 'needed_by': { + 'svc_systemd:pdns', + }, 'triggers': { 'action:powerdns_reload_zones', }, @@ -161,4 +171,7 @@ if node.metadata['powerdns'].get('features', {}).get('pgsql', False): 'needed_by': { 'svc_systemd:pdns', }, + 'needed_by': { + 'svc_systemd:pdns', + }, }