[Puppet Users] Pattern matching in case statement

2009-01-19 Thread sven.thomas
Hi all, I need my servers to decide which network they are in (i.e. dmz), and the only clue is the servers IP-address. I was trying to accomplish it like this, but it doesn't work: case $ipaddress { "10.1.1.*": { $network = "net1" } "10.2.2.*.*": { $netw

[Puppet Users] Pattern matching in case statement

2009-01-16 Thread sven.thomas
Hi all, I need my servers to decide which network they are in (i.e. dmz), and the only clue is the servers IP-address. I was trying to accomplish it like this, but it doesn't work: case $ipaddress { "10.1.1.*": { $network = "net1" } "10.2.2.*.*": { $netw