uggedal/puppet-module-network — pull request #2 by dodwmd (2012-03-13 12:34:09+00:00)
Title: fixed doco (missed a comma) and added support for multple value pairs

Hi,

Just a quick couple of fixes.. as shown in the example below multiple up values are allowed..

class { "network::interfaces":
interfaces => {
"eth0" => {
"method" => "static",
"address" => 1.1.1.200,
"gateway" => 1.1.1.100,
"netmask" => "255.255.255.0",
"up" => [ "/sbin/route add -host 1.1.1.1 gw 1.1.1.254", "/sbin/route add -host 1.1.1.20 gw 1.1.1.254" ],
},
"lo:0" => {
"method" => "static",
"address" => "192.168.1.1",
"netmask" => "255.255.255.255"
}
},
auto => ["eth0", "lo:0"],
}