Re: [Puppet Users] Bootstrap

2010-07-30 Thread Ohad Levy
If you need to save some time, have a look at theforeman.org - which should takes care for most of the work for you. Ohad On Fri, Jul 30, 2010 at 12:19 PM, Daniel Pittman dan...@rimspace.netwrote: parag(PK) myselfpk...@gmail.com writes: Can it be possible to boot up a bare metal client ,by

[Puppet Users] Re: 0.25.4 caching problem with custom function

2010-07-30 Thread Monachus
I don't have much in the way of suggestions, but I ran into a lot of problems recently when I tried to have a docroot sitting on NFS. No matter what I did I always ran into weird problems just like this. It sort of worked but definitely not something I could use in production... We've been

Re: [Puppet Users] Reconciling resource defaults, dynamic scope, and the singleton nature of classes

2010-07-30 Thread David Schmitt
On 7/29/2010 8:07 PM, R.I.Pienaar wrote: - Jeff McCunej...@puppetlabs.com wrote: Perhaps it might be useful to set resource defaults only for the local scope, and not for any classes which get included into this scope. How do you feel about this change to the language? I've thought

Re: [Puppet Users] exec not finding shell builtins/functions?

2010-07-30 Thread David Schmitt
+1 On 7/30/2010 6:18 AM, Daniel Pittman wrote: James Turnbullja...@puppetlabs.com writes: Richard Crowley wrote: On Thu, Jul 29, 2010 at 3:23 PM, Greg Grafgreg.g...@rackspace.com wrote: [...] I saw the same thing happen with a few for-loops and had to wrap them up in /bin/sh -c '...'

[Puppet Users] Re: Multiple repositories under one file

2010-07-30 Thread CraftyTech
So it looks like it's a bug... Apparently, you can only specify one repo per file via Yumrepo definition... http://projects.puppetlabs.com/issues/2062 It looks like it was so long ago.. I'm surprised that no one has come up with a work around yet. On Jul 29, 3:15 pm, CraftyTech

[Puppet Users] Re: Multiple repositories under one file

2010-07-30 Thread Thomas Bellman
On 2010-07-30 13:59, CraftyTech wrote: So it looks like it's a bug... Apparently, you can only specify one repo per file via Yumrepo definition... http://projects.puppetlabs.com/issues/2062 It looks like it was so long ago.. I'm surprised that no one has come up with a work around yet.

[Puppet Users] Re: Struggling with syntax

2010-07-30 Thread ScubaDude
Thanks for the responses! I'll try some of these out and post what I end up with. devzero, have you looked at how completely different the requirements are for 32bit and 64bit in audit.rules? Using an erb would be a nightmare! -- You received this message because you are subscribed to the

Re: [Puppet Users] exec not finding shell builtins/functions?

2010-07-30 Thread Alan Barrett
On Fri, 30 Jul 2010, Daniel Pittman wrote: Eg, this: exec { foo: command = ['/bin/ls', '|', 'foo'] } will pass '|' 'foo' to the ls command, compared to: exec { foo: command = /bin/ls | foo } ...which passes it to the default system shell. +1 [I added a missing comma above.]

[Puppet Users] Re: Struggling with syntax

2010-07-30 Thread ScubaDude
After a brief deliberation, it was actually a toss up between Andrew Forgue and Erinn Loony-Trigss's suggestions. I opted for Andrew's solution as in this case it seemed the neatest, although it was a very close thing. I'm sure that using an architecture directory would be the more elegant

Re: [Puppet Users] exec not finding shell builtins/functions?

2010-07-30 Thread Thomas Bellman
On 2010-07-30 06:18, Daniel Pittman wrote: If this is a voting matter, let me put in a vote for passing a simple string to the shell, and passing an array direct to exec, which is consistent with the use of 'system' style commands in a whole bunch of sysadmin scripting languages. Eg, this:

Re: [Puppet Users] exec not finding shell builtins/functions?

