[Puppet Users] Re: Using an array to manage a string of directories that need to be managed

2011-12-16 Thread Felix Frank
On 12/16/2011 08:07 AM, Alexandre wrote: > Hi, > If you find out how to do some kind of foreach() to iterate over a > Puppet array, that's something i would to know Hi, there's not really a foreach. Instead you define a type and make an instance of that for each array element. $users = [ "john",

AW: [Puppet Users] filtering exported resources...

2011-12-16 Thread Bernd Adamowicz
I'm not quite sure, but my experience is that as soon as you remove the @@-resources from your node configuration, they will also be dropped from the database by the Puppet master. You may want to check with some select-statements if this is really true. I once deleted some resources manually f

[Puppet Users] Seperate CA's/Master behind load balancer

2011-12-16 Thread ollies...@googlemail.com
Hello, Attempting to setup a CA primary/standby as well as seperate puppetmaster servers (all running Apache/Passenger) behind another Apache/Passenger type load balancer. Clients are not getting certs:- err: Could not request certificate: Could not intern from s: nested asn1 error Clearly an SS

[Puppet Users] Re: Puppet with Ruby1.9 issue

2011-12-16 Thread linuxbsdfreak
Hi, As i already mentioned on the 1st post. I have edited the file and changed the entries mentioned in the post. I changed /usr/lib64/ruby/gems/1.9.1/gems/puppet-2.7.9/lib/puppet/ application/cert.rb Eg: option("--all", "-a") do @all = true end to option("--all", "-a") do |*_| @a

[Puppet Users] Puppet capacity with apache+passenger, server saturated

2011-12-16 Thread Antonio Xanxess
Hi everyone, I have a problem with my Puppet server, the server is overloaded and processes need to add half of my farm nodes yet! The server is hosted on a blade with the following characteristics: Processors: 8 cores Memory Ram: 12 Gb Operating System: Debian Squeeze Version of parcel: 2.7.1-1 ~

[Puppet Users] How to change the time interval in dashboard for a node is considered unresponsive

2011-12-16 Thread Antonio Xanxess
Hi everyone, I have a problem with puppet-dashboard because I appear unresponsive when many nodes are running correctly. In my current configuration nodes do not run the daemon, but I have created a cron task that runs once the command puppetd at hourly intervals. The point is that when I look int

[Puppet Users] Re: restarting "service" when configuration changes

2011-12-16 Thread jcbollinger
On Dec 15, 8:13 pm, Nigel Kersten wrote: > You can notify a class, and it forwards the signal to resources it contains.- > Hide quoted text - I stand corrected. So, Nigel, do you have any idea why the OP's manifest is not doing what he expects? John -- You received this message because

Re: [Puppet Users] How to change the time interval in dashboard for a node is considered unresponsive

2011-12-16 Thread Martin Willemsma
Hi Antonio, I believe this is the setting your looking for: In /config/settings.yml: # Amount of time in seconds since last report before a node is considered no longer reporting no_longer_reporting_cutoff: 144000 restart dashboard Regards, Martin 2011/12/16 Antonio Xanxess : > Hi everyone

Re: [Puppet Users] [Fileserver] Error with passenger

2011-12-16 Thread Felix Frank
Hi, On 12/15/2011 05:05 PM, A_SAAS wrote: > [modules] > allow 127.0.0.0/8 > allow *.lan > deny* I disbelieve the final line is necessary. My gut tells me that Puppet will default to deny anyway if there is no matching allow rule. HTH, Felix -- You received this

Re: [Puppet Users] reloading changes stopped working

2011-12-16 Thread Felix Frank
Hi, On 12/15/2011 05:14 PM, Maksym Melnychok wrote: > Hi, > > last thing i see in /var/log/daemon.log after trying "/etc/init.d/puppet > reload" is > > notice: Starting Puppet client version 2.7.9 > debug: Using cached certificate for ca > debug: Using cached certificate for cypher.qype.com > de

Re: [Puppet Users] Puppet capacity with apache+passenger, server saturated

2011-12-16 Thread Brice Figureau
On Fri, 2011-12-16 at 04:56 -0800, Antonio Xanxess wrote: > I have a problem with my Puppet server, the server is overloaded and > processes need to add half of my farm nodes yet! > The server is hosted on a blade with the following characteristics: > Processors: 8 cores > Memory Ram: 12 Gb > Opera

Re: [Puppet Users] Commands within commands within a manifest

2011-12-16 Thread Felix Frank
Well, On 12/15/2011 10:39 PM, Dan White wrote: > Thanks for the suggestions. > tee /path/to/where-I-want-logfile-$(date +%Y%m%d-%H%M%S).log did not work. > > bash: syntax error near unexpected token `(' if you're not using single quotes, you shall have to escape the dollar sign so puppet doesn'

Re: [Puppet Users] Seperate CA's/Master behind load balancer

2011-12-16 Thread Brice Figureau
On Fri, 2011-12-16 at 04:40 -0800, ollies...@googlemail.com wrote: > Hello, > > Attempting to setup a CA primary/standby as well as seperate > puppetmaster servers (all running Apache/Passenger) behind another > Apache/Passenger type load balancer. > > Clients are not getting certs:- > err: Could

[Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-16 Thread ollies...@googlemail.com
Thanks I realised that when I sent it. Dialled back the CA to:- Listen 18140 SSLEngine off ServerName RackAutoDetect On DocumentRoot /etc/puppet/rack/puppetmaster/public/ Options None AllowOverride None Order allow,deny allow from all Now clients are getting cert r

Re: [Puppet Users] new user: need Conditional statement example within a file resource type

2011-12-16 Thread Brice Figureau
On Tue, 2011-12-13 at 10:31 -0800, Kenneth Lo wrote: > Searching old archive I find this topic: > > http://groups.google.com/group/puppet-users/browse_thread/thread/187ee3897a26ae2a/32fea612e79dda80?hl=en&lnk=gst&q=puppet+case+statement+in+file+resource#32fea612e79dda80 > > > I understand that

Re: [Puppet Users] Re: Seperate CA's/Master behind load balancer

2011-12-16 Thread Brice Figureau
On Fri, 2011-12-16 at 07:53 -0800, ollies...@googlemail.com wrote: > Thanks I realised that when I sent it. Dialled back the CA to:- > Listen 18140 > > SSLEngine off > ServerName > RackAutoDetect On > DocumentRoot /etc/puppet/rack/puppetmaster/public/ > > Options None > AllowOv

Re: [Puppet Users] Re: restarting "service" when configuration changes

2011-12-16 Thread Nigel Kersten
On Fri, Dec 16, 2011 at 5:57 AM, jcbollinger wrote: > > > On Dec 15, 8:13 pm, Nigel Kersten wrote: > > > You can notify a class, and it forwards the signal to resources it > contains.- Hide quoted text - > > > I stand corrected. > > So, Nigel, do you have any idea why the OP's manifest is not doi

Quoting 'true' and 'false' (was: Re: [Puppet Users] new user: need Conditional statement example within a file resource type)

2011-12-16 Thread Tim Mooney
In regard to: Re: [Puppet Users] new user: need Conditional statement...: Obviously I had a syntax error here because case statement is not happy within the resource. That's why the documentation says to use a selector. So, what's a recommended puppet way to do something like this? thx in ad

[Puppet Users] Re: Quoting 'true' and 'false'

2011-12-16 Thread Brice Figureau
On 16/12/11 19:48, Tim Mooney wrote: > In regard to: Re: [Puppet Users] new user: need Conditional statement...: > >>> Obviously I had a syntax error here because case statement is not >>> happy within the resource. >> >> That's why the documentation says to use a selector. >> >>> So, what's a rec

Re: [Puppet Users] Re: Quoting 'true' and 'false'

2011-12-16 Thread Trevor Vaughan
I tend to quote all used of 'false' and 'true' mainly because sometimes the guts of puppet seem to give me back a string no matter what I want and a bareword won't work. I don't have examples offhand and it's possible that this was fixed some time in the past. Trevor On Fri, Dec 16, 2011 at 2:16

Re: [Puppet Users] Re: Quoting 'true' and 'false'

2011-12-16 Thread Craig White
perhaps not puppet but facter which I think always returns things as strings - definitely a point of confusion but understandable when you think about it. Craig On Dec 16, 2011, at 1:15 PM, Trevor Vaughan wrote: > I tend to quote all used of 'false' and 'true' mainly because > sometimes the gut

Re: [Puppet Users] Re: Quoting 'true' and 'false'

2011-12-16 Thread Trevor Vaughan
It *may* have been using passed variables in templates. I don't quite remember, but something was certainly interpolating strangely. I tend to quote everything: For undefined variable $::foo... if $::foo != 'true' { ... } -> Explodes if "$::foo" != 'true' { ... } -> Works And makes sense. Of c

[Puppet Users] Extlookup and undefined labels.

2011-12-16 Thread Trevor Vaughan
So, I tried to use extlookup and ended up with a typo that made my configuration explode with a missing label error. So, how would one go about making a label optional? As in, try to look it up, but I don't really care if you fail as I'll just do something else. Thanks, Trevor -- Trevor Vaugha

Re: [Puppet Users] Extlookup and undefined labels.

2011-12-16 Thread R.I.Pienaar
- Original Message - > So, I tried to use extlookup and ended up with a typo that made my > configuration explode with a missing label error. > > So, how would one go about making a label optional? As in, try to > look > it up, but I don't really care if you fail as I'll just do somethin

Re: [Puppet Users] filtering exported resources...

2011-12-16 Thread Gabriel Filion
On 11-12-15 02:29 PM, Matthew Nicholson wrote: > I've stopped collecting dsa keys, we don't care about those, and are > looking to cut our run times down (about 1750 hosts). However, I'm > assuming that a new node brought online will still get all the dsa > keys since they have already been collect