Re: [Puppet Users] MCollective: Invalid parameter middleware on Class[Mcollective]

2014-11-25 Thread Will McDonald
On 24 November 2014 at 22:54, Felix Frank wrote: > > Apparently you should refer to an ActiveMQ module to take care of that > now. I imagine that things will not be much more complicated if you pick > a good module. > > https://forge.puppetlabs.com/puppetlabs/activemq > > I would look here first.

[Puppet Users] Newbie question: extending Puppet to employ AWS - firewall issues?

2014-11-25 Thread Ian Hayes
A newbie question on using Puppet. I'm planning to use Puppet to spin up new test environments for a web app within a firewall protected corporate software dev environment. At some point we are going to run out of in house server resource, so I am looking at the idea of using AWS as a flexib

Re: [Puppet Users] Newbie question: extending Puppet to employ AWS - firewall issues?

2014-11-25 Thread Gareth Rushgrove
Hi Ian On 25 November 2014 at 08:22, Ian Hayes wrote: > A newbie question on using Puppet. I'm planning to use Puppet to spin up > new test environments for a web app within a firewall protected corporate > software dev environment. At some point we are going to run out of in house > server re

[Puppet Users] how to split the string in a file in puppet ruby

2014-11-25 Thread Spriya
Hi, I am trying to capture all paths in a text file. for that i am splitting the string into an array and the word with /java to get the paths. Here is my ruby code *logfile = "/home/weblogic/javaapp.txt"* *log = Facter::Util::FileRead.read(logfile)* *log.each_line do |line|* *unless log.nil?

Re: [Puppet Users] how to split the string in a file in puppet ruby

2014-11-25 Thread Felix Frank
Are those caused by empty lines in the file your are iterating? If so, you can try and add a next if line.empty? early in your log.each_line loop. HTH, Felix On 11/25/2014 04:28 PM, Spriya wrote: > Hi, > > I am trying to capture all paths in a text file. for that i am splitting > the string i

[Puppet Users] my line count is giving me wrong values in puppet facts

2014-11-25 Thread Spriya
Hi, when i am trying to count the lines in how many locations the java is. It is giving me wrong count. Here is my code: *require 'facter'* *require 'facter/util/file_read'* *logfile = "/home/weblogic/javaapp.txt"* *java_count = 0* *if File.exist? '/home/weblogic/javaapp.txt'* *log = Facter:

[Puppet Users] hiera lookup , extract one element

2014-11-25 Thread Helen Paterson
Hi, I have the following hiera data in the node definition. I can lookup all the data create_resources('iis::manage_site', hiera_hash('iis::sites', [])) . iis::sites: 'myweb1': site_path: 'D:\Repositories\myweb1\wwwroot' port: '80' ip_address: '192.168.33.21' app_pool: 'ColdFus

Re: [Puppet Users] Re: workarounds for ruby segfaults on puppet master

2014-11-25 Thread Tim Mooney
In regard to: [Puppet Users] Re: workarounds for ruby segfaults on puppet...: Since RHEL 6.x has alternate versions of some packages (including ruby) available via its Software Collections Library (SCL), I'm tempted to try switching our puppet master to use the "ruby193-*" packages from SCL. A

Re: [Puppet Users] Re: workarounds for ruby segfaults on puppet master

2014-11-25 Thread Tim Mooney
In regard to: [Puppet Users] Re: workarounds for ruby segfaults on puppet...: FWIW here's what I put in /etc/puppet/rack/config.ru that has resolved it for me: Thanks Trey! It was your original post about the issue that got me on a track that eventually got me a workaround. We're now on 3.7.

Re: [Puppet Users] my line count is giving me wrong values in puppet facts

2014-11-25 Thread Johan De Wit
I count 16 lines in your txt file, so the fact is working as you coded it. You should increment only if you find another version in you file, and there are only 4 in the file (or something else) On 25/11/14 17:38, Spriya wrote: Hi, when i am trying to count the lines in how many locations

[Puppet Users] output of puppet facts are displaying when concatenating the facts

2014-11-25 Thread Spriya
Hi I have puppet facts and those facts are displaying individually. But when i am concatenating the facts, the output is not displaying Here is my code: l*og = Facter::Util::FileRead.read(logfile)* *unless log.nil?* *log.each_line do |line|* * val = line.split(' ')* *java_path = val.grep(%

Re: [Puppet Users] Re: Custom apache module advice needed

2014-11-25 Thread Ugo Bellavance
On Tuesday, November 25, 2014 12:47:38 AM UTC-5, Pete Brown wrote: > > > On 25 Nov 2014 11:37, "Ugo Bellavance" > > wrote: > > > > Sorry for top-posting, but I found my mistake. I didn't know we could > not set 'require' more than once. It now looks obvious but it wasn't when > I was working

[Puppet Users] Re: Custom apache module advice needed

2014-11-25 Thread Ugo Bellavance
> > > >- I've had unplanned outages (nothing critical, clients/users were >warned on dev and staging environments) because the refresh was done > before >the logs directory was created > - Should I implement file syntax checking for httpd .conf files? >Should it be on

Re: [Puppet Users] output of puppet facts are displaying when concatenating the facts

2014-11-25 Thread Felix Frank
Hi, this is the 8th thread you started about one and the same problem in a very short period of time. To appear yet more trigger happy, you have obviously managed to solve some of your issues yourself, yet did not hesitate to confront everyone with the next roadblock along the way. Could you try