[Puppet Users] Re: puppetmasterd with passenger and REE?

2009-01-12 Thread Ohad Levy
found it: (from http://www.modrails.com/documentation/Usersguide.html#reducing_memory_usage) Is it possible to reduce memory consumption of your Rails applications by 33% on average, by using Ruby Enterprise Edition. Please visit the website for details. Not

[Puppet Users] Re: puppetmasterd with passenger and REE?

2009-01-12 Thread Ohad Levy
Hi, I think that there are two points here, One is passenger with standard ruby, and the other with REE. As far as Passenger goes, I would recommend it to people who start fresh (e.g. migrating from webrick). for REE - memory usage, I thought that passenger REE(GC) optimizations are not releva

[Puppet Users] Re: facter variable not being used

2009-01-12 Thread chakkerz
PS: I've updated http://reductivelabs.com/trac/puppet/wiki/AddingFacts to reflect how you can find out what values the client uses cheers chakkerz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group.

[Puppet Users] Re: facter variable not being used

2009-01-12 Thread chakkerz
Hello again My yaml file for puppetslave contains the fact: [r...@puppetbeta manifests]# grep deploysudoers /var/lib/puppet/yaml/ facts/puppetslave.its.uq.edu.au.yaml deploysudoers: "false" which i note is a string (quotes), not a true / false / boolean ... so i've fixed my fact by changing my

[Puppet Users] Re: puppetmasterd with passenger and REE?

2009-01-12 Thread Thom May
On Mon, Jan 12, 2009 at 16:31, Luke Kanies wrote: > > Hi all, > > I know people have used Puppet with passenger[1], but has anyone tried > it with Ruby Enterprise Edition[2]? > > The producers of REE claim that the two in combination can cut Rails > memory usage by 33%, and I'm quite curious if i

[Puppet Users] Re: Issue with a new fact

2009-01-12 Thread Andrew Shafer
Quick refactoring recommendation: Pull the lookup out into a helper attr_reader :physical_proxies @physical_proxies = { XXX => "proxyX", XXY => "proxyY", ... } def proxy_lookup(virtal, ip) if virtual == "physical" physical_proxies[ip.split(/\./)[1]] elsif virtual == "openvz" some_oth

[Puppet Users] Re: Parsing issues

2009-01-12 Thread Luke Kanies
On Jan 12, 2009, at 6:05 PM, Matt Marshall wrote: > Luke, > Thanks for helping with this, I believe I found out what the problem > is, > it looks like the editor I was using (eclipse) decided to use windows > style end of line characters. These appear to throw puppet for a > loop. I > found t

[Puppet Users] Re: puppetmasterd with passenger and REE?

2009-01-12 Thread Nigel Kersten
This is actually on my to-do list for this quarter, investigating Passenger/REE... On Mon, Jan 12, 2009 at 1:31 PM, Luke Kanies wrote: > > Hi all, > > I know people have used Puppet with passenger[1], but has anyone tried > it with Ruby Enterprise Edition[2]? > > The producers of REE claim that

[Puppet Users] Re: Parsing issues

2009-01-12 Thread Matt Marshall
Luke, Thanks for helping with this, I believe I found out what the problem is, it looks like the editor I was using (eclipse) decided to use windows style end of line characters. These appear to throw puppet for a loop. I found that out when I was concatenating the files from the recipe together,

[Puppet Users] Re: Cannot create /var/lib/puppet/clientbucket; parent directory /var/lib/puppet does not exist

2009-01-12 Thread Luke Kanies
On Jan 12, 2009, at 10:58 AM, Arnau Bria wrote: > > On Fri, 9 Jan 2009 10:10:37 -0600 > Carl Caum wrote: > >> >> Try adding an exec statement that runs at the beginning of your >> manifest. I'd have to know your manifest to suggest the best way to >> do it. I personally have an essential packag

[Puppet Users] Re: facter variable not being used

2009-01-12 Thread Luke Kanies
On Jan 11, 2009, at 6:05 PM, chakkerz wrote: > Firstly, most importantly, how do i fix this? how do i make sure my > fact is used? > Secondly, how can I find out what facter actually tells puppet are > facts? Check the $yamldir/facts on your server -- you should see a yaml- encoded copy of all

[Puppet Users] Re: Parsing issues

2009-01-12 Thread Luke Kanies
On Jan 12, 2009, at 3:42 PM, Matt Marshall wrote: > Ok, I'm thoroughly confused. I gave up and started over, delete all of > the configs and went to the simplest recipe. > > I get this error now > puppetd --test --verbose --debug --server ev-unixutil.adeq.lcl > err: Could not retrieve catalog: Co

[Puppet Users] Re: Issue with a new fact

2009-01-12 Thread Luke Kanies
In general, ruby does not allow an explicit 'return' within blocks. Feel free to read up on the gory details, but basically, have the last statement in your block be the value you want to return, rather than an explicit return. On Jan 12, 2009, at 10:51 AM, Jeff Leggett wrote: > > If I do t

[Puppet Users] Re: Parsing issues

2009-01-12 Thread Matt Marshall
Ok, I'm thoroughly confused. I gave up and started over, delete all of the configs and went to the simplest recipe. I get this error now puppetd --test --verbose --debug --server ev-unixutil.adeq.lcl err: Could not retrieve catalog: Could not parse for environment production: Could not match 'cl

[Puppet Users] puppetmasterd with passenger and REE?

2009-01-12 Thread Luke Kanies
Hi all, I know people have used Puppet with passenger[1], but has anyone tried it with Ruby Enterprise Edition[2]? The producers of REE claim that the two in combination can cut Rails memory usage by 33%, and I'm quite curious if it has a similar impact on puppetmasterd. Anyone who's havi

[Puppet Users] Is Anyone Using Puppet to Administer Multiple Clusters?

2009-01-12 Thread Tony Kocurko
Hi, Gang... The Subject: line says it all pretty much. We've got six clusters spread over a nice sized geographical area. I wonder whether anyone is using Puppet in a kind of, let's say, "cascaded" style to manage the configurations on all the nodes of all the clusters, given that each cluster h

[Puppet Users] custom fact in kickstart postisntall

2009-01-12 Thread Arnau Bria
Hi all, I have a custom fact which determines what interface is primary in future bonding: It works fine when I run puppet for second time: # /usr/bin/ruby /usr/sbin/puppetd --server=gridinstall.pic.es --logdest=/var/log/puppet/puppet.log --test info: Retrieving plugins notice: /File[/var/lib

[Puppet Users] Re: Cannot create /var/lib/puppet/clientbucket; parent directory /var/lib/puppet does not exist

2009-01-12 Thread Arnau Bria
On Fri, 9 Jan 2009 10:10:37 -0600 Carl Caum wrote: > > Try adding an exec statement that runs at the beginning of your > manifest. I'd have to know your manifest to suggest the best way to > do it. I personally have an essential package resource require it. > > exec {"mkdir -p /var/lib/pu

[Puppet Users] Re: Issue with a new fact

2009-01-12 Thread Jeff Leggett
If I do that, it blows up: [jlegg...@lxp6d11m8v190 facter]$ facter /opt/etrade/p6/lib/ruby/site_ruby/1.8/facter/etproxy.rb:36: unexpected return (LocalJumpError) from /opt/etrade/p6/lib/ruby/site_ruby/1.8/facter/util/ resolution.rb:117:in `call' from /opt/etrade/p6/lib/ruby/site_r

[Puppet Users] Re: Question on usage case

2009-01-12 Thread Mathew Binkley
Hi Andrew. That helped us figure it out. Turns out someone had misconfigured the firewall on that IP, and fixed it over the weekend. I came in this morning, and everything Just Works. Thanks for the assistance! On Jan 10, 2:34 pm, "Andrew Shafer" wrote: > Can you see puppetd make requests t

[Puppet Users] Re: Parsing issues

2009-01-12 Thread Matt Marshall
This is what I get if I run parseonly on autofs.pp [r...@ev-unixutil manifests]# puppet --parseonly classes/autofs.pp err: Could not parse for environment production: Could not match '}' at /etc/puppet/manifests/classes/autofs.pp:1 [r...@ev-unixutil manifests]# puppetd --server ev-unixutil.adeq