[Puppet Users] The /var/lib/puppet/clientbucket directory grew 4GB in minutes, filling up /var on production server

2009-10-23 Thread Kenneth Holter
Hi. Last night the /var/lib/puppet/clientbucktet directory on one of our production servers suddenly grew about 4 GB, filling up the entire /var partition. Around that time, I see that there was a problem with one of our CIFS mount points (i.e. our CIFS client had problems reaching our CIFS serve

[Puppet Users] Re: Puppet tutorial (and talk)

2009-10-23 Thread John Arundel
On Thu, Oct 22, 2009 at 9:39 PM, joe wrote: > On Oct 22, 1:48 pm, John Arundel wrote: >> http://bitfieldconsulting.com/puppet-tutorial > > There doesn't seem to be any mention of cert signing... That's all coming up in part 2! In the first article, I wanted to get as quickly as possible to the

[Puppet Users] Re: node manifest best practices

2009-10-23 Thread Ohad Levy
You can also use one of the tools build ontop of it to manage your nodes, e.g. iclassify or foreman. cheers, ohad 2009/10/23 Nicolas Szalay > Le vendredi 23 octobre 2009 à 15:32 +1100, Matt Delves a écrit : > > Greetings, > > As the number of servers I am using puppet on is increasing, I'm > won

[Puppet Users] Re: trouble with puppetrun on 0.24.8

2009-10-23 Thread kyawai
Yes, for example, the correct operation that I think about, 1. Three host is executed with puppetrun specifying it. serverA serverB serverC 2. The manifest is applied. 3. One report mail of each server is received. serverA:1 serverB:1 serverC:1 However, an actual result has the problem in the p

[Puppet Users] Extracting users

2009-10-23 Thread FLEMING PETER-PRC368
Hi, We use puppet to manage our ssh accounts and I want to extract this data into a database or other format. It there an existing way to extract this data without writing a parser to read the files? Here is an example of what we have. Thanks, Pete class users::vsdba { @group { "sdba":

[Puppet Users] How to group packages together

2009-10-23 Thread Pete Emerson
This originally started out as a question, but then I figured out the answer (or should I say, "an answer"), so I'm sharing in the hopes that this helps someone else out. Suppose you have two packages that you want to ensure are installed, and then use a require later on. I did it like this: pac

[Puppet Users] Re: Puppet language grammar

2009-10-23 Thread Trevor Vaughan
What are you trying to do? If you're trying to extract stuff, I would recommend just hooking the puppet parser. Trevor On Wed, Oct 21, 2009 at 11:28, Cameron wrote: > > Is there a formal grammar specification defined for the Puppet > language (e.g. EBNF)? > > Cameron. > > > --~--~-~--

[Puppet Users] Re: Extracting users

2009-10-23 Thread Carl Caum
You can use stored configs. http://reductivelabs.com/trac/puppet/wiki/UsingStoredConfiguration Insteading of having virtual resources you'll have exported resources that you than collect (vs realizing). http://reductivelabs.com/trac/puppet/wiki/ExportedResources These exported resources will

[Puppet Users] Re: Puppet language grammar

2009-10-23 Thread Cameron Ross
Hi, A parser grammar would be the best way for me to understand the scope of the Puppet language. Although not EBNF, Puppet's yac-style grammar will certainly suffice. Thanks everyone. Cameron. On Fri, Oct 23, 2009 at 1:59 PM, Trevor Vaughan wrote: > > What are you trying to do? > > If you'r

[Puppet Users] Module include order?

2009-10-23 Thread Douglas Garstang
I have this... node test_node inherits basenode_centos_5 { include yum include yum-priority include mysql_client include mysql_server } Puppet seems to be executing stuff from the mysql_client and mysql_server modules before the yum module. I had assumed that modules were execute

[Puppet Users] Re: Module include order?

2009-10-23 Thread Carl Caum
There's two ways you can go about this. 1) One dirty little secret of puppet is that inheritance is always done in order. So if you move the includes for yum and yum-priority to the node basenode_centos_5, they will processed first. I'm not sure if this is still true in 0.25 though. 2)

[Puppet Users] Re: Module include order?

2009-10-23 Thread Douglas Garstang
Awesome info. Thanks Carl! On Fri, Oct 23, 2009 at 1:18 PM, Carl Caum wrote: > > There's two ways you can go about this. > > 1)  One dirty little secret of puppet is that inheritance is always > done in order.  So if you move the includes for yum and yum-priority > to the node basenode_centos_5,

[Puppet Users] useradd: invalid numeric argument 'someuser'

2009-10-23 Thread Jamie
CentOS 5.3 w/ updates Puppet 0.25.1.rc2 (installed from source) Mongrel + Nginx Am I making a mistake or is this a bug? I've experienced this issue using 0.24.8 from EPEL also. Thu Oct 22 13:59:43 -0700 2009 //user::virtual-users_groups/User [someuser]/ensure (err): change from absent to presen

[Puppet Users] packages with dot in the name

2009-10-23 Thread Mathieu N
Hi all, It might be a newby question but I cannot found any answer here or on the documentation part of the Website. I need to install a package with a dot in the name. So my recipe looks like package { lua5.1 ensure => installed } But I keep on getting a syntax error on t

[Puppet Users] Re: Puppet tutorial (and talk)

2009-10-23 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Arundel wrote: > On Thu, Oct 22, 2009 at 9:39 PM, joe wrote: >> On Oct 22, 1:48 pm, John Arundel wrote: >>> http://bitfieldconsulting.com/puppet-tutorial >> There doesn't seem to be any mention of cert signing... > > That's all coming up in pa

[Puppet Users] Re: Module include order?

2009-10-23 Thread Douglas Garstang
Actually, that doesn't seem to be what's happening Carl. I have this... node tst_basenode { # Do not include any modules here, other than yum, that require software # or they will fail! If you include other modules in this node definition, # there is no guarantee that yum will be co

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-10-23 Thread Digant C Kasundra
> If anyone feels up to grabbing this document and running with it, > please feel free. As the original author, I suppose I should take over. Can you send me what you had? -- Digant C Kasundra Technical Lead, ITS Unix Systems and Applications, Stanford University --~--~-~--~~--

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-10-23 Thread Digant C Kasundra
- "James Turnbull" wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > R.I.Pienaar wrote: > > > Pattern collections are much better, I'd rather have articles > > exploring features that people can learn each feature and then > > apply to their environment than a best practice sin

[Puppet Users] Re: Module include order?

2009-10-23 Thread Carl Caum
Interesting. That's worked for me in the past. Well outside of creating a package resource default, you'll need to just put requires in the classes that require other classes to be run first. Really, that's not a bad idea at all since relationships should be explicit if not just for re

[Puppet Users] Re: Module include order?

2009-10-23 Thread Douglas Garstang
Weird. You'd think this would be common problem number 1 in people trying to use modules with puppet... On Fri, Oct 23, 2009 at 2:36 PM, Carl Caum wrote: > > Interesting.  That's worked for me in the past.  Well outside of > creating a package resource default, you'll need to just put requires >

[Puppet Users] Re: Best Practices Rewrite - First Draft

2009-10-23 Thread Digant C Kasundra
- "R.I.Pienaar" wrote: > 'lo, > > - "Julian Simpson" wrote: > > > No objections here. I seem to recall that there had a been a > > discussion at PuppetCamp about perhaps moving to a pattens > collection > > instead of set of best practices - not sure if anyone has bandwidth > > to t

[Puppet Users] Re: Module include order?

2009-10-23 Thread rip
hello, - "Douglas Garstang" wrote: > Weird. You'd think this would be common problem number 1 in people > trying to use modules with puppet... It is not a problem at all. The requirement to clearly specify all your requirements, orders and dependencies is integral to the design of Puppet

[Puppet Users] Re: Module include order?

2009-10-23 Thread Douglas Garstang
Including modules in a specific order would be nice too. It's certainly easier to read and more intuitive. :) On Fri, Oct 23, 2009 at 2:50 PM, wrote: > > hello, > > - "Douglas Garstang" wrote: > >> Weird. You'd think this would be common problem number 1 in people >> trying to use modules

[Puppet Users] Re: Module include order?

2009-10-23 Thread Douglas Garstang
Especially, since now I am getting this crap.. Oct 23 15:06:10 gumby puppetd[2867]: Could not apply complete catalog: Found dependency cycles in the following relationships: Package[centos-release] => Yumrepo[CentOS-Updates], Package[yum] => Package[yum -priorities], Yumrepo[CentOS-Updates] => Pa

[Puppet Users] Re: Module include order?

2009-10-23 Thread Carl Caum
If you have packages in your yum class the. You shouldn't have package resources require the yum class. Then you have a cycle because the class requires itself which requires itself which On Oct 23, 2009, at 5:07 PM, Douglas Garstang wrote: > > Especially, since now I am getting this crap..

[Puppet Users] Re: Puppet tutorial (and talk)

2009-10-23 Thread John Arundel
On 23 Oct 2009, at 21:55, James Turnbull wrote: > But you can't connect a client to the master without signing a > certificate or turning autosign on. Hmm, maybe I made a mistake. I thought you didn't have to do this when the server was running on the local machine. I don't remember signing

[Puppet Users] Re: Puppet tutorial (and talk)

2009-10-23 Thread Avi Miller
Hi, James Turnbull wrote: > But you can't connect a client to the master without signing a > certificate or turning autosign on. You can if the client is question is the master itself: it signs it's own certificates automatically, so puppet on the master will auto-connect without requiring a m

[Puppet Users] Reductive Labs people

2009-10-23 Thread Luke Kanies
Hi all, I've been hesitant to send Reductive Labs updates to the community lists, but I've been told that not knowing who works for us makes some communication difficult. So, I'm going to start sending notifications when we bring people on (at least, those I expect to spend time in the com

[Puppet Users] Re: packages with dot in the name

2009-10-23 Thread Pete Emerson
You got close with quoting, but I think you're just missing the : after the package, like this: package { "lua5.1": ensure => installed } On Fri, Oct 23, 2009 at 7:08 AM, Mathieu N wrote: > > Hi all, > It might be a newby question but I cannot found any answer here or on > the documentation

[Puppet Users] Re: Puppet tutorial (and talk)

2009-10-23 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Arundel wrote: > On 23 Oct 2009, at 21:55, James Turnbull > wrote: > >> But you can't connect a client to the master without signing a >> certificate or turning autosign on. > > Hmm, maybe I made a mistake. I thought you didn't have to do th