network: Fix restarting network on Ubuntu
This commit is contained in:
parent
95577b4de7
commit
1664ecba80
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue