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
: 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