Re: [Puppet Users] puppetlabs/activemq module

2014-10-31 Thread John Anderson
Okay, that sounds like a plan to me. I have just one question though, should I put in a JIRA ticket before I start working on code like the guide suggests? Or should I fork it, adapt it to my needs, and then make a JIRA ticket when I have something clean to contribute back? The latter option

Re: [Puppet Users] ENC - what does 'error 1' mean?

2014-10-31 Thread Felix Frank
Well, obviously your script is throwing an error when invoked from Puppet, behaving differently than from the command line. This can have numerous reasons related to your process environment. Perhaps the master is running with a different Ruby (PE?) To debug this, add early debug logging to your

Re: [Puppet Users] Multiple puppet agents with the same name

2014-10-31 Thread Felix Frank
On 10/08/2014 07:57 AM, denmat wrote: > Hi, > > that depends on your manifest and if they need to talk to a puppet > master or you are just doing a puppet apply (masterless). This. But please note - the hostname is not the issue here. It's the duplicated $certname that will cause you head ache

Re: [Puppet Users] how to write each java version to individual facts

2014-10-31 Thread Felix Frank
On 10/08/2014 08:41 PM, Spriya wrote: > Hi All, > > I am trying to get all the java versions and paths where it is located. > I got all java_paths in a fact called java_path. Now i need those > versions in each custom facts. > > I wrote a code but this not executing . Hi, has this been resolved

Re: [Puppet Users] ENC - what does 'error 1' mean?

2014-10-31 Thread JonY
I've simplified the script to this: #!/usr/local/bin/ruby open('test.out', 'w') { |f| f.puts "Hello" } .. and it still gives me 'error 1' when run as an ENC. While it's true that the puppet server is using ruby 1.8.7 this shouldn't matter for the above code. What would the effect of outp

Re: [Puppet Users] ENC - what does 'error 1' mean?

2014-10-31 Thread Felix Frank
On 10/31/2014 11:35 AM, JonY wrote: > I've simplified the script to this: > > #!/usr/local/bin/ruby > > open('test.out', 'w') { |f| > f.puts "Hello" > } Well, writing to a relative file path is bound to be potentially problematic. > .. and it still gives me 'error 1' when run as an ENC. No,

Re: [Puppet Users] Re: Filesystem mounting in sequence with puppet

2014-10-31 Thread jcbollinger
On Thursday, October 30, 2014 12:46:07 PM UTC-5, amogh patel wrote: > > Thanks, John. It did help. I was wondering if we can somehow use an array > of these hashes so that we don't have to use require. > > There are no hashes in my example. In particular, resource declarations are not hashes,

Re: [Puppet Users] Exported resources from multiple sources?

2014-10-31 Thread jcbollinger
On Thursday, October 30, 2014 12:00:21 PM UTC-5, Nick Cammorato wrote: > > I don't see why you couldn't write a hiera backend to do exactly this. > The current puppetdb hiera backend wouldn't be too hard to modify to > do it I don't think. > > You couldn't write an Hiera back end to do this pa

[Puppet Users] Re: Exported resources from multiple sources?

2014-10-31 Thread jcbollinger
On Thursday, October 30, 2014 11:36:32 AM UTC-5, Atom Powers wrote: > > Is it possible, and how, to collect exported resources from multiple > puppetdb sources? > > I have a network which, for policy reasons, can not connect back into > the main network but the main network can connect into th

Re: [Puppet Users] Re: Puppetmaster can't keep up with our 1400 nodes.

2014-10-31 Thread Georgi Todorov
On Thursday, October 30, 2014 11:56:14 PM UTC-4, Garrett Honeycutt wrote: > > Hi Georgi, > > The catalog compilation time is how long it takes to compile the catalog > *on the master*. You can find it on CentOS with `grep Compile > /var/log/messages`. The amount of time it takes for your agent

Re: [Puppet Users] ENC - what does 'error 1' mean?

2014-10-31 Thread jcbollinger
On Friday, October 31, 2014 8:02:33 AM UTC-5, Felix.Frank wrote: > > On 10/31/2014 11:35 AM, JonY wrote: > > I've simplified the script to this: > > > > #!/usr/local/bin/ruby > > > > open('test.out', 'w') { |f| > > f.puts "Hello" > > } > > Well, writing to a relative file path is bound

[Puppet Users] Re: How to get package version to use it in template ?

2014-10-31 Thread jcbollinger
On Thursday, October 30, 2014 9:33:01 AM UTC-5, Alexandre Barth wrote: > > Hello ! > > I have a problem generating different configuration in a template > depending on package version installed. > For example, in my httpd module, i'd like to generate configuration using > Order, Allow from and

