[Puppet Users] exported resource question

2009-08-20 Thread Moty
Hi all, I'm working on some client/server manifest and I wonder : In the example below: class exporter { @@file { /var/lib/puppet/nodes/$fqdn: content = $ipaddress\n, tag = ip } } node export1.daysofwonder.com { include exporter } node export2.daysofwonder.com { include exporter

[Puppet Users] Referencing resources by alias

2009-08-20 Thread Michael Gliwinski
Hello everyone, I just encountered this and was wondering if this is expected? defined_test.pp: class foo { file { 'deftest': path = '/tmp/deftest.tmp', ensure = present, alias = 'aliastest' } $def_title = defined(File['deftest'])

[Puppet Users] appending to arrays - bug?

2009-08-20 Thread Matt
running 0.24.7 According to the language tutorial I should be able to do: $ssh_users = [ 'myself', 'someone' ] class test { $ssh_users += ['someone_else'] } I'm trying to append to an array within a class, so i'm doing: class test { $metrics = ['a','b'] $metrics += [''c] } With the

[Puppet Users] Re: Expanding templates into files for testing purposes

2009-08-20 Thread Trevor Vaughan
I usually just copy the erb, set the variables at the top and then run it. Not too elegant, but it works for testing. Trevor On Wed, Aug 19, 2009 at 14:41, Pete Emersonpemer...@gmail.com wrote: According to http://reductivelabs.com/trac/puppet/wiki/PuppetTemplating I can do this for

[Puppet Users] Check to see if a class is included

2009-08-20 Thread Matt
I looked at the language tutorial but couldn't see it anywhere. Is there a way to check if a class is included i.e. if class[myclass] { myvar = hello } Thanks, Matt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Puppet Users] Re: Puppet server recommendations

2009-08-20 Thread Larry Ludwig
On Aug 19, 2009, at 10:06 AM, cnjohnson wrote: I have deployed puppet on our test cluster -- 20 identically configured x86_64 and ppc64 compute nodes and their gateways. I now want to move to our production cluster with (say) 800 compute nodes and their gateways. My question is about the

[Puppet Users] Re: migating from 0.24.8 to 0.25.0rc1

2009-08-20 Thread Larry Ludwig
On Aug 19, 2009, at 3:42 PM, Gustavo Soares wrote: Hi all! I have migrated some machines from puppet 0.24.8 to 0.25.0rc1, mainly because of bug in 0.24.8 when using ssh_authorized_keys and I am getting the following messages when starting the client: Setting the :cacrl to 'false' is

[Puppet Users] Re: Check to see if a class is included

2009-08-20 Thread Matt
I saw that but I think that did something else. node mynode { include myclass, foo } node mynode2 { include foo } class foo { if defined(Class['myclass']) {myvar = hello}) } Will both mynode2 and mynode get the variable myvar? In my case I only want mynode too. If both do, then I

[Puppet Users] Re: Puppet server recommendations

2009-08-20 Thread Ohad Levy
On Thu, Aug 20, 2009 at 9:02 PM, Larry Ludwig la...@reductivelabs.comwrote: If the puppetmaster is x86_64 based, I would recommend 4+ GB based upon your node count and they way ruby scales on x86_64 arch. I install 32bit distributions on my 64bit hardware, as a single passenger/mongrel

[Puppet Users] Re: migating from 0.24.8 to 0.25.0rc1

2009-08-20 Thread Gustavo Soares
Larry, for now I haven't setup apache + passenger yet. I was running some tests in a lab environment first with the builtin webserver (I believe that it is Webrick, right?) and then I would setup passenger to increase sacalability. I must use passenger in 0.25.x? Gus On Thu, Aug 20, 2009 at

[Puppet Users] Re: Check to see if a class is included

2009-08-20 Thread Ohad Levy
On Fri, Aug 21, 2009 at 12:05 AM, Matt mattmora...@gmail.com wrote: I guess another way would be for me to start building custom facters of what a node is and then deploy the right files depending on the facter result. Anyone done similar? I always feel with puppet i'm missing something

[Puppet Users] Re: exported resource question

