Re: [Puppet Users] Re: Puppet Nagios group problem

2012-09-08 Thread Thomas Bendler
Hi Steven, 2012/9/8 Steven C > Having a similar problem. So far I've tried clearing the nagios.cfg and > dropping the puppet database from puppetmaster, but this has not helped. > [...] > currently I've defined the groups manually as a template file in puppet but this is only a workaround. The

[Puppet Users] Making a result of custom function available to multiple classes

2012-09-08 Thread JeremyCampbell
Hey, I'm using Puppet 2.7.19 with hiera 0.3.0. I have an Openvpn module which has a custom function that queries a mysql db and returns a hash. I also need the hash values in other modules e.g. firewall module. Since the custom function is in the openvpn/lib/puppet/parser/functions folder I be

Re: [Puppet Users] create_resources function returns error "can't convert Array into Hash"

2012-09-08 Thread JeremyCampbell
On Wednesday, September 5, 2012 5:43:04 PM UTC+2, Dan Bode wrote: > > > > On Wed, Sep 5, 2012 at 8:37 AM, JeremyCampbell > > > wrote: > >> >> >> On Wednesday, September 5, 2012 5:20:49 PM UTC+2, Dan Bode wrote: >> >>> >>> >>> On Wed, Sep 5, 2012 at 8:15 AM, JeremyCampbell wrote: >>> >

[Puppet Users] Re: Dashboard fails to import report from Fedora 17 node

2012-09-08 Thread tmv
Hi, Did you solve this issue? I'm experiencing the same problem on a Fedora 17 box. The report it generates fails when imported to the dashboard: *Importing report report-20291-1.yaml* at *2012-09-08 20:37 UTC*undefined method `each' for nil:NilClass Backtrace /opt/puppet/share/puppet-dashboar

Re: [Puppet Users] Re: Dashboard fails to import report from Fedora 17 node

2012-09-08 Thread Peter Bukowinski
No, it's still unresolved. I only have one Fedora 17 client at the moment so it's not a big deal yet, but it's only a matter of time until I have more. I'll submit it as a bug so it gets some attention. -- Peter Bukowinski On Sep 8, 2012, at 4:47 PM, tmv wrote: > > Hi, > > Did you solve thi

[Puppet Users] Re: Making a result of custom function available to multiple classes

2012-09-08 Thread Krzysztof Wilczynski
Hi, Since functions run on the Puppet Master side, the simplest solution is to cache the value if its "freshness" is not mandatory i.e. does not change, lets say every 5 minutes? Or, even it will be fine every 24 hours, etc ... Consider this snippet: https://gist.github.com/3680388 Let me know

[Puppet Users] Re: puppet hangs

2012-09-08 Thread Balasubramaniam Natarajan
> > On Sat, Sep 8, 2012 at 3:25 AM, Balasubramaniam Natarajan < > bala150...@gmail.com> wrote: > >> Hi >> >> I am a newbie to puppet and I am going through the documents at " >> http://docs.puppetlabs.com/learning/manifests.html"; the exercise were >> working normally then suddenly puppet hangs whe

[Puppet Users] Re: puppet hangs

2012-09-08 Thread Balasubramaniam Natarajan
On Sun, Sep 9, 2012 at 5:46 AM, Balasubramaniam Natarajan < bala150...@gmail.com> wrote: > > This has occurred once again, When I tried to "# puppet apply > break_ssh.pp" the puppet terminal just hangs and it does not complete the > job please at least point me where I have to start looking for

[Puppet Users] Re: puppet hangs

2012-09-08 Thread Balasubramaniam Natarajan
On Sun, Sep 9, 2012 at 5:59 AM, Balasubramaniam Natarajan < bala150...@gmail.com> wrote: > > > On Sun, Sep 9, 2012 at 5:46 AM, Balasubramaniam Natarajan < > bala150...@gmail.com> wrote: > >> >> This has occurred once again, When I tried to "# puppet apply >> break_ssh.pp" the puppet terminal jus

[Puppet Users] Re: puppet hangs

2012-09-08 Thread Krzysztof Wilczynski
Hi, Not sure why your Puppet run never terminates, and looking at lsof output it looks fairly normal. Said that, can you include strace output for such misbehaving process? Thanks! KW On Sunday, September 9, 2012 1:30:01 AM UTC+1, Balasubramaniam Natarajan wrote: > > > > On Sun, Sep 9, 2012 a

[Puppet Users] How can I ensure that a service is started/stopped based on if it is needed or not ?

2012-09-08 Thread Glenn Poston
You could create a fact that returns true or false, then use that fact in your puppet code to determine whether to start the service. I'd need more details to really say that's the best solution though. Other options would be to use heira or to use a parameterized class and set those parameter

[Puppet Users] Re: How can I ensure that a service is started/stopped based on if it is needed or not ?

2012-09-08 Thread Sébastien Lavoie
I am not experienced in creating facts, could you give me a better idea ? I fail to see how a fact could detect if a service is required. Thanks On Saturday, 8 September 2012 23:57:50 UTC-4, Glenn Poston wrote: > > You could create a fact that returns true or false, then use that fact in > your