[Puppet Users] Iterating Arrays using loop

2010-02-18 Thread Haris Farooque
Dear members, Is it possible to iterate arrays ? Loops will definitely solve this, but i don't know how to do it in puppet. waiting for suggestions and comments Thanks -- M. Haris -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to th

Re: [Puppet Users] Iterating Arrays using loop

2010-02-18 Thread Frederik Wagner
Hi Haris, On Thu, Feb 18, 2010 at 12:33 PM, Haris Farooque wrote: > Dear members, > Is it possible to iterate arrays ? Loops will definitely solve this, but i > don't know how to do it in puppet. > waiting for suggestions and comments unluckily there is no direct loop to do this, puppets array (

Re: [Puppet Users] Iterating Arrays using loop

2010-02-18 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 18/02/10 11:14 PM, Frederik Wagner wrote: > unluckily there is no direct loop to do this, puppets array (and hash) > handling is rather rudimentary. A hash construct will probably be present in the next major release of Puppet: Rowlf. Regards Jam

Re: [Puppet Users] Iterating Arrays using loop

2010-02-18 Thread Peter Meier
On 18/02/10 11:14 PM, Frederik Wagner wrote: unluckily there is no direct loop to do this, puppets array (and hash) handling is rather rudimentary. A hash construct will probably be present in the next major release of Puppet: Rowlf. besides that, it might be also worth to think about what yo

Re: [Puppet Users] Iterating Arrays using loop

2010-02-18 Thread Frederik Wagner
On Thu, Feb 18, 2010 at 1:29 PM, Peter Meier wrote: >> On 18/02/10 11:14 PM, Frederik Wagner wrote: >>> >>> unluckily there is no direct loop to do this, puppets array (and hash) >>> handling is rather rudimentary. >> >> A hash construct will probably be present in the next major release >> of Pup

[Puppet Users] Augeas pam.d argument checking

2010-02-18 Thread Ed
I'm trying to change the password complexity requirements in pam.d/system-auth using augeas. I can append the values (lcredit=-1, ucredit=-1, etc) onto the correct place, but if another value is already present (i.e. lcredit=-2), the onlyif match statement doesn't seem to support checking regular e

[Puppet Users] Re: Using templates from a custom type

2010-02-18 Thread jcbollinger
On Feb 17, 10:07 pm, Grant McLean wrote: > It would appear that if I refer to the template from a .pp file I would > do something like:   > >   content => template("eec-mike/mikeapache.erb") Yes. > and somehow Puppet would work out that it needed to sync the > mikeapache.erb file from the eec-

[Puppet Users] Re: Using templates from a custom type

2010-02-18 Thread jcbollinger
On Feb 17, 10:07 pm, Grant McLean wrote: > I'm playing around with writing a custom resource type for managing my > Apache configs and I would like to use templates. Are you sure you need a custom resource type? It might be easier and more maintainable to use a Puppet define wrapped around one

[Puppet Users] Re: file resource question

2010-02-18 Thread jcbollinger
On Feb 17, 11:25 am, Roy Nielsen wrote: > It's not mentioned in the online documentation, but will the file > resource parameter "replace" work with > >    content => template("mytemplate.erb"), > > I'd like to be able to say "if the file is already there, don't modify > it", with the > >    rep

Re: [Puppet Users] Rebuilding machines from foreman

2010-02-18 Thread Ohad Levy
Hi, Foreman needs to be able to execute puppetca, see http://theforeman.org/repositories/entry/foreman/extras/puppet/foreman/manifests/puppetca.pp cheers, Ohad On Thu, Feb 18, 2010 at 9:21 AM, LOhit wrote: > Hello, > > I ran into this problem today, I am trying to implement "One click > instal

[Puppet Users] Re: Augeas pam.d argument checking

2010-02-18 Thread Ed
So based on a posting from last year, I changed the definition to just remove and rebuild the line in pam.d/system-auth based on the variables passed in. Although this isn't the elegant solution that I was searching for (breaking it up to different functions and using "onlyif"), it does get the job

