[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

[Puppet Users] Re: Default Gateway facter problems

2010-04-20 Thread Scott Beardsley
> >         if distid.match(/RedHatEnterprise|CentOS|Fedora/) > > sidenote: you can use confine for such things. I'll look into confine. Incidentally this is my first fact and I stole most of it from the puppet docs. > right, that might be related to a known bug. but that shouldn't affect puppet

[Puppet Users] Re: Default Gateway facter problems

2010-04-22 Thread Scott Beardsley
I've filed an issue[1] for this. I don't think it is a bug in facter since it is returning the fact correctly. As for the gateway fact discussion... Most of my puppetized systems are pretty simple (HPC clusters) so they typically have a single default gateway. Does facter only support string data

[Puppet Users] Re: Excluding .svn directories with recursive file management

2009-02-03 Thread Scott Beardsley
> The problem is that puppet copies all of the .svn subdirectories > too. Does anyone know of a way to exclude these from the copy? I was curious about this too. I was just doing an "svn export" but I'd love to see a real fix. Scott --~--~-~--~~~---~--~~ You re

[Puppet Users] shorewall module

2009-02-04 Thread Scott Beardsley
Does anyone have the source for a *working* shorewall module? I've searched the list and the interwebs and it looks like a few other are having the same problems. Namely: Configuration could not be instantiated: Could not find dependent Exec [concat_/var/lib/puppet/modules/shorewall/policy.d] I

[Puppet Users] Re: shorewall module

2009-02-05 Thread Scott Beardsley
>> [4] https://git.puppet.immerda.ch/?p=module-shorewall;a=summary > > as I'm involved in 1,2 and 4 I try to answer: > 1 and 4 should be nearly identical, 1 is more or less just a mirror of 4. > However 4 is the one which should be more uptodate. OK, I've just tried the common and shorewall modul

[Puppet Users] Re: shorewall module

2009-02-09 Thread Scott Beardsley
bump... ideas? On Thu, Feb 5, 2009 at 9:25 AM, Scott Beardsley wrote: >>> [4] https://git.puppet.immerda.ch/?p=module-shorewall;a=summary >> >> as I'm involved in 1,2 and 4 I try to answer: >> 1 and 4 should be nearly identical, 1 is more or less just a mirr

[Puppet Users] Re: shorewall module

2009-02-25 Thread Scott Beardsley
AHH HA! I got busy but I just now took another look at this and have solved my problem. I fixed it by changing the node definition as follows: node 'foo.com' { include shorewall::debian } to: node 'foo.com' { include shorewall } I wasn't creating an instance of the shorewall cl

[Puppet Users] Re: shorewall module and svn directories

2009-02-25 Thread Scott Beardsley
BTW, I noticed that .svn directories were being copied to /var/lib/puppet. Here is a trivial patch to prevent that behavior... $ diff /tmp/init.pp modules/shorewall/manifests/init.pp 65a66 > ignore => ".svn" --~--~-~--~~~---~--~~ You received

[Puppet Users] Re: shorewall module and svn directories

2009-02-25 Thread Scott Beardsley
On Wed, Feb 25, 2009 at 2:08 PM, Scott Beardsley wrote: > BTW, I noticed that .svn directories were being copied to > /var/lib/puppet. Here is a trivial patch to prevent that behavior... > > $ diff /tmp/init.pp modules/shorewall/manifests/init.pp > 65a66 >>