Ignore errors from ifdown when restarting interfaces on Linux.

This commit is contained in:
Timo Mkinen 2010-10-13 22:12:33 +03:00
parent 7aa19f89a9
commit f068458514

View file

@ -86,7 +86,7 @@ define network::interface($options = [], $ipaddr = "none", $netmask = "none", $i
notify => Exec["restart-interface-${name}"],
}
exec { "restart-interface-${name}":
command => "ifdown ${name} && ifup ${name}",
command => "ifdown ${name} ; ifup ${name}",
path => "/bin:/usr/bin:/sbin:/usr/sbin",
user => root,
refreshonly => true,