From dd5a97eced1b277a180cdd565f041912266fe5a6 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 10 Jul 2022 13:32:11 +0200 Subject: [PATCH] bundles: add dependency to systemd-networkd --- bundles/nfs-client/items.py | 2 ++ bundles/systemd-networkd/items.py | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bundles/nfs-client/items.py b/bundles/nfs-client/items.py index 1a8d08b..918d02c 100644 --- a/bundles/nfs-client/items.py +++ b/bundles/nfs-client/items.py @@ -41,6 +41,7 @@ for mount, data in node.metadata.get('nfs-client/mounts',{}).items(): 'file:/etc/systemd/system/{}.mount'.format(unitname), 'file:/etc/systemd/system/{}.automount'.format(unitname), 'directory:{}'.format(data['mountpoint']), + 'svc_systemd:systemd-networkd', package, }, } @@ -56,6 +57,7 @@ for mount, data in node.metadata.get('nfs-client/mounts',{}).items(): 'needs': { 'file:/etc/systemd/system/{}.mount'.format(unitname), 'directory:{}'.format(data['mountpoint']), + 'svc_systemd:systemd-networkd', package, }, } diff --git a/bundles/systemd-networkd/items.py b/bundles/systemd-networkd/items.py index aa50ca8..969c3e2 100644 --- a/bundles/systemd-networkd/items.py +++ b/bundles/systemd-networkd/items.py @@ -9,7 +9,11 @@ files = { } svc_systemd = { - 'systemd-networkd': {}, + 'systemd-networkd': { + 'before': { + 'git_deploy:', + }, + }, 'systemd-resolved': { 'running': False, 'enabled': False,