[Puppet Users] Re: Pattern matching in case statement

2009-01-21 Thread Mike Pountney
On 20 Jan 2009, at 18:52, Jeff Leggett wrote: I just did something similar to parse out what proxy my client should use - for a custom fact do: Facter.add(:network) do setcode do srcIP = Facter.value(:ipaddress) octets = srcIP.split (/\./ ) logic specific to your use

[Puppet Users] Re: Pattern matching in case statement

2009-01-21 Thread Jeffrey Hulten
: Tuesday, January 20, 2009 7:52 PM To: Puppet Users Subject: [Puppet Users] Re: Pattern matching in case statement I just did something similar to parse out what proxy my client should use - for a custom fact do: Facter.add(:network) do setcode do srcIP = Facter.value(:ipaddress