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
> > 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
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
> 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
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
>> [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
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
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
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
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
>>
10 matches
Mail list logo