[Puppet Users] Puppet 2.6.1rc2 eats up a lot of memory

2010-09-02 Thread Jean-Baptiste Quenot
Hi there, This morning I noticed puppet agent, which was running in daemon mode every 5 minutes since August 24th, is using 1.4GB of memory on all hosts. I was not experiencing that kind of memory usage with Puppet 0.24. This is what 'top' reports: 23209 root 20 0 1511m 1.4g 2432 S0

[Puppet Users] Random errors in AIX-Zlinux clients

2010-09-02 Thread Héctor Rivas Gándara
The errors appear once or two times, randomly, and if I execute the client again it works properly. They are usually these kind of errors: >>>  You will probably find life improved by deploying >>> another mode of operation for the puppetmaster daemon, and using a real >>> database (I use

[Puppet Users] Using FACTER in other ruby code

2010-09-02 Thread Matthew Macdonald-Wallace
Hi all, I'm trying to write a ruby script to setup MySQL replication base on facts that we can distribute at runtime. I have two facts(mysql_master and mysql_repl_dbs) that show up when I run facter --puppet, however they do not appear to be imported in the following script:

Re: [Puppet Users] Using FACTER in other ruby code

2010-09-02 Thread R.I.Pienaar
- "Matthew Macdonald-Wallace" wrote: > Hi all, > > I'm trying to write a ruby script to setup MySQL replication base on > facts that we can distribute at runtime. > > I have two facts(mysql_master and mysql_repl_dbs) that show up when I > run facter --puppet, however they do not appear to

Re: [Puppet Users] Using FACTER in other ruby code

2010-09-02 Thread Matthew Macdonald-Wallace
On 2 September 2010 13:52, R.I.Pienaar wrote: > > add around here: > > ENV['FACTERLIB'] = "/var/lib/puppet/lib/facter:/var/lib/puppet/facts" > > substitute with wherever your pluginsync is putting the facts Works a treat. (as always!) Thanks for the heads-up. How do I get this into the puppet/f

Re: [Puppet Users] Using FACTER in other ruby code

2010-09-02 Thread R.I.Pienaar
- "Matthew Macdonald-Wallace" wrote: > On 2 September 2010 13:52, R.I.Pienaar wrote: > > > > add around here: > > > > ENV['FACTERLIB'] = > "/var/lib/puppet/lib/facter:/var/lib/puppet/facts" > > > > substitute with wherever your pluginsync is putting the facts > > Works a treat. (as always!

[Puppet Users] puppet file recursion requires two passes to converge

2010-09-02 Thread Derek Yarnell
Hi, So for awhile I have been seeing this issue but it hasn't been painful. However, recently I have been deploying a new module that has made it much more annoying. file { cdh3_config: recurse => true, ignore => ".svn", checksum => md5,

[Puppet Users] Re: nginx+passenger+puppet

2010-09-02 Thread christopher floess
Okay, I've researched this a bit more, and it turns out, that the application is not being spun up. Could this have to do with my config paths? I'll attach my puppet.conf at the bottom, but basically, I've installed a puppet-admin user on this system and that's where I edit all of my manifest

Re: [Puppet Users] Using FACTER in other ruby code

2010-09-02 Thread Matthew Macdonald-Wallace
On 2 September 2010 14:14, R.I.Pienaar wrote: > not sure where would be appropriate, I just got that from the facter code - > looked what it does for --puppet :) Doh! M. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group,

Re: [Puppet Users] Puppet 2.6.1rc2 eats up a lot of memory

2010-09-02 Thread Trevor Vaughan
Every 5 minutes? You may not be giving it enough time to garbage collect. Change that to 15 or 30 and see if it makes things better. Trevor On 9/2/10, Jean-Baptiste Quenot wrote: > Hi there, > > This morning I noticed puppet agent, which was running in daemon mode > every 5 minutes since August

[Puppet Users] $name uppercased

2010-09-02 Thread Dan Urist
I'm not sure if this is a bug or an intentional change, but I'm seeing the $name variable in my manifests initial-uppercased in 2.6.1-rc2; 0.25 didn't do this. Since I use this to generate some path variables in my modules, I now have to downcase it with an inline_template, which isn't a major inco

Re: [Puppet Users] puppet file recursion requires two passes to converge

2010-09-02 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > So if you make a change in the directory it will correctly refresh > the services. However the next time puppet runs, it will notice > there is a mtime difference on the directory and this will also > trigger a refresh. > > notice: //cdh::cdh3/File

Re: [Puppet Users] Puppet 2.6.1rc2 eats up a lot of memory

2010-09-02 Thread Daniel Pittman
Jean-Baptiste Quenot writes: > This morning I noticed puppet agent, which was running in daemon mode every > 5 minutes since August 24th, is using 1.4GB of memory on all hosts. I was > not experiencing that kind of memory usage with Puppet 0.24. This is what > 'top' reports: > > 23209 root

[Puppet Users] [puppet-server] - "/var/lib/puppet" while installing 0.25.5 puppet-server

2010-09-02 Thread kid17
just installed puppet-server using yum. but when i ran /etc/init.d/puppetmaster start, file directory /var/lib/ puppet is empty. how come it's empty as compared to installing from source? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post

[Puppet Users] err: Too many open files - /var/lib/puppet/state/state.yaml.tmp

2010-09-02 Thread Colm O'Connor
I keep on getting this message: err: Too many open files - /var/lib/puppet/state/state.yaml.tmp Does anybody know what might be causing it? I'm also getting "err: State got corrupted". Everything does seem to be kind of working, but it's sort of worrying getting these new errors. -- You receiv

[Puppet Users] Using stages in puppet

2010-09-02 Thread Richard Knight
has anybody else noticed issues with nesting stage classes in 2.6.0? Using Jeffs eariler post I easily make a stage script do what I need, the problem is if you import it in site.pp it runs for every node in the environment, it would seem becuase it is outside any class other than it's special sta

[Puppet Users] Facter error Could not find value for 'ipaddress_eth0_0'

2010-09-02 Thread Scott Lillibridge
I am getting the following error when compiling a template Could not find value for 'ipaddress_eth0_0' but it seems that that fact exists sc...@li96-152:~$ facter | grep ipaddress_eth0_0 ipaddress_eth0_0 => 192.168.141.111 I'm using facter 1.5.7 on Debian Squeeze. What would cause this? I have

Re: [Puppet Users] Re: Puppet hangs

2010-09-02 Thread Fredrik Eriksson
On 2010-09-01 13:44, Fredrik Eriksson wrote: > On 26 Aug, 16:22, Brice Figureau > wrote: >> On Thu, 2010-08-26 at 05:08 -0700, kit wrote: >>> This server is 7.2-RELEASE-p4 #0 >> >> So it has the fix I sent. >> >>> debug: file_metadata supports formats: b64_zlib_yaml marshal pson raw >>> yaml; usin

[Puppet Users] err: Could not run Puppet configuration client: Invalid parameter stage at ...

2010-09-02 Thread toll13445
Hi, I am getting the following error on my CentOS clients; err: Could not run Puppet configuration client: Invalid parameter stage at /etc/puppet/manifests/nodes.pp:32 The server is CentOS 5.4 with packages from the epel-puppet repos; # rpm -qa | grep puppet puppet-dashboard-1.0.3-3 puppet-2.6.1-

Re: [Puppet Users] $name uppercased

2010-09-02 Thread James Turnbull
Dan Urist wrote: > I'm not sure if this is a bug or an intentional change, but I'm seeing > the $name variable in my manifests initial-uppercased in 2.6.1-rc2; 0.25 > didn't do this. Since I use this to generate some path variables in my > modules, I now have to downcase it with an inline_template,

Re: [Puppet Users] err: Too many open files - /var/lib/puppet/state/state.yaml.tmp

2010-09-02 Thread James Turnbull
Colm O'Connor wrote: > I keep on getting this message: > > err: Too many open files - /var/lib/puppet/state/state.yaml.tmp > > Does anybody know what might be causing it? > > I'm also getting "err: State got corrupted". Everything does seem to > be kind of working, but it's sort of worrying gett

[Puppet Users] SVN pre-commit hook on wiki

2010-09-02 Thread Carl Caum
On the wiki page http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control, the SVN Pre-Commit Hook script needs to be fixed to not check the syntax on files getting deleted. The following line: $SVNLOOK changed -t "$TXN" "$REPOS" | awk '{print $2}' | grep '\.pp$' | while read li

Re: [Puppet Users] SVN pre-commit hook on wiki

2010-09-02 Thread Joe McDonagh
On 09/02/2010 02:34 PM, Carl Caum wrote: On the wiki page http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control, the SVN Pre-Commit Hook script needs to be fixed to not check the syntax on files getting deleted. The following line: $SVNLOOK changed -t "$TXN" "$REPOS" | awk '{

Re: [Puppet Users] SVN pre-commit hook on wiki

2010-09-02 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/02/2010 08:34 PM, Carl Caum wrote: > On the wiki page > http://projects.puppetlabs.com/projects/1/wiki/Puppet_Version_Control, the > SVN Pre-Commit Hook script needs to be fixed to not check the syntax on > files getting deleted. as it is a

Re: [Puppet Users] SVN pre-commit hook on wiki

2010-09-02 Thread Carl Caum
Huh. I didn't think I had permission to edit that. Turns out I already had a login and everything :P On Sep 2, 2010, at 1:46 PM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 09/02/2010 08:34 PM, Carl Caum wrote: >> On the wiki page >> http://projects.puppetlabs

[Puppet Users] variable set in site.pp not visible in nodes.pp

2010-09-02 Thread Dan Urist
I have another glitch with 2.6.1-rc2 that worked in 0.25-- I set a global variable in my site.pp that is used in my nodes.pp, but it's no longer set there, though it still is in my modules. Is this a bug, or a design change? -- Dan Urist dur...@ucar.edu 303-497-2459 -- You received this message

[Puppet Users] Using defined(Class[]) on a subclass

2010-09-02 Thread Steven L. Seed
I'm having trouble getting puppet to work when using a conditional to check whether or not a subclass is defined. Here is what I've tried to do if ! defined (Class[server::cobbler]) { # do something } With the above statement I get this error: err: Could not retrieve catalog from remote ser

Re: [Puppet Users] variable set in site.pp not visible in nodes.pp

2010-09-02 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I have another glitch with 2.6.1-rc2 that worked in 0.25-- I set a > global variable in my site.pp that is used in my nodes.pp, but it's no > longer set there, though it still is in my modules. Is this a bug, or a > design change? I have a similar s

Re: [Puppet Users] puppet file recursion requires two passes to converge

2010-09-02 Thread Derek Yarnell
Hi Pete, It does seem fixed in 2.6.1rc3, however 0.25.5 it is still happens. Has there been a convergence of opinion on how to roll out 2.6.x? Server first then clients? Clients first then the server? Everything at once? (that is hard obviously) Thanks, derek On Sep 2, 2010, at 11:51 AM,

Re: [Puppet Users] puppet file recursion requires two passes to converge

2010-09-02 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > It does seem fixed in 2.6.1rc3, however 0.25.5 it is still happens. > Has there been a convergence of opinion on how to roll out 2.6.x? > Server first then clients? Clients first then the server? > Everything at once? (that is hard obviously) alway

[Puppet Users] help adding line to /etc/inittab

2010-09-02 Thread Kit Stube
Hi everyone. I am attempting to add this line to /etc/inittab so that a user will be forced to enter a password to get into single user mode: ~:S:wait:/sbin/sulogin I have tried all kinds of things, but seem to be having no luck. Here is the puppet class I am trying to make: class gen

[Puppet Users] Re: err: Could not run Puppet configuration client: Invalid parameter stage at ...

2010-09-02 Thread toll13445
here is the output from a client that was previously working; # puppetd --test --debug debug: Creating default schedules debug: Failed to load library 'ldap' for feature 'ldap' debug: /Settings[/etc/puppet/puppet.conf]/Settings[ssl]/File[/var/lib/ puppet/ssl/certs/cirrusj1626.hpl.hp.com.pem]: Aut

Re: [Puppet Users] Re: err: Could not run Puppet configuration client: Invalid parameter stage at ...

2010-09-02 Thread James Turnbull
We're taking a look at this and the "nested" stages issue currently. Regards James Turnbull -- Puppet Labs - http://www.puppetlabs.com C: 503-734-8571 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppe

[Puppet Users] Re: Using defined(Class[]) on a subclass

2010-09-02 Thread John Lyman
I believe there is a bug, but I can't find it to reference it now. Try this: if ! defined("server::cobler") { # do something } On Sep 2, 5:07 pm, "Steven L. Seed" wrote: > I'm having trouble getting puppet to work when using a conditional to > check whether or not a subclass is defined. > > Her

Re: [Puppet Users] [puppet-server] - "/var/lib/puppet" while installing 0.25.5 puppet-server

2010-09-02 Thread Patrick
I would assume that the package maintainer moved the default directory location. Try this: puppetmaster --genconfig | grep "libdir =" On Sep 2, 2010, at 8:37 AM, kid17 wrote: > just installed puppet-server using yum. > > but when i ran /etc/init.d/puppetmaster start, file directory /var/lib/ >

[Puppet Users] Re: Using stages in puppet

2010-09-02 Thread Markus
Richard -- If I'm understanding you correctly, you've accurately described the behaviour but it isn't really a problem. Stages aren't classes, and they don't "do" anything unless you put resources in them, so there's no real downside to having them global (which they effectively are). Conversely,

Re: [Puppet Users] help adding line to /etc/inittab

2010-09-02 Thread Jason Koppe
My inittab is slightly different, does this work for you? class inittab { define conf ( $id, $runlevels = '123456', $action = 'respawn', $process ) { augeas {"inittab_$id": conte