Ignore errors from ifdown when restarting interfaces on Linux.
This commit is contained in:
parent
7aa19f89a9
commit
f068458514
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue