Re: [Puppet Users] File paths must be fully qualified

2010-03-05 Thread Haris Farooque
yes, I tried in the same way, here is my manifest; filesever.conf: -- [SLESSUDO] path /etc/puppet/modules/sudo/files/ allow *.mydomain.com - $sourcepath = $operatingsystem ? { AIX => "/etc/puppet/sudo/files/sud

Re: [Puppet Users] File paths must be fully qualified

2010-03-05 Thread Ohad Levy
On Fri, Mar 5, 2010 at 5:13 PM, Haris Farooque wrote: > yes, I tried in the same way, here is my manifest; > > err: Could not run Puppet configuration client: Parameter path failed: File > paths must be fully qualified, not 'puppet:/SLES_SUDO/sudoers' at */ > etc/puppet/manifests/*: > > it should

Re: [Puppet Users] File paths must be fully qualified

2010-03-05 Thread Ohad Levy
sorry, I assu,e SLES_SUDO is not your servername, so in this case it should be: puppet:///SLES_SUDO/.. On Fri, Mar 5, 2010 at 5:29 PM, Ohad Levy wrote: > > > On Fri, Mar 5, 2010 at 5:13 PM, Haris Farooque wrote: > >> yes, I tried in the same way, here is my manifest; >> >> err: Could not run P

Re: [Puppet Users] File paths must be fully qualified

2010-03-05 Thread Peter Meier
$sourcepath = $operatingsystem ? { AIX => "/etc/puppet/sudo/files/sudoers", default => "puppet:///SLESSUDO/sudoers", } file {"$sourcepath": you set sourcepath as the targeted path of the file, this won't work and I assume it is also not

Re: [Puppet Users] Issues with reporting to foreman under puppet-server 0.25.4 (installed from Epel)

2010-03-05 Thread Matthew Macdonald-Wallace
I've had a thought about this overnight (my brain seems to work better when I'm asleep!) Is there a newer version of the foreman.rb report intended for use with puppetmaster 0.25.x? I know the config.ru changed for the RACK application, I'm wondering if I need to make further changes. Thanks, M

Re: [Puppet Users] Puppet 0.24.8 RPM (0.25.4 client not backwards compatible)

2010-03-05 Thread Matt
+1 for this. I also like just taking the base repo and then just create your own custom one with packages you approve. It's pretty easy to do with createrepo. Matt On 4 March 2010 20:36, Pete Emerson wrote: > I'd also recommend (based on previous shooting myself in the foot) > that all of you

Re: [Puppet Users] Issues with reporting to foreman under puppet-server 0.25.4 (installed from Epel)

2010-03-05 Thread Matt
On 5 March 2010 10:11, Matthew Macdonald-Wallace wrote: > I've had a thought about this overnight (my brain seems to work better > when I'm asleep!) > > Is there a newer version of the foreman.rb report intended for use > with puppetmaster 0.25.x? > > I know the config.ru changed for the RACK appl

[Puppet Users] Dependency cycles, please help.

2010-03-05 Thread Julien Cornuwel
Hi, I'm having trouble writing a recipe to handle apache/passenger. First, here is my apache2 class, found here : http://www.reductivelabs.com/trac/puppet/wiki/Recipes/DebianApache2Recipe - $apache2_sites = "/etc/apache2/sites" $apache2_mods = "/etc/apa

Re: [Puppet Users] Issues with reporting to foreman under puppet-server 0.25.4 (installed from Epel)

2010-03-05 Thread Matthew Macdonald-Wallace
Um, yeah, so that's completely different to what I've got... :( I'll get a copy of that script and install it now. On 5 March 2010 10:38, Matt wrote: > On 5 March 2010 10:11, Matthew Macdonald-Wallace > wrote: >> >> I've had a thought about this overnight (my brain seems to work better >> when

Re: [Puppet Users] Issues with reporting to foreman under puppet-server 0.25.4 (installed from Epel)

2010-03-05 Thread Ohad Levy
Matt actually has the older version (the diff between them is SSL support). can you check your puppet master logs? does it say something like processing report for foreman ? does your clients have the report=true option? Ohad On Fri, Mar 5, 2010 at 7:53 PM, Matthew Macdonald-Wallace < mattmacw.

Re: [Puppet Users] syntax

2010-03-05 Thread Len Rugen
But they don't seem to work IN A TEMPLATE On Fri, Mar 5, 2010 at 1:16 AM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > So can someone point to working regex template example? > > First answer of Ohad to your question: > > > you might want to try regexp, e.g. > >

[Puppet Users] ssh authorized keys fails

2010-03-05 Thread Ben Lavender
Can someone tell me what's wrong here? Or should I reopen #2487, http://projects.reductivelabs.com/issues/2487 ? I have this config: === class devusers { dev_user { "ben": uid => 510, keytype => "ssh-rsa", keyname => "b...@7.106.cp", key => "blahblah" } dev_user { "yuri":

Re: [Puppet Users] syntax

2010-03-05 Thread Len Rugen
Maybe the dash in -%> is the problem, I was tunnel visioned on the regex part. On Fri, Mar 5, 2010 at 6:58 AM, Len Rugen wrote: > But they don't seem to work IN A TEMPLATE > > On Fri, Mar 5, 2010 at 1:16 AM, Peter Meier wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> > So

[Puppet Users] Re: Dependency cycles, please help.

2010-03-05 Thread Julien Cornuwel
2010/3/5 Julien Cornuwel > Hi, > > I'm having trouble writing a recipe to handle apache/passenger. > [...] > When my client node runs that, I get the following error : > > Could not apply complete catalog: Found dependency cycles in the following > relationships: Exec[/usr/sbin/a2enmod passenger]

Re: [Puppet Users] ssh authorized keys fails

2010-03-05 Thread Peter Meier
Zitat von Ben Lavender : Can someone tell me what's wrong here? Or should I reopen #2487, http://projects.reductivelabs.com/issues/2487 ? [...] . . debug: //devusers/Dev_user[yuri]/ ssh_authorized_key[y...@devhost2.dev.cp]: Changing ensure debug: //devusers/Dev_user[yuri]/ ssh_authorized_key[y.

[Puppet Users] Re: ssh authorized keys fails

2010-03-05 Thread Ben Lavender
*slap forehead* This is on 0.25.4, the latest gem as of ~2 weeks ago. Thanks, Ben On Mar 5, 2:18 pm, Peter Meier wrote: > Zitat von Ben Lavender : > > > > > Can someone tell me what's wrong here?  Or should I reopen #2487, > >http://projects.reductivelabs.com/issues/2487? > > [...] > > . > > .

Re: [Puppet Users] exec -> creates question

2010-03-05 Thread Allan Marcus
The method you suggest is how we were first going to do a "one time script", but then we saw the "creates" parameter. What is the Creates parameter for then? Is it just redundant to [unless => "test -e MYFILE"] --- Thanks, Allan Marcus 505-667-5666 On Mar 4, 2010, at 2:36 PM, Steven VanDev

Re: [Puppet Users] exec -> creates question

2010-03-05 Thread Patrick
On Mar 5, 2010, at 8:46 AM, Allan Marcus wrote: > The method you suggest is how we were first going to do a "one time script", > but then we saw the "creates" parameter. > > What is the Creates parameter for then? Is it just redundant to [unless => > "test -e MYFILE"] > > --- > Mostly, it'

[Puppet Users] Re: variable containing applied classes?

2010-03-05 Thread jb
I see your point...after looking at the classes.txt file it does have a lot more than what I want. I'm in particular looking for classes that affect app deployment/management for the engineers so they can easily see what is under puppet control...they don't need to need to see the myriad of OS lev

[Puppet Users] About autosigning and the FAQ entry

2010-03-05 Thread Claus Divossen
Hello! The FAQ contains an entry about autosigning: http://reductivelabs.com/trac/puppet/wiki/FrequentlyAskedQuestions#why-shouldn-t-i-use-autosign-for-all-my-clients It says: > The certificate itself is stored, so two nodes could not connect with the same CN I tried this (using 0.25.4), an

[Puppet Users] puppet.conf problem after upgrading

2010-03-05 Thread byron appelt
I have been running puppet v0.24.5 installed via a debian package on Ubuntu. I am trying to upgrade to 0.25.4 installed via rubygem. Now when I try to run it I get the following error: (Puppet::Error)puppet.conf:[main]ings.rb:1028:in `parse_file': Could not match line [main] from /usr/lib/

Re: [Puppet Users] syntax

2010-03-05 Thread Dick Davies
On Thu, Mar 4, 2010 at 5:43 PM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >>> Well, it workes in erb test, but not when puppet runs: >>> >>> undefined method `start_with?' for  via puppet >>> >>> erb -x -T '-' test.erb | ruby -c  says Syntax OK >> >> I thought

Re: [Puppet Users] Puppet 0.24.8 RPM (0.25.4 client not backwards compatible)

2010-03-05 Thread Dick Davies
On Thu, Mar 4, 2010 at 7:27 PM, Douglas Garstang wrote: > Does anyone know where I can get the puppet 0.24.8 RPM? We had been > getting it from the public EPEL Repo, but it looks like they just > decided to upgrade the version in their repository to 0.25.4. We run a local mirror of EPEL, and we