[Puppet Users] Nagios_host files are mode 600, need 644

2009-01-21 Thread Scott
Hi, so I'm exporting a nagios_host type that gets collected by the nagios server and each host has it's own file, however, when each host file is written, it's only readable by root. How can I make all the files mode 644 when they're written? Or how would I go about using the "file" type to make

[Puppet Users] Re: Making a variable visible in parent class (scoping)

2009-01-21 Thread Scott
Luke, thanks for the reply. So just to clarify, you can't even have a child class append to an array declared in the parent class and have it visible in the parent class? Scott On Jan 19, 9:44 pm, Luke Kanies wrote: > On Jan 17, 2009, at 12:31 AM, Scott wrote: > > > > > > > So I need a variabl

[Puppet Users] Re: Pattern matching in case statement

2009-01-21 Thread Jeffrey Hulten
If I understand the match function on strings properly you might want to escape the periods in your logic: 10.1.1. matches 10.1.1.X and 10.101.X for instance. On Wed, Jan 21, 2009 at 6:58 AM, wrote: > > Thank you for your input! I solved it like this in then end: > > Facter.add("netenv") do >

[Puppet Users] Re: libselinux ruby bindings

2009-01-21 Thread twpayne
I've just been really really badly bitten by the use of the ruby selinux bindings, see http://projects.reductivelabs.com/issues/show/1852 The effect of the silent failure when the ruby SELinux bindings are not installed is horrific. In short, every run of puppetd triggers a refresh of everything.

[Puppet Users] Re: reporting, rollback

2009-01-21 Thread Dan Bode
thanks for the response, the only feature that I have to support with rollback is files, its just something that I have to do for the first production deployment (while everyone gets used to this new system touching production servers). I really wasnt that difficult, I am parsing YAML reports and r

[Puppet Users] Re: reporting, rollback

2009-01-21 Thread Andrew Shafer
Dan, This was something that Luke talked about from the beginning, but there a few hitches. Rolling back files is not hard, but once you get to something like packages, you are depending on the packages themselves to do the right thing, and that is not always prudent. FYI, in my personal opinion

[Puppet Users] Re: reporting, rollback

2009-01-21 Thread Evan Hisey
On Wed, Jan 21, 2009 at 4:31 AM, Dan Bode wrote: > Hi all, > > I need to fulfill a requirement for change rollbacks with puppet. (where the > original version of files is not necessarily managed with puppet) > > Is there something in place that I can use as a starting point here? > > I wanted see

[Puppet Users] Re: Pattern matching in case statement

2009-01-21 Thread sven.thomas
Thank you for your input! I solved it like this in then end: Facter.add("netenv") do setcode do begin Facter.ipaddress rescue Facter.loadfacts() end distid = Facter.value('ipaddress') if distid.match(/10.1.1.|172./) n

[Puppet Users] Re: Pattern matching in case statement

2009-01-21 Thread Trevor Vaughan
Mike, I would use a server side function that uses either LDAP or a flat file to determine the attributes applied to the node. Although, if you need this to be more 'real time', you'll probably want to look at something like ControlTier, Capistrano, or Func. Trevor On Wed, Jan 21, 2009 at 04:3

[Puppet Users] reporting, rollback

2009-01-21 Thread Dan Bode
Hi all, I need to fulfill a requirement for change rollbacks with puppet. (where the original version of files is not necessarily managed with puppet) Is there something in place that I can use as a starting point here? I wanted see what the future plan is for this, so that I can gauge how much

[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 (/\./ ) > > > >end > end