Added support for custom options into network::trunk

This commit is contained in:
Timo Mkinen 2012-04-20 09:43:23 +03:00
parent b6ef635bec
commit d880581e56

View file

@ -427,6 +427,8 @@ define network::pppoe($username, $password, $device, $authtype = "pap") {
# - # -
# $netmask: # $netmask:
# - # -
# $options:
# -
# #
# === Sample usage # === Sample usage
# #
@ -436,7 +438,7 @@ define network::pppoe($username, $password, $device, $authtype = "pap") {
# netmask => "255.255.0.0", # netmask => "255.255.0.0",
# } # }
# #
define network::trunk($devices, $mode = 0, $ipaddr = "none", $netmask = "none") { define network::trunk($devices, $mode = 0, $ipaddr = "none", $netmask = "none", $options = []) {
case $operatingsystem { case $operatingsystem {
centos,fedora: { centos,fedora: {
file { "/etc/modprobe.d/${name}.conf": file { "/etc/modprobe.d/${name}.conf":
@ -454,6 +456,7 @@ define network::trunk($devices, $mode = 0, $ipaddr = "none", $netmask = "none")
network::interface { $name: network::interface { $name:
ipaddr => $ipaddr, ipaddr => $ipaddr,
netmask => $netmask, netmask => $netmask,
options => $options,
} }
} }
default: { default: {