[Puppet Users] Re: Ruby error when running puppet agent on host

2011-12-28 Thread eRefre
Bump. No one that has a clue? On Dec 14, 4:00 am, Richard Olofsson wrote: > Hi. > > We have started to receive some strange errors when running puppet agent on > some hosts in our datacenter. > We have about 500 clients and there are about 30 that gives us this error: > >  /usr/lib/ruby/site_rub

[Puppet Users] New Foreman and Smart Proxy Release

2011-12-28 Thread Ohad Levy
Hi All, This is a maintenance release, and most likely the last release of foreman supporting Ruby older than 1.87 (The proxy would still run on older versions of ruby as far as we can support it). if you have no idea what foreman is about, feel free to review http://theforeman.org/projects/forem

[Puppet Users] puppet for patch management

2011-12-28 Thread sanjiv singh
Hi Puppeteers , I am using puppet in such environment where other than exec,service, packages large number of static files (wars,jars,properties files, zips etc) and template need to be served to puppet client other than exec,service, packages,custom resource type. For now what i have written is

Re: [Puppet Users] New variable scoping question regarding defines calling defines.

2011-12-28 Thread Trevor Vaughan
I didn't. Seems odd but it might work. Unfortunately, there's not really a way to know what 'name' would be from the lower level define unless you were sure to call it with the same name. If you did that, you could use Foo::Do_stuff[$name]::var1 but I don't really see another way of doing it. Pr

Re: [Puppet Users] New variable scoping question regarding defines calling defines.

2011-12-28 Thread Trevor Vaughan
Just tried this with no success. I'm guessing that there's no way to know the calling scope. Filed as bug 11584 even though these will all be compile failures as of 2.8 (in theory). Trevor On Wed, Dec 28, 2011 at 9:08 AM, Trevor Vaughan wrote: > I didn't. Seems odd but it might work. > > Unfor

[Puppet Users] How are people regression testing their code for variable scoping?

2011-12-28 Thread Trevor Vaughan
I think I've found all of the cases, but I'd like a definitive way to be sure without trying to call every piece of code that I've written. Thanks, Trevor -- Trevor Vaughan Vice President, Onyx Point, Inc (410) 541-6699 tvaug...@onyxpoint.com -- This account not approved for unencrypted propri

[Puppet Users] Debian Squeeze puppet 2.7+apache+passenger

2011-12-28 Thread jvandellen
Greetings, I am somewhat new to puppet, and have run into problems configuring my debian 6 puppet master running puppet 2.7 with apache and passenger. Most of the documentation I've been able to fine regarding how to do this properly seems very outdated. I was wondering if anybody could point

[Puppet Users] Could not autoload active_record: uninitialized constant ActiveRecord

2011-12-28 Thread DIVJOT
Hi I am trying to configure puppet 2.7.9 for storeconfig with mysql. But some how I am unable to get it done. I have installed rubyenterprise for mysql but whenever I connect puppet I get the error err: Cached catalog for demo failed: Could not autoload active_record: uninitialized constant Active

[Puppet Users] Ubuntu 11.10 EC2 Instance : Hostname Mistmatch Issue

2011-12-28 Thread Sanket Dangi
Hi All, I'm trying to configure puppetmaster and puppet clients using Ubuntu 11.10 EC2 Instances (ami-a562a9cc). I have enabled automatic certificate signing. But whenever I issue command from puppet client : *#puppet agent --server puppet --waitforcert 60 --test Certificates get signed but it t

[Puppet Users] packages and Solaris

2011-12-28 Thread Peter Berghold
Hi folks, I'm about to propose to my current company that we use puppet to manage releases of home grown software. The environment is a mix of Solaris 8/9/10 and RHEL 5&6. I've got a handle on how to create recipes to release software into the RHEL environment. The unknown for me is how to mani

Re: [Puppet Users] Ubuntu 11.10 EC2 Instance : Hostname Mistmatch Issue

2011-12-28 Thread Josh Cooper
Hi Sanket, On Wed, Dec 28, 2011 at 12:57 AM, Sanket Dangi wrote: > > err: Could not retrieve catalog from remote server: hostname was not > match with the server certificate > The error message is trying to say that the server presented its SSL certificate to the agent, but the cert's common nam

Re: [Puppet Users] Could not autoload active_record: uninitialized constant ActiveRecord