2010-07-30 Thread Joe McDonagh
On 07/30/2010 12:18 AM, Daniel Pittman wrote: James Turnbullja...@puppetlabs.com writes: Richard Crowley wrote: On Thu, Jul 29, 2010 at 3:23 PM, Greg Grafgreg.g...@rackspace.com wrote: [...] I saw the same thing happen with a few for-loops and had to wrap them up in

[Puppet Users] Cannot save facts to the code store

2010-07-30 Thread Gary Larizza
Hey All, I've got a puppetmaster running .25.4 and tried to update it to .25.5 today. When I do that, I get a message whenever a client tries to make a puppet run: err: Could not retrieve catalog from remote server: Error 400 on SERVER: You cannot save facts to the code store; it is only used

[Puppet Users] Re: Multiple repositories under one file

2010-07-30 Thread CraftyTech
Gotcha... and I may also not mind creating multiple files under the repo directory, but how do I disable the default repos that come with CentOS? Thanks, On Jul 30, 8:14 am, Thomas Bellman bell...@nsc.liu.se wrote: On 2010-07-30 13:59, CraftyTech wrote: So it looks like it's a bug...

[Puppet Users] Puppet dashboard and environments

2010-07-30 Thread Ben Tullis
Hi puppet users, We've got a puppet (0.24.8) implementation with two environments, called production and testing. We've also got a Puppet Dashboard (1.0) instance up and running, which is receiving and displaying reports from hosts in both of the environments. We would like to start using the

[Puppet Users] Re: Newbie question - package installation

2010-07-30 Thread quicksilver03
I'm using 0.25.5 and I do it in pretty much the same way: file { oratoolkit_rpm: require = [ Group[oinstall], Group[dba], User[oracle], ], path = /home/admin/install/oratoolkit-1.0.2.1.4-1.noarch.rpm, source =

[Puppet Users] Dashboard external node tool - defaults

2010-07-30 Thread Ben Tullis
Hello, I have a query about the use of the Puppet Dashboard as an external node classification tool. How do I set a default classes for all nodes? Previously, we had the following in nodes.pp node default { include ourbaseclass } Now we are trying to move towards having the

Re: [Puppet Users] exec not finding shell builtins/functions?

2010-07-30 Thread Gustavo Soares
+1 On Fri, Jul 30, 2010 at 10:07 AM, Joe McDonagh joseph.e.mcdon...@gmail.comwrote: On 07/30/2010 12:18 AM, Daniel Pittman wrote: James Turnbullja...@puppetlabs.com writes: Richard Crowley wrote: On Thu, Jul 29, 2010 at 3:23 PM, Greg Grafgreg.g...@rackspace.com wrote: [...] I

Re: [Puppet Users] Puppet dashboard and environments

2010-07-30 Thread Rein Henrichs
Excerpts from Ben Tullis's message of Fri Jul 30 04:29:46 -0700 2010: Why doesn't the dashboard understand which environment applies to the host, and return that in the yaml output? Is this something that is better handled another way, or is it on the roadmap for the puppet dashboard? Hi

Re: [Puppet Users] exec not finding shell builtins/functions?

2010-07-30 Thread James Turnbull
Daniel Any chance you could throw your solution on the ticket and I'll start a discussion about it internally. Thanks James -- 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

[Puppet Users] Re: Dashboard external node tool - defaults

2010-07-30 Thread Ben Tullis
Thanks Rein. I'll keep an eye on the progress. Kind regards, Ben On Jul 30, 4:28 pm, Rein Henrichs r...@reductivelabs.com wrote: Excerpts from Ben Tullis's message of Fri Jul 30 06:49:22 -0700 2010: How do I set a default classes for all nodes? Hi Ben, Dashboard doesn't currently have

[Puppet Users] Wrong version in SPEC file

2010-07-30 Thread Douglas Garstang
I just downloaded puppet 2.6.0 from the web site, and the redhat spec file has the version number as 0.25.5 So, what version of puppet have I really got here? Doug -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send

