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