Re: [Puppet Users] Re: Exported resources from multiple sources?

2014-10-31 Thread Atom Powers
Thank you John. I think I understand the limitation. I should be able to create a work-around by scripting a puppetdb query to build "resources" manually or simply fetching the files I need from the partitioned puppetmaster. On Fri, Oct 31, 2014 at 6:44 AM, jcbollinger wrote: > > > On Thursday,

Re: [Puppet Users] puppetlabs/activemq module

2014-10-31 Thread Ryan Coleman
On Fri, Oct 31, 2014 at 2:06 AM, John Anderson wrote: > Okay, that sounds like a plan to me. > > I have just one question though, should I put in a JIRA ticket before I > start working on code like the guide suggests? Or should I fork it, adapt > it to my needs, and then make a JIRA ticket when

[Puppet Users] Newer to puppet, looking for ways to organize and group configs

2014-10-31 Thread JakeJ
Hi all, I've just inherited a puppet environment that is currently managing various linux and OS X nodes. This appears to me to be a non-traditional Puppet environment, as it seems the previous group of employees have built in-house, a web app that allows us to manage the puppet nodes by placi

Re: [Puppet Users] Re: Exported resources from multiple sources?

2014-10-31 Thread Juan Sierra Pons
> > Alternatively, the biggest hurdle for establishing related masters in > separate networks may be the shared CA. If you can solve that, then you > could perhaps address the other issues with some form of replication between > the two environments, but replicating the CA is not appropriate. > >

Re: [Puppet Users] Re: Filesystem mounting in sequence with puppet

2014-10-31 Thread amogh patel
Thank you so much John, for taking time and explaining in detail. This really helps new learner like me. :) Thanks again. Amogh On Fri, Oct 31, 2014 at 8:22 AM, jcbollinger wrote: > > > On Thursday, October 30, 2014 12:46:07 PM UTC-5, amogh patel wrote: >> >> Thanks, John. It did help. I was w

Re: [Puppet Users] Newer to puppet, looking for ways to organize and group configs

2014-10-31 Thread Wil Cooley
On Fri, Oct 31, 2014 at 7:47 AM, JakeJ wrote: > Hi all, > > I've just inherited a puppet environment that is currently managing > various linux and OS X nodes. This appears to me to be a non-traditional > Puppet environment, as it seems the previous group of employees have built > in-house, a web

Re: [Puppet Users] Re: beaker test fails to resolve "agent" roles, works if role is master/database

2014-10-31 Thread Joshua Partlow
On Thu, Oct 30, 2014 at 12:03 AM, Manish Sapariya wrote: > Josh, > Thanks for the clarification. > > Now that I look closely at the Beaker wiki I see call as "on agents "do > something" > > For some reason I missed and assume that "on agent" should work. > > I think confusion was from this sample

Re: [Puppet Users] Re: how to execute paths in a text file in puppet ruby

2014-10-31 Thread Felix Frank
On 10/09/2014 03:46 PM, Spriya wrote: > Hi, > > When i executed your facts. It is throwing me error ... > *=> # @ldapname="java_versions1", @resolves=[], @searching=false, @value=nil>* Uh, that's not an error. That's a fact if I ever saw one (well, I didn't, but it's recognizable regardless ;-)

Re: [Puppet Users] Tiered, Auto Launching new instances with Puppet

2014-10-31 Thread Felix Frank
S, do you have a question? :) Looks alright so far. On 10/11/2014 03:05 AM, Dennis Gearon wrote: > I want to be able to scale up different types of nodes both quickly and > moderately quickly, AUTOMATICALLY WITH NO USER INPUT,with Puppet doing > the configureation. > > My idea so far is: >

Re: [Puppet Users] Tiered, Auto Launching new instances with Puppet

2014-10-31 Thread Felix Frank
On 10/31/2014 07:56 PM, Felix Frank wrote: > S, do you have a question? :) > > Looks alright so far. > > On 10/11/2014 03:05 AM, Dennis Gearon wrote: >> > I want to be able to scale up different types of nodes both quickly and >> > moderately quickly, AUTOMATICALLY WITH NO USER INPUT,with Pup

[Puppet Users] runinterval vs 'puppet agent --test'

2014-10-31 Thread genem85ua
I'm a new puppet user; just now doing some testing in a sandbox environment. I have added 'runinterval' to the [agent] section of puppet.conf on one agent and set it to 60. I can see (via 'tail -f /var/log/messages | grep puppet:') now that I get a "Notice: Compiled catalog for myagent in en