[Puppet Users] Re: Wrong version in SPEC file

2010-07-30 Thread Douglas Garstang
On Fri, Jul 30, 2010 at 9:28 AM, Douglas Garstang doug.garst...@gmail.com wrote: I just downloaded puppet 2.6.0 from the web site, and the redhat spec file has the version number as 0.25.5 So, what version of puppet have I really got here? Doug Actually, I'm also confused as to what

[Puppet Users] Re: Wrong version in SPEC file

2010-07-30 Thread Douglas Garstang
On Fri, Jul 30, 2010 at 9:30 AM, Douglas Garstang doug.garst...@gmail.com wrote: On Fri, Jul 30, 2010 at 9:28 AM, Douglas Garstang doug.garst...@gmail.com wrote: I just downloaded puppet 2.6.0 from the web site, and the redhat spec file has the version number as 0.25.5 So, what version

Re: [Puppet Users] Re: Wrong version in SPEC file

2010-07-30 Thread James Turnbull
Douglas Garstang wrote: On Fri, Jul 30, 2010 at 9:28 AM, Douglas Garstang doug.garst...@gmail.com wrote: I just downloaded puppet 2.6.0 from the web site, and the redhat spec file has the version number as 0.25.5 So, what version of puppet have I really got here? Doug Actually, I'm

[Puppet Users] Re: Newbie question - package installation

2010-07-30 Thread Rustler
I wasn't clear enough in describing the problem - What I'm trying to achieve is that if the package is installed, don't execute the file statement and download the rpm. If I leave the file in /tmp, it does not download again, if I delete the file and the package is installed, it still downloads

Re: [Puppet Users] Re: Wrong version in SPEC file

2010-07-30 Thread James Turnbull
Douglas Garstang wrote: The spec file for for (whatever version this actually is), doesn't cleanly build an RPM either. + /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/puppet-2.6.0 find: debug: No such file or directory + /usr/lib/rpm/redhat/brp-compress +

[Puppet Users] IP based node sections instead of hostname based?

2010-07-30 Thread Yushu Yao
Hi experts, Is there a way to specify in the nodes.pp sections with the ip address of the client? Currently I only saw instructions to use wildcarded hostnames. Thanks a lot -Yushu +-+ | Yushu Yao | Ph:1-510-486-4690 | | Lawrence Berkeley

[Puppet Users] Bizarre Stuff in Puppet 2.6.0

2010-07-30 Thread Douglas Garstang
Is it just me, or are others having all sorts of weird experiences with puppet 2.6.0? Specifically with parameterized classes I just had a situation where I restarted the client, got an error, restarted the client again, and the error went away. Then, I intentionally put an error in the

Re: [Puppet Users] Bizarre Stuff in Puppet 2.6.0

2010-07-30 Thread Joe McDonagh
On 07/30/2010 02:43 PM, Douglas Garstang wrote: Is it just me, or are others having all sorts of weird experiences with puppet 2.6.0? Specifically with parameterized classes I just had a situation where I restarted the client, got an error, restarted the client again, and the error went

[Puppet Users] Status of Docs: Style Guide

2010-07-30 Thread Ding Deng
Hi, Is Docs: Style Guide[1] officially recommended? Styles are inconsistent across the documentation site, so either the guide or other docs have to be fixed. [1] http://docs.puppetlabs.com/guides/style.html -- You received this message because you are subscribed to the Google Groups Puppet

Re: [Puppet Users] Setting Augeas values using an array

2010-07-30 Thread Doug Warner
On 07/29/2010 04:49 PM, Doug Warner wrote: I have a resource I'd like to manage via augeas (/etc/conf.d/net; it's a bash variables file) but Im having problems figuring out how to set the values so that all of the values in the array go in. I would like it to look like this: # cat

Re: [Puppet Users] Re: Multiple repositories under one file

