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', + }, }