[Puppet Users] Puppet own function

2012-10-18 Thread Brent Clark
Good day. Im trying to make my own function. I keep getting this message. err: Could not retrieve catalog from remote server: Error 400 on SERVER: Function 'brent_k' does not return a value at /etc/puppet/modules/munin/manifests/init.pp:17 on node XYZ.com Here is my simple code xyz.com:/etc/

[Puppet Users] Different return codes on exec during puppet agent run vs command line Windows

2012-10-18 Thread Beeny
Trying to run this exec in one of our manifests. When the resource is run during a puppet run, it returns a error code 87. But when I execute the same command on command prompt, it returns 3010. Is there any way to dig and and find out why the return codes are different. FYI, I am using the sys

[Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-10-18 Thread Fabrice Bacchella
My puppet setup break just a few hours with this message. I didn't upgrade anything, didn't really changed my module and it just broke. The node what where working suddenly stop working. I'm using the official Puppet 3.0 on Scientific Linux (aka Redhat) 6.3 Can some one explain me this magic ?

[Puppet Users] Re: Different return codes on exec during puppet agent run vs command line Windows

2012-10-18 Thread jcbollinger
On Wednesday, October 17, 2012 9:59:54 PM UTC-5, Beeny wrote: > > Trying to run this exec in one of our manifests. When the resource is run > during a puppet run, it returns a error code 87. But when I execute the > same command on command prompt, it returns 3010. Is there any way to dig > and

Re: [Puppet Users] err: Could not retrieve catalog from remote server: Error 400 on SERVER: allocator undefined for Proc

2012-10-18 Thread Jeff McCune
Could you check the server logs and run the master with --verbose --debug --trace? The information I'm looking for is a backtrace to the file and ljne number that raised that exception. Thanks, -Jeff On Oct 18, 2012, at 5:26 AM, Fabrice Bacchella wrote: > My puppet setup break just a few hours

Re: [Puppet Users] Using collections

2012-10-18 Thread Ryan Coleman
On Wed, Oct 17, 2012 at 11:47 AM, Maarten Thibaut wrote: > http://forge.puppetlabs.com/mthibaut/mutual_trust > Awesome! Thank you for sharing your work on the Forge! -- Ryan Coleman | @ryanycoleman Modules & Forge | Puppet Labs -- You received this message because you are subscribed to the Go

Re: [Puppet Users] Different return codes on exec during puppet agent run vs command line Windows

2012-10-18 Thread Josh Cooper
Hi Ben, On Wed, Oct 17, 2012 at 7:59 PM, Beeny wrote: > Trying to run this exec in one of our manifests. When the resource is run > during a puppet run, it returns a error code 87. But when I execute the same > command on command prompt, it returns 3010. Is there any way to dig and and > find out

[Puppet Users] Re: PuppetDB Connection Failures

2012-10-18 Thread Chris Price
Hello Bee, This message is often the result of one of the following: 1) Firewall blocking the puppetdb port 2) DNS issue with the hostname specified in your puppetdb.conf 3) DNS issue with the ssl-host specified in your jetty.ini on the puppetdb server Are you able to connect (e.g. via telnet)

[Puppet Users] Re: Puppet dashboard over passenger: The environment must be purely alphanumeric, not ''

2012-10-18 Thread Eric Sorenson
Hi andrew, that error is one that comes from the puppet master process itself when you connect to it with a regular HTTP client. So it looks like your apache virtualhost setup is pointing connections to that port/host at the puppetmaster config.ru, not dashboard. Does that help track down the

Re: [Puppet Users] Re: PuppetDB Connection Failures

2012-10-18 Thread Jacqueline Atkins
Thanks so much! I actually got to the bottom of the issue late last night. It was an issue with how I had configured postgres. Thanks everyone! On Thu, Oct 18, 2012 at 12:33 PM, Chris Price wrote: > Hello Bee, > > This message is often the result of one of the following: > > 1) Firewall blo

[Puppet Users] Foreman failing for db::migrate for puppet 3.0 with the following error :rake aborted! uninitialized constant HostObserver

2012-10-18 Thread Nishant Jain
Hello Everybody, I am trying to configure foreman for puppet 3.0. on centos 6.3 I have followed the instructions provided over here to install foreman:- http://theforeman.org/projects/foreman/wiki/RPM's_distribution_b

[Puppet Users] Re: Foreman failing for db::migrate for puppet 3.0 with the following error :rake aborted! uninitialized constant HostObserver

2012-10-18 Thread Nishant Jain
I am using the following version of Ruby :ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] On Thursday, October 18, 2012 2:20:24 PM UTC-4, Nishant Jain wrote: > > Hello Everybody, > I am trying to configure foreman for puppet 3.0. > on centos 6.3 >

Re: [Puppet Users] dynamic data in hiera

2012-10-18 Thread Peter De Cleyn
For further reference: I found the problem with the CPU burning. It seems hiera lookups can end up in an endless loop when specifying meaningful regex characters (like $,+,?) in your lookup variables. So specifying key:%{$var} will cause an endless loop. I created a ticket http://projects.puppetla

[Puppet Users] Announce: Puppet 3.0.1 Available

2012-10-18 Thread Moses Mendoza
Puppet 3.0.1 is a bugfix release for the 3.x series of Puppet. To see a list of the issues addressed by this release, check out the 3.0.1 version in our issue tracter at: https://projects.puppetlabs.com/versions/328. This release contains contributions from the following people: Andrew Parker, Jef

[Puppet Users] Using Puppet to push Windows Updates?

2012-10-18 Thread David Groce
Hi, I'm very new to puppet but am looking to implement it in our environment. One thing I'm struggling with is that I would like Puppet to be the only tool that makes changes to our servers, but as we run Windows for most of our systems, we need to run the continuous onslaught of Windows updates a