2010-07-30 Thread Todd Zullinger
CraftyTech wrote: Gotcha... and I may also not mind creating multiple files under the repo directory, but how do I disable the default repos that come with CentOS? yumrepo { 'base': enabled = 0 } You can use 'enabled = absent' to remove the repo definition from the file entirely. -- Todd

Re: [Puppet Users] Re: Wrong version in SPEC file

2010-07-30 Thread Todd Zullinger
Douglas Garstang wrote: The spec file for for (whatever version this actually is), doesn't cleanly build an RPM either. + /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/puppet-2.6.0 find: debug: No such file or directory + /usr/lib/rpm/redhat/brp-compress +

[Puppet Users] Re: Puppet dashboard and environments

2010-07-30 Thread Ashay
You can use a wrapper for the external nodes script, that will intercept the YAMl from Dashboard and attach an environment to the YAML. You can put logic in there that says: if hostname =~ xyz, then environment = production (Or whatever criteria you want, instead of hostname) Foreman can do this

[Puppet Users] parameterized class, external nodes?

2010-07-30 Thread Alan Sparks
How do you (if you can) represent a parameterized class reference in an external node YAML description (exec terminus)? -Alan -- 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

Re: [Puppet Users] Status of Docs: Style Guide

2010-07-30 Thread Jeff McCune
On Fri, Jul 30, 2010 at 10:04 AM, Ding Deng ding.d...@gmail.com wrote: Hi, Is Docs: Style Guide[1] officially recommended? Styles are inconsistent across the documentation site, so either the guide or other docs have to be fixed. I personally recommend the Style Guide since I wrote a decent

Re: [Puppet Users] parameterized class, external nodes?

2010-07-30 Thread Jeff McCune
On Fri, Jul 30, 2010 at 5:01 PM, Alan Sparks aspa...@doublesparks.net wrote: How do you (if you can) represent a parameterized class reference in an external node YAML description (exec terminus)? -Alan You can't at the moment, unfortunately. If you have any thoughts about what this API

Re: [Puppet Users] IP based node sections instead of hostname based?

2010-07-30 Thread Jeff McCune
On Fri, Jul 30, 2010 at 10:35 AM, Yushu Yao yao.yu...@gmail.com wrote: Hi experts, Is there a way to specify in the nodes.pp sections with the ip address of the client? Currently I only saw instructions to use wildcarded hostnames. Thanks a lot You can configure [1] the master to use

[Puppet Users] ANNOUNCE: Puppet Dashboard 1.0.3 released

2010-07-30 Thread James Turnbull
And we're back fast and furious with another Dashboard release ... 1.0.3 ... this one so hot we skipped 1.0.2 altogether. The 1.0.3 release is another maintenance release that fixes bugs and issues with the 1.0.1 release. We're planning a 1.1 release in the near future that will add additional

Re: [Puppet Users] Bootstrap

2010-07-30 Thread Patrick Mohr
Do you want to run it off the server or install it on the client? What OS? On Jul 29, 2010, at 9:02 PM, parag(PK) wrote: Can it be possible to boot up a bare metal client ,by downloding the whole OS from server .when the client is powered on . -- You received this message because

Re: [Puppet Users] Re: Newbie question - package installation

2010-07-30 Thread Patrick Mohr
On Jul 30, 2010, at 2:53 AM, quicksilver03 wrote: Try adding an ensure = present to your File resource and see if it avoids downloading the RPM file over and over again. I'm almost sure the problem is he's putting the rpm in /tmp which is nuked by the OS on reboot. One of my solutions was

Re: [Puppet Users] Parameterised Classes in 2.6

2010-07-30 Thread Jeff McCune
On Wed, Jul 28, 2010 at 4:13 PM, Douglas Garstang doug.garst...@gmail.com wrote: Has anyone gotten parameterised classes to work in puppet 2.6 yet? No luck for me... Seems to be totally broken but I haven't had a chance to file a bug against it yet. Doug So, I've been playing with this