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

2009-01-30 Thread Scott
Ok, so to make things simpler, how do I change owner and mode of nagios_host, etc. files when they're created? Thanks, Scott On Jan 29, 2:01 pm, Scott wrote: > The situation is a little more complicated than just trying to do a > "recurse" on the directory to set the permissions.  In my config,

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

2009-01-29 Thread Scott
The situation is a little more complicated than just trying to do a "recurse" on the directory to set the permissions. In my config, I create the directory where all the nagios_hosts are collected and I then make that resource a requirement for all the exported nagios_hosts. So obviously I can't

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

2009-01-23 Thread Joe McDonagh
Hi, a little late on the thread, but I just use a straight up file resource that serves out the hosts/ folder for my nagios root. All the files in the fileserver have the proper owner, group, and mode, so I don't need to define those in the resource. I know it's not very puppety to be serving

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

2009-01-23 Thread Peter Meier
Hi > The issue is that I don't know the exact names of all the nagios_hosts > ahead of time, so I can't declare file resources explicitly, each host > has it's own host file. > > So I've tried declaring a "file" resource for the directory that the > nagios_host files get deposited in and using "r

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

2009-01-22 Thread Luke Kanies
On Jan 22, 2009, at 4:55 PM, Scott wrote: > The issue is that I don't know the exact names of all the nagios_hosts > ahead of time, so I can't declare file resources explicitly, each host > has it's own host file. > > So I've tried declaring a "file" resource for the directory that the > nagios_h

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

2009-01-22 Thread Scott
The issue is that I don't know the exact names of all the nagios_hosts ahead of time, so I can't declare file resources explicitly, each host has it's own host file. So I've tried declaring a "file" resource for the directory that the nagios_host files get deposited in and using "recurse" to set

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

2009-01-22 Thread Peter Meier
Hi > 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