Re: [Puppet Users] logrotate and augeas

2012-05-08 Thread Luke Bigum
Theoretically you should be able to do this: augtool> print /files/etc/logrotate.d/syslog/rule/file[. =~ regexp("/var/log/mail")] ... but I can't get the Regular Expression function to work in augtool :-( You could match each one, considering you know the names of each Syslog Level: augtoo

Re: [Puppet Users] logrotate and augeas

2012-05-08 Thread Dominic Cleal
On 08/05/12 09:26, Luke Bigum wrote: > Theoretically you should be able to do this: > > augtool> print /files/etc/logrotate.d/syslog/rule/file[. =~ > regexp("/var/log/mail")] > > ... but I can't get the Regular Expression function to work in augtool :-( Very nearly. Try this: augtool> print /

Re: [Puppet Users] Puppet Dashboard not reporting hosts.....

2012-05-08 Thread Kaya Saman
On Fri, May 4, 2012 at 5:23 PM, Nan Liu wrote: > On Fri, May 4, 2012 at 3:59 AM, Kaya Saman wrote: >> Hi, >> >> I am still learning Puppet meaning that I'm still struggling through things. >> >> >> I have setup Puppet on CentOS 6.x (latest release), installed the >> Puppet Labs repos and followed

Re: [Puppet Users] Puppet Dashboard not reporting hosts.....

2012-05-08 Thread Kaya Saman
On Tue, May 8, 2012 at 9:53 AM, Kaya Saman wrote: > On Fri, May 4, 2012 at 5:23 PM, Nan Liu wrote: >> On Fri, May 4, 2012 at 3:59 AM, Kaya Saman wrote: >>> Hi, >>> >>> I am still learning Puppet meaning that I'm still struggling through things. >>> >>> >>> I have setup Puppet on CentOS 6.x (late

Re: [Puppet Users] logrotate and augeas

