[Puppet Users] Re: Some high-level pre-install questions

2008-12-16 Thread Adam Jacob
On Dec 16, 2008, at 4:12 PM, Eric Gerlach wrote: >> >> You can use Stored Configs, which will store Puppet Types in a MySQL >> database, > > To narrow my question, then: What syntax would one use to access > facts from > Node A in a template being instantiated by Node B? (Assuming one > has

[Puppet Users] Re: Puppet version 0.24.7 released!

2008-12-16 Thread David Lutterkort
On Tue, 2008-12-16 at 12:38 -0800, Jeff Leggett wrote: > Also, I am curious, it seems to me (my opinion only of course) that > augeas would be a provider for types built manage config files? One > of the things I REALLY like about puppet's language is it's self > documenting to anyone with a mini

[Puppet Users] Package provider that depends on another package (PEAR)

2008-12-16 Thread Ben Beuchler
I've installed this PEAR package provider: http://www.mit.edu/~marthag/puppet/pear.rb It works quite well, but on a freshly installed system package prefetching fails if the "pear" tool is not yet installed. Is there some way to disable the prefetch if PEAR doesn't exist, only attempting to use

[Puppet Users] Re: Some high-level pre-install questions

2008-12-16 Thread Eric Gerlach
On Tue, Dec 16, 2008 at 10:36:03AM -0800, Adam Jacob wrote: > > On Dec 15, 2008, at 12:58 PM, Eric Gerlach wrote: > > I do have some questions, however, mostly of the status-checkup > > variety. > > For all of these, assume an implicit "and how can I help?", as I am a > > dev/admin, and I use R

[Puppet Users] Re: Using Augeas

2008-12-16 Thread David Lutterkort
On Tue, 2008-12-16 at 09:52 +0100, Thomas Bellman wrote: > 1. Is it possible to specify what lens to use for editing a > certain file? Can I for instance tell it to use the sshd lens > to edit an sshd config file in a non-standard place? Add the directory with your custom lens to the loa

[Puppet Users] Re: Puppet version 0.24.7 released!

2008-12-16 Thread Jeff Leggett
When will the TypeReference page auto update to show this and it's useage? Also, I am curious, it seems to me (my opinion only of course) that augeas would be a provider for types built manage config files? One of the things I REALLY like about puppet's language is it's self documenting to anyon

[Puppet Users] Accessing files in custom function relative to the current module

2008-12-16 Thread jos houtman
Hi list, Iam working on a module for ganglia that builds two config files. The first is an aggregated config file and contains entry's like this: group "clustername" node1 node2 group "clustertwo" node4 node5 The second file only contains the entry for the intented cluster, in th

[Puppet Users] Serve N files from a directory that may or may not exist

2008-12-16 Thread Jeff
Hi list, Here's my files directory in my apache module: files | +-> ted.haha.com bob.haha.com etc.haha.com I have a custom myexists function that returns boolean. I'd like to check for a vhosts directory underneath each of those $fqdn directories, i.e., if myexits("/var/pup

[Puppet Users] Re: Some high-level pre-install questions

2008-12-16 Thread Adam Jacob
On Dec 15, 2008, at 12:58 PM, Eric Gerlach wrote: > I do have some questions, however, mostly of the status-checkup > variety. > For all of these, assume an implicit "and how can I help?", as I am a > dev/admin, and I use Ruby for all my scripting already. > > 1) Is it possible, using stored con

[Puppet Users] Associative Arrays/Hash

2008-12-16 Thread henrymolina
Hi all, are there a way to define a associative array/Hash? example: $host = [{ :name => 'host1', :ip => '192.168.10.1' }, { :name => 'host2', :ip => '192.168.10.2' }] Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

[Puppet Users] Some high-level pre-install questions

2008-12-16 Thread Eric Gerlach
Hi all, I'm looking into getting some configuration management stuff running for my servers as I move roles into a new environment (yay for virtualization!). I've been looking into bcfg2 and puppet, and though I like the model of bcfg2 more, I'm leaning towards puppet for other reasons. I do ha

[Puppet Users] Associative Arrays/Hash

2008-12-16 Thread henrymolina
Hi All, Are there a way to use Associative Arrays/Hash variables? $var = [{:name => 'host1', :ip => '192.168.10.11' },{:name => 'host2', :ip => '192.168.10.12' }] Regards --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[Puppet Users] Re: Puppet version 0.24.7 released!

2008-12-16 Thread Nigel Kersten
Along these lines, there are a *lot* of Mac changes to puppet in this version that Jeff McCune and I did. For some indication try: ralsh mcx ralsh macauthorization ralsh group sudo ralsh user username Group records now support membership in OS X. User records now *ONLY* support hashed password

[Puppet Users] Re: Puppet version 0.24.7 released!

2008-12-16 Thread Nigel Kersten
Mac packages are up at: http://explanatorygap.net/puppetfacter/ For the paranoid amongst you, please note you can always build your own Mac pkgs from the facter/puppet source trees using the conf/osx/createpackage.sh script. --~--~-~--~~~---~--~~ You received thi

[Puppet Users] Re: site.pp > include execution order

2008-12-16 Thread Mike Renfro
On 12/16/2008 9:11 AM, Stefan Wiederoder wrote: > how can I make sure that puppet will execute my includes in > predictable manner? (to make sure the dependencies are satisfied) For resources that need to be done in a particular order, specify dependencies with the 'require' and/or 'before' me

[Puppet Users] Re: Puppet version 0.24.7 released!

2008-12-16 Thread Todd Zullinger
James Turnbull wrote: > I usually leave that to the packagers. We only include the spec > file as a convenience - we expect downstream to handle the fine > details. If you need it updated in the meantime please do it > manually. Indeed, I'm sure you have quite enough to do already James (and tha

[Puppet Users] site.pp > include execution order

2008-12-16 Thread Stefan Wiederoder
Hello puppet-users, I´ve setup a site.pp with only a default node - which has 15 to 20 includes. how can I make sure that puppet will execute my includes in predictable manner? (to make sure the dependencies are satisfied) for example, I´d first like to setup yum - then install a few needed pac

[Puppet Users] Provider development help

2008-12-16 Thread ccaum
Hello all. I'm developing a custom provider to help manage configuration files. The approach I'm taking allows me to easily treat lines as resources themselves by using markers in the file to show the start and end of a resource. I seem to be missing something since puppet does not execute the

[Puppet Users] Re: Using Augeas

2008-12-16 Thread Bryan Kearney
Thomas Bellman wrote: > I'm reading about Augeas to see what can be done with it, and > with the new 'augeas' resource type in 0.24.7. So far I have > only played using augtool, not the Puppet integration, but I > have a few questions: The type is basically a wrapper around augtool. So.. the ans

[Puppet Users] Re: Puppet version 0.24.7 released!

2008-12-16 Thread Vincent Louviaux
I have make the following change to compile the rpm Change the version and add the Group Vincent diff /tmp/puppet-0.24.7/conf/redhat/puppet.spec /tmp/puppet-0.24.7-vlv/conf/redhat/puppet.spec 5c5 < Version:0.24.6 --- > Version:0.24.7 11a12,13 > Group: System Environment/Base >

[Puppet Users] Re: Puppet version 0.24.7 released!

2008-12-16 Thread James Turnbull
Vincent Louviaux wrote: > Thanks ! > > is the spec file can be updated too ? I usually leave that to the packagers. We only include the spec file as a convenience - we expect downstream to handle the fine details. If you need it updated in the meantime please do it manually. Thanks James Turn

[Puppet Users] Re: Puppet version 0.24.7 released!

2008-12-16 Thread Vincent Louviaux
Thanks ! is the spec file can be updated too ? # head /tmp/puppet-0.24.7/conf/redhat/puppet.spec %{!?ruby_sitelibdir: %define ruby_sitelibdir %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')} %define confdir conf/redhat Name: puppet Version:*0.24.6* Release:1%

[Puppet Users] Using Augeas

2008-12-16 Thread Thomas Bellman
I'm reading about Augeas to see what can be done with it, and with the new 'augeas' resource type in 0.24.7. So far I have only played using augtool, not the Puppet integration, but I have a few questions: 1. Is it possible to specify what lens to use for editing a certain file? Can I for