Re: [Puppet Users] Get a list of (some) resources name / Manage your nagios hostgroups

2012-09-09 Thread Maxence Dunnewind
Hi, > So, my goal is to be able to make a nagios_host belong to a list of group in a > non-static way (the list of groups is generated from the different puppet > classes run on each node). nobody has an opinion on this, how do you manage your nagios hostgroups without setting them in a static/ha

Re: [Puppet Users] puppet installation on windows7

2012-09-09 Thread Ryan Coleman
On Thu, Aug 30, 2012 at 3:31 AM, valar mathi wrote: > when puppet installed in windows7 and when the run puppet agent is clicked > im getting certificate retrieval error.plz suggest me a solution.thanks. Hi Valar, When you installed Puppet on Windows, one of the details you filled in was the DNS

Re: [Puppet Users] access exported resources in template

2012-09-09 Thread Luke Kanies
I don't quite know the answer, and I agree, a running shell would be useful. I'd be looking in Parser::Scope and the TemplateWrapper class, wherever it is. Those should generally cover it, with maybe Parser::Resource. You should try deeper inspection of the resources. I think 'resource.to_hash

Re: [Puppet Users] Question: Custom puppet type for semanage, converting inputs to flags?

2012-09-09 Thread Jon McKenzie
Hi Dan, Thanks for the input. If I were to implement this in the provider, what would be the proper way to do that? Is there a validation/conversion hook I can override? On Sunday, September 9, 2012 1:55:17 PM UTC-4, Dan Bode wrote: > > > > On Sun, Sep 9, 2012 at 10:46 AM, Jon McKenzie > > wr

[Puppet Users] Re: Could not render to pson: undefined method 'merge' for []:Array

2012-09-09 Thread Jon McKenzie
I restarted my puppetmaster and this seemed to resolve the issue. Very strange message, though. I suppose if I've defined a new type, but haven't restarted puppetmaster it throws a message like this? I will need to test that though On Sunday, September 9, 2012 4:16:53 PM UTC-4, Jon McKenzie wro

[Puppet Users] Re: Could not render to pson: undefined method 'merge' for []:Array

2012-09-09 Thread Jon McKenzie
I'm having this issue as well, with a nearly identical stack trace (I'm running on RHEL, however). Anyone have any ideas? I stuck some debugs inside my provider methods, but they don't ever seem to get executed. On Wednesday, July 11, 2012 4:08:42 PM UTC-4, Micah Martin wrote: > > This ones go

[Puppet Users] Re: adding users on remote mysql

2012-09-09 Thread Luca Gioppo
OK ... tested and it works like a charm. Posted the approach in my blog: http://gioppoluca.blogspot.it/2012/09/puppet-and-exported-resources.html Il giorno mercoledì 5 settembre 2012 15:44:45 UTC+2, Luca Gioppo ha scritto: > > The problem is: > when installing an application in a distributed envir

Re: [Puppet Users] Question: Custom puppet type for semanage, converting inputs to flags?

2012-09-09 Thread Dan Bode
On Sun, Sep 9, 2012 at 10:46 AM, Jon McKenzie wrote: > Hi, > > I'm just trying to get an idea about the best way to implement this: > > I want a type that uses the 'semanage' binary to manage targeted policy > (in this case for files). > > So for example to create a targeted policy, I might do so

[Puppet Users] Question: Custom puppet type for semanage, converting inputs to flags?

2012-09-09 Thread Jon McKenzie
Hi, I'm just trying to get an idea about the best way to implement this: I want a type that uses the 'semanage' binary to manage targeted policy (in this case for files). So for example to create a targeted policy, I might do something like: semanage fcontext -a -f -d -t some_domain_t "/path/t

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

2012-09-09 Thread Sébastien Lavoie
@Jakov I am currently running Puppet on a single host, it is only to manage site configurations, so this is not a problem @R.I. Thanks, worked like a charm. Bonus points for very simple solution. On Sunday, September 9, 2012 7:34:10 AM UTC-4, R.I. Pienaar wrote: > > > > - Original Message --

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

2012-09-09 Thread R.I.Pienaar
- Original Message - > From: "Sébastien Lavoie" > To: puppet-users@googlegroups.com > Sent: Friday, September 7, 2012 11:32:55 PM > Subject: [Puppet Users] How can I ensure that a service is started/stopped > based on if it is needed or not ? > > I have a several services that I use on

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

2012-09-09 Thread Jakov Sosic
On 09/09/2012 06:38 AM, Sébastien Lavoie wrote: 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. And how do you determine if it's required? By hostname, or? -- Jakov Sosic www.srce.unizg.hr -- You receiv