From 150911af46705be2e2b0726cfb6e0446b2c7a3d4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 28 Apr 2020 22:56:12 +0200 Subject: kubeguard: split up role --- .../net/kubeguard/node/files/kubeguard-interfaces.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 roles/kubernetes/net/kubeguard/node/files/kubeguard-interfaces.service (limited to 'roles/kubernetes/net/kubeguard/node/files/kubeguard-interfaces.service') diff --git a/roles/kubernetes/net/kubeguard/node/files/kubeguard-interfaces.service b/roles/kubernetes/net/kubeguard/node/files/kubeguard-interfaces.service new file mode 100644 index 00000000..35fc8f90 --- /dev/null +++ b/roles/kubernetes/net/kubeguard/node/files/kubeguard-interfaces.service @@ -0,0 +1,12 @@ +[Unit] +Description=Kubeguard Network Setup +After=network.target + +[Service] +Type=oneshot +ExecStart=/var/lib/kubeguard/ifupdown.sh up +ExecStop=/var/lib/kubeguard/ifupdown.sh down +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3