Re: [Puppet Users] Puppet docs, defined types and requires.

2010-05-07 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/05/10 1:43 PM, Nigel Kersten wrote: > I don't know if it's just me, but I find this example horribly > confusing, and I'm wondering if it's just really out of date. Patches accepted... :) Regards James - -- Author of: * Pro Linux System Admin

[Puppet Users] Puppet docs, defined types and requires.

2010-05-07 Thread Nigel Kersten
I don't know if it's just me, but I find this example horribly confusing, and I'm wondering if it's just really out of date. http://docs.puppetlabs.com/guides/language_tutorial.html#definitions define svn_repo($path) { exec {"create_repo_${name}": command => "/usr/bin/svnadmin create $path/$title

[Puppet Users] Re: ldap node attributes containing dash ( - )

2010-05-07 Thread donavan
On May 7, 1:16 pm, "Jesús M. Navarro" wrote: > Won't use the ${variable-name} version do the trick? > Cheers. I tried that initially, but it wouldn't pass --parseonly (.24.8) so I didn't commit it. Let me check manually.. Yeah, parseonly and actual catalog compilation both fail: err: Could not p

Re: [Puppet Users] Re: ldap node attributes containing dash ( - )

2010-05-07 Thread Jesús M. Navarro
On Friday 07 May 2010 19:54:18 donavan wrote: > On May 6, 4:31 pm, donavan wrote: > > Am I missing some clever way to use variables containing a dash in the > > name? > > > > We're using LDAP nodes I may have a node like this example: > > .. > > > And I'd like to access 'console-port' as a variabl

[Puppet Users] Re: ldap node attributes containing dash ( - )

2010-05-07 Thread donavan
On May 6, 4:31 pm, donavan wrote: > Am I missing some clever way to use variables containing a dash in the > name? > > We're using LDAP nodes I may have a node like this example: .. > And I'd like to access 'console-port' as a variable in a manifest. Reading over I realize this may not be clear t

Re: [Puppet Users] temporarily editing sudoers

2010-05-07 Thread Adam Crews
On Fri, May 7, 2010 at 6:45 AM, Pieter Baele wrote: > We use a script to edit /etc/sudoers temporarily to provide sudo access to > clients for a limited time. > A cron job checks for a var and after a defined time the line is deleted. > > But this way, /etc/sudoers can't be managed by Puppet, beca

[Puppet Users] Re: ldap node attributes containing dash ( - )

2010-05-07 Thread donavan
On May 6, 5:46 pm, Trevor Vaughan wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I don't think that ruby itself allows variables with dashes in the name > since it will probably interpret them as minus signs and try to > interpret the variables around the symbol. Right. Which is why

Re: [Puppet Users] temporarily editing sudoers

2010-05-07 Thread John Philips
But this way, /etc/sudoers can't be managed by Puppet, because It will be overwritten by puppet. You could have your script set the immutable attribute on the sudoers file.  Then puppet won't be able to change it. chattr +i /etc/sudoers When you want puppet to start managing the file again, re

[Puppet Users] Re: puppetrun with parallel option

2010-05-07 Thread Ken
Looks like there is an option for it ... looking at the source. # parallel:: # How parallel to make the connections. Parallelization is provided by forking # for each client to which to connect. The default is 1, meaning serial execution. So: puppetrun --parallel 1 (other options)

[Puppet Users] Integrating zenoss with Puppet

2010-05-07 Thread CraftyTech
Hello All, Sorry is this question has already been answered, but is there a step by step instruction or tutorial for using the zenoss plugin for puppet? So far, they've made the code available along with a very ambiguous readme file. I already, 1) placed the whole folder structure for the p

[Puppet Users] Re: temporarily editing sudoers

2010-05-07 Thread John Lyman
By using the schedule metaparameter, you could have puppet only check sudoers outside of the time period when you grant temporary access. This might not be feasible if the time period is constantly changing though. -- You received this message because you are subscribed to the Google Groups "Pup

[Puppet Users] temporarily editing sudoers

2010-05-07 Thread Pieter Baele
We use a script to edit /etc/sudoers temporarily to provide sudo access to clients for a limited time. A cron job checks for a var and after a defined time the line is deleted. But this way, /etc/sudoers can't be managed by Puppet, because It will be overwritten by puppet. What should I use as a

[Puppet Users] Re: Breaking down variables (and setting new ones) from within a manifest using regular expressions

2010-05-07 Thread John Lyman
You probably want to use the regsubst function: http://docs.puppetlabs.com/references/stable/function.html#regsubst -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscrib

[Puppet Users] Re: variables in variable and class names

2010-05-07 Thread John Lyman
Does class hostconfig::mynewserver::settings contain just variables? You could do something like this (from http://groups.google.com/group/puppet-users/browse_thread/thread/5ba9d8b1ed4d4d1a/1214d616ef5caec0)... === In my nodes.pp, I define certain "default" variables at the top of the manifest, ou

[Puppet Users] puppetrun with parallel option

2010-05-07 Thread Abhishek
Hi, Can anyone tell me how can i run puppetrun parallely for updating multiple machines at a time? Currently I m using puppetrun like this. I did not found any option to define parallel while puppetrun --help mention parallel parameter. puppetrun --host host1 --host host2 --host host2 --debug -

[Puppet Users] Breaking down variables (and setting new ones) from within a manifest using regular expressions

2010-05-07 Thread Ryan
Hello all! I'm hoping for your help on what I admit is a weird and uncommon problem. I'm working on a module that (among other things) creates a series of home folders. The format of the home folders looks something like this /filesys/home/#/letter/userid where # is a number between 0-15, letter

[Puppet Users] Re: Introducing Scaffold

2010-05-07 Thread Ken
Groovy dude. I'll be watching (cos I like to watch). On May 6, 11:20 pm, James Turnbull wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 7/05/10 2:30 AM, Ken wrote: > > > Nice one James - we (people I work with) had discussed a tool just > > like this on the weekend - so your timin

[Puppet Users] variables in variable and class names

2010-05-07 Thread zuber
Hi, this may sound a bit strange, so let me tell you first what the problem is that i try to solve and maybe there is already a better solution. Some background: We use 3 different environments on our puppetmaster and we implemented something like a release management as a workflow for this. Cause

Re: [Puppet Users] Re: mcollective scalability

2010-05-07 Thread Matt Wallace
On Thu, 2010-05-06 at 20:29 -0400, Eric Shamow wrote: > Matt, > > Really great posts -- you've inspired me to take a crack at MCollective. Thanks Eric, Let us know how you get on! M. > > -Eric > > > On Thu, May 6, 2010 at 4:11 AM, Matt Wallace > wrote: > > On Wed, 2010-05-05 at 23:31 -0700

Re: [Puppet Users] custom facts run three times?

2010-05-07 Thread Dan Carley
On 6 May 2010 18:46, Michael DeHaan wrote: > Yeah, that's not so efficient. > > Please file a bug on this one! Duly filed. http://projects.puppetlabs.com/issues/3741 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, sen

Re: [Puppet Users] custom facts run three times?

2010-05-07 Thread Daniel Pittman
Dan Carley writes: > On 6 May 2010 17:05, Joe McDonagh wrote: > >> I have this similar issue- I notice the "loading facts in " message >> twice when running puppet. > > Likewise - printed twice. It's been low on my priority list because it > doesn't seem to have any negative effect, but since