Re: [Puppet Users] Default Gateway facter problems

2010-04-19 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > distid = Facter.value('lsbdistid') > if distid.match(/RedHatEnterprise|CentOS|Fedora/) sidenote: you can use confine for such things. [...] > I can see the fact on the client node (but only if I add "--puppet"): > # facter --puppet|

Re: [Puppet Users] Default Gateway facter problems

2010-04-19 Thread Daniel Pittman
Scott Beardsley writes: > I was slightly surprised to see that there is no "gateway" fact. Er, this fact is mostly unhelpful: there is no "gateway" — there are zero-or-more gateways, depending on the route on the server, which may or may not get used to communicate to any given destination. A n

[Puppet Users] Default Gateway facter problems

2010-04-19 Thread Scott Beardsley
I was slightly surprised to see that there is no "gateway" fact. I poked around and it seems easy enough to add but I'm running into a problem... My gateway.rb looks like: # gateway.rb Facter.add("gateway") do setcode do begin Facter.lsbdistid rescue Fa