Re: [Puppet Users] Re: Using templates from a custom type

2010-02-18 Thread Peter Meier
On Feb 17, 10:07 pm, Grant McLean wrote: I'm playing around with writing a custom resource type for managing my Apache configs and I would like to use templates. Are you sure you need a custom resource type? It might be easier and more maintainable to use a Puppet define wrapped around one or

[Puppet Users] Syntax error in ssh::auth module?

2010-02-18 Thread Michael Gliwinski
Hello Andrew, I'm getting a syntax error when trying to use the ssh::auth module ("Syntax error at '{'; expected '}' at .../auth.pp:111"). It looks like it's something to do with parameters after a collection, i.e. line 111 is: if $ensure { Ssh_auth_key_client <| title == $title |> { ensure =>

[Puppet Users] capacity planning with puppet.

2010-02-18 Thread Nigel Kersten
+puppet-users, puppet-dev to catch the developer-y folks too. How, if at all, do any of you do capacity planning with Puppet? I've worked out a snippet of ruby code that will take the cached fact data from the servers, and use that to issue a bunch of catalog retrieval requests. I ended up modif

[Puppet Users] Re: [Puppet-dev] capacity planning with puppet.

2010-02-18 Thread Brice Figureau
On Thu, 2010-02-18 at 07:52 -0800, Nigel Kersten wrote: > +puppet-users, puppet-dev to catch the developer-y folks too. > > > How, if at all, do any of you do capacity planning with Puppet? > > I've worked out a snippet of ruby code that will take the cached fact > data from the servers, and use

Re: [Puppet Users] Syntax error in ssh::auth module?

2010-02-18 Thread Andrew Schulman
> Hello Andrew, > > I'm getting a syntax error when trying to use the ssh::auth module ("Syntax > error at '{'; expected '}' at .../auth.pp:111"). It looks like it's > something > to do with parameters after a collection, i.e. line 111 is: > > if $ensure { Ssh_auth_key_client <| title == $tit

[Puppet Users] capacity planning with puppet.

2010-02-18 Thread R P Herrold
On Thu, 18 Feb 2010, Nigel Kersten wrote: How, if at all, do any of you do capacity planning with Puppet? somewhat orthogonal to the question, but after reading this piece: http://www.usenix.org/publications/login/2010-02/pdfs/bjorgeengen.pdf at http://www.usenix.org/publicat

Re: [Puppet Users] capacity planning with puppet.

2010-02-18 Thread Nigel Kersten
On Thu, Feb 18, 2010 at 8:59 AM, R P Herrold wrote: > On Thu, 18 Feb 2010, Nigel Kersten wrote: > >> How, if at all, do any of you do capacity planning with Puppet? > > somewhat orthogonal to the question, but after reading this piece: >        http://www.usenix.org/publications/login/2010-02/pdfs

Re: [Puppet Users] Syntax error in ssh::auth module?

2010-02-18 Thread Michael Gliwinski
On Thursday 18 Feb 2010 16:51:38 Andrew Schulman wrote: > > Hello Andrew, > > > > I'm getting a syntax error when trying to use the ssh::auth module > > ("Syntax error at '{'; expected '}' at .../auth.pp:111"). It looks like > > it's something to do with parameters after a collection, i.e. line 11

Re: [Puppet Users] capacity planning with puppet.

2010-02-18 Thread Trevor Vaughan
This is true and, unfortunately, I couldn't get to the presentation either. It's pretty well known that, given any two similar systems, the one written in a lower level language will probably always win in terms of speed and resource usage and lose in terms of community extensibility. It all come

Re: [Puppet Users] Rebuilding machines from foreman

2010-02-18 Thread Ohad Levy
hmm.. another option, do you use a non-standard directory for puppet binaries ? Ohad On Thu, Feb 18, 2010 at 4:21 PM, Ohad Levy wrote: > Hi, > > Foreman needs to be able to execute puppetca, see > http://theforeman.org/repositories/entry/foreman/extras/puppet/foreman/manifests/puppetca.pp > > c

[Puppet Users] capacity planning with puppet.

2010-02-18 Thread Steven VanDevender
R P Herrold writes: > On Thu, 18 Feb 2010, Nigel Kersten wrote: > > > How, if at all, do any of you do capacity planning with Puppet? > > somewhat orthogonal to the question, but after reading this > piece: > http://www.usenix.org/publications/login/2010-02/pdfs/bjorgeengen.pdf > at

Re: [Puppet Users] Re: Using templates from a custom type

2010-02-18 Thread Grant McLean
On Thu, 2010-02-18 at 05:53 -0800, jcbollinger wrote: > On Feb 17, 10:07 pm, Grant McLean wrote: > > It would appear that if I refer to the template from a .pp file I would > > do something like: > > > > content => template("eec-mike/mikeapache.erb") > > Yes. > > > and somehow Puppet would w

Re: [Puppet Users] capacity planning with puppet.

2010-02-18 Thread Nigel Kersten
On Thu, Feb 18, 2010 at 9:12 AM, Trevor Vaughan wrote: > This is true and, unfortunately, I couldn't get to the presentation either. I got to read a copy over the shoulder of someone here with a login. I thought it was pretty skimpy really, and didn't really adequately cover the advantages of ei

Re: [Puppet Users] Re: Using templates from a custom type

2010-02-18 Thread Grant McLean
On Thu, 2010-02-18 at 15:36 +0100, Peter Meier wrote: > On Thu, 2010-02-18 at 05:59 -0800, jcbollinger wrote: > >On Feb 17, 10:07 pm, Grant McLean wrote: > > > I'm playing around with writing a custom resource type for managing my > > > Apache configs and I would like to use templates. > > > > Ar

Re: [Puppet Users] Augeas pam.d argument checking

2010-02-18 Thread Joe McDonagh
Ed wrote: I'm trying to change the password complexity requirements in pam.d/system-auth using augeas. I can append the values (lcredit=-1, ucredit=-1, etc) onto the correct place, but if another value is already present (i.e. lcredit=-2), the onlyif match statement doesn't seem to support checki

[Puppet Users] Strange messages on 0.25.4.

2010-02-18 Thread Nobuchika Tanaka
Hi all. I am testing 0.25.4 to upgrade from 0.23.2. In testing, I found two strange messages on 0.25.4 which I have never found on 0.24.3. So could you tell me what these messages mean and how to fix them. [Environment] Puppetmasterd -version : 0.25.4 -OS : Solaris10 10/09 Puppetd -versi

Re: [Puppet Users] Rebuilding machines from foreman

2010-02-18 Thread LOhit
Hi, Actually, I have built custom RPMs of Puppet & Facter tailored to meet the requirements of my environment. So, when I install these RPMs, the binaries go into "/usr/sbin" including "puppetca" And Pupept & Foreman are started by root. Initially, I too thought that foreman was not able to find

Re: [Puppet Users] capacity planning with puppet.

2010-02-18 Thread Carl Caum
Any way you can share that PDF? The main page suggests it's supposed to be public anyway so I'm assuming the required login is a mistake. When you looked at deploying your puppet modules to the clients and getting rid of the puppetmaster model, did you consider only syncing only the modules the

[Puppet Users] Re: Exec doesn't work with Ubuntu Server 10.04 (Lucid Lynx) 64bit

2010-02-18 Thread kai.steverding
Well, looks like i stired up a hornets nest with this bug. Thank you for the help. We will see, what the ruby core people can do. Kai On 17 Feb., 00:11, Nigel Kersten wrote: > On Tue, Feb 16, 2010 at 12:23 PM, Nigel Kersten wrote: > > On Sat, Feb 13, 2010 at 6:13 PM, Joshua Anderson > > wrote: