From 1664ecba800531d115cbbeaa7cf2dd70fea89bd0 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Wed, 12 Nov 2014 15:23:54 +0200 Subject: [PATCH] network: Fix restarting network on Ubuntu --- network/manifests/init.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/manifests/init.pp b/network/manifests/init.pp index e4115c3..cf8da9f 100644 --- a/network/manifests/init.pp +++ b/network/manifests/init.pp @@ -22,7 +22,7 @@ class network::helper::restart { "debian","ubuntu": { exec { "restart-network": cwd => "/etc/network", - command => "cat interfaces.in interfaces.d/*.conf > interfaces && /etc/init.d/networking restart", + command => "ifdown --exclude=lo -a && cat interfaces.in interfaces.d/*.conf > interfaces && ifup --exclude=lo -a", path => "/bin:/usr/bin:/sbin:/usr/sbin", refreshonly => true, }