2009-08-20 Thread Brice Figureau
On Thu, 2009-08-20 at 15:06 +0200, Peter Meier wrote: Hi currently ... when removing class from node export1.daysofwonder.com the file describing this host ip will still remain on the collector machine. Is there any nice way to remove the file when the class is removed from the

The actual problem (was Re: [Puppet Users] List problems?)

2009-08-20 Thread Robin Lee Powell
I tried resending it and the same thing happened. I do need some help with this, though, so here it is quoted below. -Robin On Wed, Aug 19, 2009 at 10:14:30AM -0700, Robin Lee Powell wrote: Subject: Tidy not working debug: //Node[oh-www1.lojban.org]/jbovlaste/Tidy[/var/backups/jbovlaste]:

[Puppet Users] Re: Howto understand the error message Could not find class parent XXXXXXXX? howto link it?

2009-08-20 Thread Digant C Kasundra
- Eric2 e.lann...@gmail.com wrote: Hi, err: Could not retrieve catalog: Could not find class parent apache::package at /home/puppet/modules/apache/manifests/debian.pp:11 on node ns0.mysite.org vi /home/puppet/modules/apache/manifests/debian.pp ### debian class apache::debian

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

2009-08-20 Thread Digant C Kasundra
I sketched a schema describing the use of multiple environments and git submodules for Puppet development. It's available on the wiki both in both OpenOffice Draw format and PDF. http://reductivelabs.com/trac/puppet/attachment/wiki/PuppetVersionControl/puppetmaster-git-submodules.odg

[Puppet Users] Dealing with timestamps

2009-08-20 Thread Digant C Kasundra
Hello everyone, We're pondering moving to git for our version control system for Puppet manifests. However, since we have 4 puppetmasters, we're wondering how to deal with timestamps. Since git doesn't preserve the timestamps, and instead, sets the current timestamp to every file it

[Puppet Users] virtual users and groups

2009-08-20 Thread Rene
Hi Is this a good idea: In the users module: class users::db { @group { dba: gid= 200, ensure = present, } @user { oracle: ensure = present, uid = 200, gid = 200, comment = Oracle User, home= /home/oracle,

[Puppet Users] Re: Expanding templates into files for testing purposes

2009-08-20 Thread Pete Emerson
I'm unfortunately ruby ignorant, here's what I've tried: My file test.erb: { config : { datacenter:%= datacenter % } } I'll change that to populate the datacenter variable: $datacenter = 'hello' { config : { datacenter:%= datacenter %

[Puppet Users] Re: Dealing with timestamps

2009-08-20 Thread Nigel Kersten
On Thu, Aug 20, 2009 at 10:39 AM, Digant C Kasundradig...@stanford.edu wrote: Hello everyone, We're pondering moving to git for our version control system for Puppet manifests.  However, since we have 4 puppetmasters, we're wondering how to deal with timestamps.  Since git doesn't

[Puppet Users] Re: exported resource question

2009-08-20 Thread Moty
10x .. I plan to create manifests for various client/server services and it will be nice to add that feature for that . Moty On Thu, Aug 20, 2009 at 5:53 PM, Brice Figureau brice-pup...@daysofwonder.com wrote: On Thu, 2009-08-20 at 15:06 +0200, Peter Meier wrote: Hi currently ...

[Puppet Users] Re: migating from 0.24.8 to 0.25.0rc1

2009-08-20 Thread Gustavo Soares
thanks Pete.. I will use passenger for sure... I were beginning to think that the problem that I face when migrating from 0.24.8 to 0.25.0rc1 (which I had already rolled back) was somehow connected to Webrick.. but I guess not... Cheers On Thu, Aug 20, 2009 at 4:27 PM, Peter Meier

[Puppet Users] Re: Puppet server recommendations

2009-08-20 Thread Ohad Levy
On Fri, Aug 21, 2009 at 2:22 AM, Charles Johnson gm.johns...@gmail.comwrote: The size of the files we serve are, typically, tiny: sudoers, hosts, hosts.equiv, and eight or ten others. They do not change often, but when they do, they need to be synched across the cluster. Our big bug-a-boo is