[Puppet Users] --genconfig questions

2009-01-23 Thread kevin
Ok, I'm using the genconfig switch to puppet to generate a config. I see that i get a [puppet] section if i use puppet, a [puppetmasterd] section if i use puppetmasterd,and a [puppetd] section if i user puppetd. How do these 3 similar files ( from diff ) interact exactly? --~--~-~--~

[Puppet Users] Re: Notifying a service when config file changes

2009-01-23 Thread Alban Peignier
Kenneth Holter wrote: > I thought that the "notify" line would make sure that the syslog service > would restart upon changes to the config file, but apparently it isn't > so. Anyone got any suggestions on how to implement this? You should check the line definition, the notify parameter can be i

[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: Puppet classes dependencies question

2009-01-23 Thread Teyo Tyree
Hi Alexander, See my inline comments, should help you with your dependency issues. I CC'd the puppet-users list so others can benefit from the clarification and comment on the approach. Cheers, Teyo On Fri, Jan 23, 2009 at 12:16 PM, Andrew Shafer wrote: > > Any way to do what Alexander wants t

[Puppet Users] Re: Notifying a service when config file changes

2009-01-23 Thread Paul Lathrop
On Fri, Jan 23, 2009 at 4:35 AM, Kenneth Holter wrote: > service {syslog: >ensure => running, >subscribe => Line["rsyslogserver"] > } > > line { "rsyslogserver": > file => "/etc/syslog.conf", > line => "*.* @server1.example.com", > ensure => present > notify => Service

[Puppet Users] Re: libselinux ruby bindings

2009-01-23 Thread Tom Payne
2009/1/21 twpayne : > ... the ruby SELinux > bindings are not even available for my platform and it's not clear > when/if they ever will be. Further to my rant a couple of days ago, I've created a minimal set of SELinux bindings which are sufficient for puppet. The software is at: http://githu

[Puppet Users] Re: Error reporting via email

2009-01-23 Thread Lucas Di Pentima
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Dave! Dave Nash escribió: > I think this is fixed in 0.24.6, at least that is when it started > e-mailing me error's. I had actually forgotten I tried setting this up > and it took me a few minutes to realized why I was suddenly getting > these e-

[Puppet Users] Notifying a service when config file changes

2009-01-23 Thread Kenneth Holter
Hello all. I'm trying to get my servers (syslog clients) to forward syslog-messages to a central syslog server. I'm using the "line" resource type to add the necessary entry to /etc/syslog.conf file, and I need a way to notify the syslog service to restart whenever the config file changes. Curre

[Puppet Users] Re: virtual resources: multiple exports and one collect

2009-01-23 Thread Marce
2008/10/6 udo waechter : > Ah, > I see an error in my reasoning here: > On 06.10.2008, at 20:36, udo waechter wrote: >> >> What comes to my mind now, is that I can do a hack and replace: >> >>@@file{"queue-template-${name_real}": >>path => >> "${sge_collects

[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] Quote, dollar and pipe

2009-01-23 Thread Alban Peignier
Hi All, By working on our bootstrap puppet scripts (executed wih standalone puppet), I found a difference between pipe and file parsing : A simple file with a content : $ cat withdollar.pp file { "/tmp/withdoller.txt": content => 'something like echo $1' } When puppet parses the file