network: Compatibility fix for puppetmaster 2.6
This commit is contained in:
parent
a247044743
commit
d314f408c5
1 changed files with 4 additions and 2 deletions
|
@ -366,11 +366,13 @@ define network::route($gateway = "", $device, $ipv6gateway = "") {
|
|||
define network::carp($password, $ipaddr, $netmask, $options = [], $postcmd = []) {
|
||||
case $::operatingsystem {
|
||||
"openbsd": {
|
||||
$carp_options = [ "vhid ${name}", "pass ${password}" ]
|
||||
$carp_postcmd = [ "/usr/sbin/ndp -i carp${name} -- -accept_rtadv" ]
|
||||
network::interface { "carp${name}":
|
||||
ipaddr => $ipaddr,
|
||||
netmask => $netmask,
|
||||
options => merge([ "vhid ${name}", "pass ${password}", ], $options),
|
||||
postcmd => merge("/usr/sbin/ndp -i carp${name} -- -accept_rtadv", $postcmd),
|
||||
options => merge($carp_options, $options),
|
||||
postcmd => merge($carp_postcmd, $postcmd),
|
||||
}
|
||||
}
|
||||
"centos","redhat","fedora": {
|
||||
|
|
Loading…
Add table
Reference in a new issue