2011-12-28 Thread Josh Cooper
On Wed, Dec 28, 2011 at 3:11 AM, DIVJOT wrote: > Hi > I am trying to configure puppet 2.7.9 for storeconfig with mysql. But > some how I am unable to get it done. > I have installed rubyenterprise for mysql but whenever I connect > puppet I get the error > > err: Cached catalog for demo failed: C

[Puppet Users] Re: packages and Solaris

2011-12-28 Thread Bill Proud
You need to use the adminfile and source parameters - once you have done that the provider works just fine. On Dec 28, 4:19 pm, Peter Berghold wrote: > Hi folks, > > I'm about to propose to my current company that we use puppet to manage > releases of home grown software.  The environment is a mi

Re: [Puppet Users] Re: Ruby error when running puppet agent on host

2011-12-28 Thread Aaron Grewell
More information will be needed I suspect. Can you post: rpm -qi puppet rpm -qa | grep ruby gem list --local On Wed, Dec 28, 2011 at 3:39 AM, eRefre wrote: > Bump. > > No one that has a clue? > > On Dec 14, 4:00 am, Richard Olofsson wrote: >> Hi. >> >> We have started to receive some strange er

Re: [Puppet Users] Re: Ruby error when running puppet agent on host

2011-12-28 Thread Josh Cooper
Hi Richard, This is caused by Puppet::Application::Agent attempting to reference Puppet::Network::Handler before it's been loaded. It's one of these load-order issues where it may work in some cases because some other code, e.g. lib/puppet/network/client.rb, requires puppet/network/handler, and ha

[Puppet Users] Re: Managing sensitive strings with puppet

2011-12-28 Thread Ryan Stewart
On Dec 27, 5:00 pm, Ryan Stewart wrote: > Before jumping into hiera, I was trying to get a feel for extlookup() > with CSV files because it looked pretty simple, but I can't seem to > make it work. nm. I figured out what I was doing wrong. -- You received this message because you are subscribed

Re: [Puppet Users] Re: packages and Solaris