[Puppet Users] Re: Puppet 3.0 upgrade issue

2012-10-18 Thread Forrie
I'm running into a similar problem; however, even the changes to config.ru don't seem to make a difference. First, here are the GEMs I have installed: daemon_controller (1.0.0) facter (1.6.13) fastthread (1.0.7) ffi (1.1.5) hiera (1.1.0, 1.0.0) json (1.7.5) libvirt-ruby (1.0.2) passenger (3.0.

Re: [Puppet Users] Re: Puppet 3.0 upgrade issue

2012-10-18 Thread Jeff McCune
On Thu, Oct 18, 2012 at 2:37 PM, Forrie wrote: > > Here is my config.ru (hash comments removed for brevity): > > > $0 = "master" > ARGV << "--rack" > ARGV << "--confdir" << "/etc/puppet" > require 'puppet/util/command_line' > run Puppet::Util::CommandLine.new.execute > I overlooked a setting for

Re: [Puppet Users] Re: Puppet 3.0 upgrade issue

2012-10-18 Thread Forrie
I added that and restarted httpd (stop, then start) and still no luck. Here is what passenger-status says: --- General information --- max = 15 count= 0 active = 0 inactive = 0 Waiting on global queue: 0 --- Application groups --- So it's not even

Re: [Puppet Users] Re: Puppet 3.0 upgrade issue

2012-10-18 Thread Ellison Marks
Is it the case that the application doesn't technically "exist" until an agent tries to hit the port? On Thursday, October 18, 2012 2:52:16 PM UTC-7, Forrie wrote: > > I added that and restarted httpd (stop, then start) and still no luck. > Here is what passenger-status says: > > --- G

Re: [Puppet Users] Using Puppet to push Windows Updates?

2012-10-18 Thread Josh Cooper
Hi David, On Thu, Oct 18, 2012 at 1:02 PM, David Groce wrote: > Hi, > > I'm very new to puppet but am looking to implement it in our environment. > One thing I'm struggling with is that I would like Puppet to be the only > tool that makes changes to our servers, but as we run Windows for most of

[Puppet Users] set File defaults inside node?

2012-10-18 Thread Matt Zagrabelny
Greetings, I have the global file defaults set up: site.pp File { owner => "root", group => "root", mode => 0644, } In general this works well. I do have a node with numerous file resources that do not conform to the above defaults. Is there an elegant way to say something like: se

Re: [Puppet Users] Re: Puppet 3.0 upgrade issue

2012-10-18 Thread Forrie
Interesting question - I tested this out and it does indeed seem to be the case. Unexpected behavior, however. On Thursday, October 18, 2012 6:02:22 PM UTC-4, Ellison Marks wrote: > > Is it the case that the application doesn't technically "exist" until an > agent tries to hit the port? > >

Re: [Puppet Users] Re: Puppet 3.0 upgrade issue

2012-10-18 Thread Ramin K
On 10/18/2012 3:36 PM, Forrie wrote: Interesting question - I tested this out and it does indeed seem to be the case. Unexpected behavior, however. Standard behavior under Passenger. If you want Puppet to start immediately when the webserver starts do the following. 1. Make sure you're usi

[Puppet Users] Re: Puppet 3.0: Not authorized to call find on /file_metadata, more issues?

2012-10-18 Thread Forrie
I've just built a staging system, to work out the issues I've been having with Puppet 3.x. We now have 3.0.1 installed there. I am again running into this fileserver issue and the same errors. I read through some complaints here and I see mention that auth.conf is only able to use allow_ip.

Re: [Puppet Users] Re: Puppet 3.0 upgrade issue

2012-10-18 Thread Forrie
Thanks for that pointer... I put that in my config. -- 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.com/d/msg/puppet-users/-/oHhOu4PZsb0J. To post to this group, send email to puppe

[Puppet Users] How catch a notify inside a define

2012-10-18 Thread Caio Cezar Zapater de Souza
Hi, I have created a define with packages services and a mount inside, but when I notify the define all of them receive the notify but I want only refresh the mount. It is possible? Here is my define: define xmount ( $device= undef, $device_base = undef, $device_qa =

Re: [Puppet Users] dynamic data in hiera

2012-10-18 Thread Nick Fagerlund
On Thursday, October 18, 2012 11:39:05 AM UTC-7, pdcleyn wrote: > > ... endless loop when specifying meaningful regex characters (like $,+,?) > in your lookup variables. > > > Oh! That's probably exactly what happened when I was experimenting w/ interpolating members of hash and array vars recei

[Puppet Users] Setting directory permission on when copying directory contents using recurse => remote...

2012-10-18 Thread Robert Nickel
I am trying to copy out the contents of home directories via puppet while controlling the home directory permissions at the same time and I am stuck. I don't see a good way to copy contents of a directory using the remote directive while still managing the directory permissions directly. e.g. I

[Puppet Users] pocco - a puppet manifest documentation experiment

2012-10-18 Thread Nan Liu
Hi! The existing puppet manifests documentation generated via rdoc isn't very dry. I quite like docco generated documentation so I borrowed from rocco to create a puppet manifests documentation tool called pocco. Here's a module that will install the tool: https://github.com/nanliu/puppet-pocco

Re: [Puppet Users] dynamic data in hiera

2012-10-18 Thread Peter De Cleyn
To be sure, you can run the puppet master in debug mode: puppet master --no-daemonize --debug You will get a continuous stream of messages from hiera: Debug: hiera(): Looking up $sys in scope Debug: hiera(): Looking up $sys in scope Debug: hiera(): Looking up $sys in scope ... On Fri, Oct 19, 2