[Puppet Users] Re: erb templating support for case statements?

2010-06-22 Thread CraftyTech
Whoa dude... that's like a little crash course on ruby... not that I'm complaining... :-)) You're right, that first "$" with the variable wasn't meant to be there... and I was wondering the same thing regarding the usage of the memorysize variable from facter. Thanks a lot Bellman, I now have a g

[Puppet Users] Re: is anyone using a tool to diagram their manifests?

2010-06-22 Thread windowsrefund
Hello Trevor, Just wondering if you've had a chance to look at this again. All the best, Adam -- 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 unsubscribe from this group,

[Puppet Users] Re: erb templating support for case statements?

2010-06-22 Thread Thomas Bellman
On 2010-06-21 21:37, CraftyTech wrote: > Thanks for the response. Right now I have it: > > max_allowed_packet=<% if $memorysize.to_i <= 4 %>8M<% elseif > memorysize.to_i = 4.1..8 %>16M<% elseif memorysize.to_i = 8.1..16 > %>32M<% elseif memorysize.to_i > 16 %>32M<%end %> > > but for some reason

[Puppet Users] Re: erb templating support for case statements?

2010-06-22 Thread CraftyTech
It works now... The syntax was right all along. I was testing it on a VM which has less than a gig of mem, hence why it'd omit the logic, since it didn't apply. Sometimes the hurtles are a lot closer than you expect them to be :-) On Jun 22, 9:20 am, CraftyTech wrote: > Can anyone help out, a

Re: [Puppet Users] Refreshing puppetd from within puppetd

2010-06-22 Thread Patrick Mohr
On Jun 22, 2010, at 2:43 AM, David Schmitt wrote: > On 6/22/2010 3:03 AM, Patrick Mohr wrote: >> I push out changes to puppet.conf using puppet. (I have gsh as a >> backup for if I really screw things up, but I've never had to use it >> yet.) Is there any safe and/or good way to restart puppet

Re: [Puppet Users] Re: Automated installation of Puppetmaster and Dashboard

2010-06-22 Thread Bryan Ross
> On Thu, Jun 17, 2010 at 4:23 PM, PBWebGuy wrote: >> I was just looking over your puppet-puppet recipe and I was curious on >> how you are managing your different target environments.  I see that >> you have defined different trees for each environment: >> ... >> So I am assuming that you must ne

Re: [Puppet Users] Augeas and double quotes

2010-06-22 Thread Guus Houtzager
On Mon, Jun 21, 2010 at 11:40 PM, Patrick Mohr wrote: > First, quotes probably aren't needed unless the value has a space in it. > Second, single quotes should work fine. > > Anyway, here's an example that will work for something that has a space in > it, and needs to be quoted: > >augeas {

[Puppet Users] Re: erb templating support for case statements?

2010-06-22 Thread CraftyTech
Can anyone help out, and let me know why the line below omits everything after the "=" sign, and just puts out the "max_allowed_packet="? It seems pretty straight forward, but for some reason it doesn't work. Can anyone spot what I'm missing? Thanks, Henry On Jun 21, 3:37 pm, CraftyTech wrote

Re: [Puppet Users] node inheritance for external nodes

2010-06-22 Thread Rob McBroom
On Jun 18, 2010, at 2:40 PM, Jon Choate wrote: > Is it possible to express node inheritance when using external nodes. If it > is could someone post what the yaml might look like? I don’t know what you’re using to store external nodes, but if you’re using LDAP, each node has a parentNode attri

Re: [Puppet Users] Refreshing puppetd from within puppetd

2010-06-22 Thread Trevor Vaughan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes, I've never had a problem with this. If you wanted to be sure to run it right away after the current run, I would use an exec to fire off an 'at' job for minutes in the future. Make sure to set refreshonly => true on that exec. Trevor On 06/22/

Re: [Puppet Users] Refreshing puppetd from within puppetd

2010-06-22 Thread David Schmitt
On 6/22/2010 3:03 AM, Patrick Mohr wrote: I push out changes to puppet.conf using puppet. (I have gsh as a backup for if I really screw things up, but I've never had to use it yet.) Is there any safe and/or good way to restart puppet after a change is made o it's config? I'm assuming that just

Re: [Puppet Users] Storeconfigs connection pool problem

2010-06-22 Thread Jason Koppe
I didn't read anything over last weekend but I'm anxious to find out how to fix this for my environment. What is the OS of your puppetmaster? I've got CentOS and there's another thread about CentOS5 leaking file descriptors which seems to be related. On Mon, Jun 21, 2010 at 10:30 AM, Christo

[Puppet Users] Re: Problem with dashboard using live report aggregation

2010-06-22 Thread christian
It seems to be working, Chad. After I figured out, that you have to use one of the cities listed with rake time:zones:local, now my time is shown correct, too. But symlinking puppet_dashboard.rb to $libdir/reports doesn't really work for me and still gives "warning: no report puppet-dashboard". So

[Puppet Users] Re: Refreshing puppetd from within puppetd

2010-06-22 Thread christian
Well depending on complexity of your manifests, you could define a service for puppet and require certain classes to be executed before the puppet service is checked in order to avoid that problem. At least for me it works, but I have to admit that this solution isn't very pretty. Example: service