2012-05-08 Thread Felice Pizzurro
Thanks a lot! it works fine! As in rsyslog logrotate conf file there are many rules, I used this syntax to retrieve the correct rule instead to define rule index manually: augtool> print /files/etc/logrotate.d/rsyslog/rule[file =~ regexp("/var/log/mail.*")]/file[. =~ regexp("/var/log/mail.*")

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-08 Thread Derek J. Balling
On May 7, 2012, at 12:47 PM, Christopher Wood wrote: > Wrapper script (similar concept for anywhere with a yaml reader): Still have to *write* the YAML files. > Out of nosiness, how do you handle the edgier cases in your manifests? For > example, how everything is a standard syslog client, exce

[Puppet Users] Re: certificate verification failed

2012-05-08 Thread Sans
Thanks! That part is working now. cheers!! On Monday, May 7, 2012 5:42:57 PM UTC+1, iceberg wrote: > > Yes, but nuke the certs on the master too - delete the > /var/lib/puppet/ssl/certs/*. You want everything regenerated. > > -- You received this message because you are subscribed to the Goog

Re: [Puppet Users] Re: Video for last months's meeting is now online (Foreman)

2012-05-08 Thread Ken Barber
Don't stress, I'm sure its topical :-). On May 8, 2012 5:49 AM, "Brian Gupta" wrote: > My apologies, this was supposed to go to the puppet-nyc mailing list. :( > -Brian > > On Tue, May 8, 2012 at 12:42 AM, Brian Gupta > wrote: > > Ohad did a great job covering Foreman. If you couldn't make it go

[Puppet Users] Compile catalog time: 2.6 vs 2.7.X

2012-05-08 Thread Arnau Bria
Hi all, I'm in the procedure of migrating my old puppet server (puppet-2.6.14-1.el5) with mongrel to a new one (puppet-2.7.14-1.el6.noarch) with passenger. I'm facing a really strange behaviour with the catalog compilation time. I've 3 servers: 1.-) Centos 5.8 puppet-2.6.14-1.el5 + rubygem-mongr

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-08 Thread John Warburton
On 8 May 2012 20:00, Derek J. Balling wrote: > > On May 7, 2012, at 12:47 PM, Christopher Wood wrote: > > Wrapper script (similar concept for anywhere with a yaml reader): > > Still have to *write* the YAML files. > > Oh yeah. This is my big motivator sticking with extlookup and not converting to

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-08 Thread Craig Dunn
Still have to *write* the YAML files. Oh yeah. This is my big motivator sticking with extlookup and not converting to Hiera - anyone in the team can do CSV. But YAML is starting to push well into the dev camp and far away from ops (IMHO) Unless you're doing rich data types such as hashes,

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-08 Thread R.I.Pienaar
- Original Message - > From: "John Warburton" > To: puppet-users@googlegroups.com > Sent: Tuesday, May 8, 2012 12:14:48 PM > Subject: Re: [Puppet Users] Puppet 3.0 and Hiera > > > On 8 May 2012 20:00, Derek J. Balling < dr...@megacity.org > wrote: > > > > > On May 7, 2012, at 12:47

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-08 Thread John Warburton
Thanks R.I. & Craig Dunn On 8 May 2012 21:43, R.I.Pienaar wrote: > > If you want the same abilities that CSV has then this would be your YAML: > > sysadmin: y...@your.com > nameservers: [1.2.3.4, 2.3.4.5] > > just that simple, I think this is much clearer than CSV. If people really > are That

Re: [Puppet Users] Re: how to exclude modules from inherited list

2012-05-08 Thread Munna S
Team, can someone help me Thanks, Jeeva On Mon, May 7, 2012 at 10:39 AM, Munna S <19.mu...@gmail.com> wrote: > Hi Team, > > sorry for the delay. My setup is like this. > > we have a 2 .pp file. one for production ( prod_base.pp) and other for > development ( dev_base.pp) under /etc/puppet/mani

Re: [Puppet Users] Re: how to exclude modules from inherited list

2012-05-08 Thread Luke Bigum
Hi, No, that is impossible to do. Once a class is declared it cannot be undeclared. Puppet is an additive model. The way that node inheritance works means you can *NOT* even do this: class prod_scripts { if ($actually_do_prod_scripts) { ... ... } } node prod_base { include prod

Re: [Puppet Users] Puppet Dashboard not reporting hosts.....

2012-05-08 Thread Kaya Saman
On Tue, May 8, 2012 at 10:07 AM, Kaya Saman wrote: > On Tue, May 8, 2012 at 9:53 AM, Kaya Saman wrote: >> On Fri, May 4, 2012 at 5:23 PM, Nan Liu wrote: >>> On Fri, May 4, 2012 at 3:59 AM, Kaya Saman wrote: Hi, I am still learning Puppet meaning that I'm still struggling through

[Puppet Users] Handling Sensitive Data

2012-05-08 Thread Jistan Idiot
So we're looking at using Puppet. There are three things we're trying to figure out how to manage -- SSL keys for the webservers, SSH keys for the users, and the user's passwords (and specific /etc/shadow and / etc/passwd for each box). There's a ton of concerns with each one of these. Is there

[Puppet Users] 12% of my puppet clients -- Could not retrieve catalog from remote server: execution expired

2012-05-08 Thread Tim Lank
how do I troubleshoot this error that occurs for about 12% of the puppet clients (~70 out of ~550.) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this grou

Re: [Puppet Users] 12% of my puppet clients -- Could not retrieve catalog from remote server: execution expired

2012-05-08 Thread Arnau Bria
On Tue, 8 May 2012 05:35:34 -0700 (PDT) Tim Lank wrote: > how do I troubleshoot this error that occurs for about 12% of the > puppet clients (~70 out of ~550.) do they run as daemon? always the 70 same hosts are failling? do they run at same time? Cheers, Arnau -- You received this message bec

Re: [Puppet Users] Handling Sensitive Data

2012-05-08 Thread Erik Dalén
On 8 May 2012 14:28, Jistan Idiot wrote: > So we're looking at using Puppet.  There are three things we're trying > to figure out how to manage -- SSL keys for the webservers, SSH keys > for the users, and the user's passwords (and specific /etc/shadow and / > etc/passwd for each box). > > There's

Re: [Puppet Users] Puppet 3.0 and Hiera

2012-05-08 Thread Christopher Wood
On Tue, May 08, 2012 at 06:00:07AM -0400, Derek J. Balling wrote: > > On May 7, 2012, at 12:47 PM, Christopher Wood wrote: > > Wrapper script (similar concept for anywhere with a yaml reader): > > Still have to *write* the YAML files. I don't think I've ever actually opened a text editor and wri

Re: [Puppet Users] Video for last months's meeting is now online (Foreman)

2012-05-08 Thread Erik Dalén
On 8 May 2012 06:42, Brian Gupta wrote: > Ohad did a great job covering Foreman. If you couldn't make it go > check it out! (Audio is a little low) http://youtu.be/CqX-heDl9VM > > You can also check it out on archive.org if that's your preference: > http://archive.org/details/Puppet-nycMonthlyMeet

[Puppet Users] Re: Compile catalog time: 2.6 vs 2.7.X

2012-05-08 Thread Arnau Bria
On Tue, 8 May 2012 13:07:04 +0200 Arnau Bria wrote: I should add more info on servers and "manifests": > 1.-) Centos 5.8 puppet-2.6.14-1.el5 + rubygem-mongrel-1.0.1-6.el5 > > Client: > Compiled catalog for td055.pic.es in environment production in 4.25 > seconds Server: > time puppet master --ve

Re: [Puppet Users] 12% of my puppet clients -- Could not retrieve catalog from remote server: execution expired

2012-05-08 Thread Tim Lank
they do run as a daemon pretty much always the same 70 and they don't all run at the same time. Many do, but not all. On Tue, May 8, 2012 at 9:03 AM, Arnau Bria wrote: > On Tue, 8 May 2012 05:35:34 -0700 (PDT) > Tim Lank wrote: > >> how do I troubleshoot this error that occurs for about 12% of

[Puppet Users] puppet-dashboard issue using apache/passenger

2012-05-08 Thread Sans
Dear all, I've switched to apache/passenger for puppet-dashboard, following the instruction here: > > http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#running-dashboard-in-a-production-quality-server > * httpd* is running okay but I see it's dashboard still seems to use WEB

Re: [Puppet Users] Compile catalog time: 2.6 vs 2.7.X

2012-05-08 Thread Derek J. Balling
FWIW, we are experiencing exactly the same thing in 2.7 that you are. We used to average 6-9 seconds for compilation time and now it's anywhere from 15 to 250 to "timed out". D On May 8, 2012, at 7:07 AM, Arnau Bria wrote: > Compiled catalog for td055.pic.es in environment production in 4.25 s

[Puppet Users] Can you override a define parameter

2012-05-08 Thread Jake - USPS
Should I be able to override a parameter in a define? I've been searching the group and found answers both saying you can and can't CAN: https://groups.google.com/forum/?fromgroups#!searchin/puppet-users/override$20define/puppet-users/Jb9Xr02dR7U/_LzailkL5-0J CANT: https://groups.google.com/f

Re: [Puppet Users] puppet-dashboard issue using apache/passenger

2012-05-08 Thread Walter Heck
don't start the puppet-dashboard service anymore. Once you have defined your vhost in apache properly, starting apache will make it start serving your dashboard. Sent from my galaxy tab On May 9, 2012 1:03 AM, "Sans" wrote: > Dear all, > > I've switched to apache/passenger for puppet-dashboard,

Re: [Puppet Users] puppet-dashboard issue using apache/passenger

2012-05-08 Thread Sans
aahh... that's what I was wondering. So, does it also mean there is no need for reports, reportdir and reporturlin the *puppet.conf *as well? Cheers!! On Tuesday, May 8, 2012 10:01:02 PM UTC+1, Walter Heck wrote: > > don't start the puppet-dashboard service anymore. Once you have defined

[Puppet Users] deploying class *only* via puppet kick

2012-05-08 Thread Miles Stevenson
I'm trying to set up a system in which the web devs can deploy new websites via puppet kick. I'm not having a problem with puppet kick itself, but rather figuring out how to make my "webserver::sitelist" class *only* get deployed via puppet kick, and not have it regularly evaluated in the nodes

[Puppet Users] Re: Puppet 3.0 and Hiera

2012-05-08 Thread Pieter van de Bruggen
As a courtesy update for our user community: My earlier claims about the "lookup" function were exaggerated. Instead, the "hiera", "hiera_array", and "hiera_hash" functions will all be available, provided by Hiera. Also, as mentioned earlier, class parameters will be sourced from multiple locati

Re: [Puppet Users] Compile catalog time: 2.6 vs 2.7.X

2012-05-08 Thread Carl Caum
Arnau, is it possible for you to send me a copy of your manifests? A colleague and I were recently trying to find out where the slowness in 2.7 really was. We weren't able to pinpoint it as we had to move on to something else, but we were not able to generate a catalog that had compile time di

[Puppet Users] Re: Compile catalog time: 2.6 vs 2.7.X

2012-05-08 Thread Carl Caum
Further, it would help to know how many different environments you're using On May 8, 3:24 pm, Carl Caum wrote: > Arnau, is it possible for you to send me a copy of your manifests?  A > colleague and I were recently trying to find out where the slowness in 2.7 > really was.  We weren't able to

Re: [Puppet Users] Handling Sensitive Data

2012-05-08 Thread Ryan Coleman
On Tuesday, May 8, 2012 6:36:02 AM UTC-7, Erik Dalén wrote: > > > That still holds true (unless you want to micromanage access permissions). > > There is however a way to create a directory per host that is only > accessible by that host: > https://groups.google.com/forum/#!msg/puppet-users/XB