2011-12-28 Thread Aaron Grewell
We decided to distribute the pkg files the same way we do Linux packages - via http. This define has been very useful to us: define pkg_http($version,$source, $adminfile, $responsefile=undef){ exec {"/usr/sfw/bin/wget $source -O /var/tmp/$name-$version.pkg": unless => "/us

Re: [Puppet Users] Re: Managing sensitive strings with puppet

2011-12-28 Thread Nigel Kersten
On Wed, Dec 28, 2011 at 9:06 AM, Ryan Stewart wrote: > On Dec 27, 5:00 pm, Ryan Stewart wrote: > > Before jumping into hiera, I was trying to get a feel for extlookup() > > with CSV files because it looked pretty simple, but I can't seem to > > make it work. > > nm. I figured out what I was doin

Re: [Puppet Users] Re: Managing sensitive strings with puppet

2011-12-28 Thread Dan White
Please consider sharing your successful configuration with others that might be trying to do the same thing. “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) - Ryan Stewart

Re: [Puppet Users] packages and Solaris

2011-12-28 Thread Mike Newton
We use virtual package declarations and realize the packages in the class they are needed. We push a standard adminfile to all the Solaris hosts. The packages are on an NFS share that is exported to all our servers: file { "noask_pkgadd": path => "/var/sadm/install/admin/noask_pkgadd", ensur

[Puppet Users] Re: Debian Squeeze puppet 2.7+apache+passenger

2011-12-28 Thread John Morrissey
On Wed, Dec 28, 2011 at 07:13:09AM -0800, jvandellen wrote: > I am somewhat new to puppet, and have run into problems configuring my > debian 6 puppet master running puppet 2.7 with apache and passenger. Most > of the documentation I've been able to fine regarding how to do this > properly seem

[Puppet Users] Re: Managing sensitive strings with puppet

2011-12-28 Thread Ryan Stewart
On Dec 28, 11:33 am, Nigel Kersten wrote: > On Wed, Dec 28, 2011 at 9:06 AM, Ryan Stewart wrote: > > On Dec 27, 5:00 pm, Ryan Stewart wrote: > > > Before jumping into hiera, I was trying to get a feel for extlookup() > > > with CSV files because it looked pretty simple, but I can't seem to > > >

[Puppet Users] External Node Script

2011-12-28 Thread Douglas Garstang
What should an external node script output when it can't find the node? The docs here: http://docs.puppetlabs.com/guides/external_nodes.html are incomplete and don't specify. it's my understanding, and previous experience (somehow) that when the enc script can't find the node, that puppet should

[Puppet Users] Re: External Node Script

2011-12-28 Thread Douglas Garstang
Did a little more reading. Even when the external node script prints an empty YAML document, '---', I still get that error. Doug. On Wed, Dec 28, 2011 at 1:27 PM, Douglas Garstang wrote: > What should an external node script output when it can't find the > node? The docs here: > > http://docs.pu

Re: [Puppet Users] Re: External Node Script

2011-12-28 Thread Nan Liu
On Wed, Dec 28, 2011 at 3:13 PM, Douglas Garstang wrote: > Did a little more reading. Even when the external node script prints > an empty YAML document, '---', I still get that error. Try this as your ENC: #!/bin/sh echo '--- parameters: ' exit 0 Thanks, Nan -- You received this message beca

Re: [Puppet Users] Re: External Node Script

2011-12-28 Thread Douglas Garstang
On Wed, Dec 28, 2011 at 3:30 PM, Nan Liu wrote: > On Wed, Dec 28, 2011 at 3:13 PM, Douglas Garstang > wrote: >> Did a little more reading. Even when the external node script prints >> an empty YAML document, '---', I still get that error. > > Try this as your ENC: > #!/bin/sh > echo '--- > parame

Re: [Puppet Users] Re: External Node Script

2011-12-28 Thread Douglas Garstang
On Wed, Dec 28, 2011 at 3:53 PM, Douglas Garstang wrote: > On Wed, Dec 28, 2011 at 3:30 PM, Nan Liu wrote: >> On Wed, Dec 28, 2011 at 3:13 PM, Douglas Garstang >> wrote: >>> Did a little more reading. Even when the external node script prints >>> an empty YAML document, '---', I still get that e

Re: [Puppet Users] Re: External Node Script

2011-12-28 Thread Nan Liu
On Wed, Dec 28, 2011 at 3:53 PM, Douglas Garstang wrote: > On Wed, Dec 28, 2011 at 3:30 PM, Nan Liu wrote: >> On Wed, Dec 28, 2011 at 3:13 PM, Douglas Garstang >> wrote: >>> Did a little more reading. Even when the external node script prints >>> an empty YAML document, '---', I still get that e

Re: [Puppet Users] Re: External Node Script

2011-12-28 Thread Nan Liu
On Wed, Dec 28, 2011 at 3:55 PM, Douglas Garstang wrote: > On Wed, Dec 28, 2011 at 3:53 PM, Douglas Garstang > wrote: >> On Wed, Dec 28, 2011 at 3:30 PM, Nan Liu wrote: >>> On Wed, Dec 28, 2011 at 3:13 PM, Douglas Garstang >>> wrote: Did a little more reading. Even when the external node s

Re: [Puppet Users] Re: Managing sensitive strings with puppet

2011-12-28 Thread Nigel Kersten
On Wed, Dec 28, 2011 at 11:05 AM, Ryan Stewart wrote: > On Dec 28, 11:33 am, Nigel Kersten wrote: > > On Wed, Dec 28, 2011 at 9:06 AM, Ryan Stewart > wrote: > > > On Dec 27, 5:00 pm, Ryan Stewart wrote: > > > > Before jumping into hiera, I was trying to get a feel for extlookup() > > > > with

[Puppet Users] Re: New variable scoping question regarding defines calling defines.

2011-12-28 Thread Ryan Coleman
On Monday, December 26, 2011 5:56:26 AM UTC-8, Trevor Vaughan wrote: > > I just ran into an interesting scenario where I didn't know how to > scope my variables and I'd just like to share for the crowd. > > Suppose you have two modules 'foo' and 'bar'. You also have two > defines, 'foo::do_stuff'

[Puppet Users] Re: Could not autoload active_record: uninitialized constant ActiveRecord

2011-12-28 Thread DIVJOT
I have installed activerecord gem but still the error comes.Do I need to add the locaton of the gem in some config file of puppet? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.c

Re: [Puppet Users] PE 2.0 server and regular stock puppet client

2011-12-28 Thread John Burbridge
Thanks gents - turned out it was a networking issue. My firewall was open on port 443 but pointing at the wrong host. :) I've subscribed to the PE users' list anyway. Thanks! On Tue, Dec 27, 2011 at 5:05 PM, Nigel Kersten wrote: > > > On Sat, Dec 24, 2011 at 6:27 PM, John Burbridge > wrote: >