[Puppet Users] Problems with autoloading modules

2011-01-13 Thread Arnau Bria
HI all, we've been explicity importing modules since we started working with puppet. We'd like to start using modules autoloading so I followed: p://docs.puppetlabs.com/guides/modules.html which only sys that puppet will load all modules under modulepath. Ok, so I have this modulepath:

[Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread luke.bigum
Hi Arnau, Your module folder name is called 'common_puppet' but you're class is called 'common_puppet_conf'. Option 1, rename the common_puppet class to common_puppet_conf, as according to your grep, the only class inside common_puppet/init.pp is class common_puppet_conf. The class definition in

Re: [Puppet Users] Selector with arrays

2011-01-13 Thread Felix Frank
On 01/11/2011 10:48 PM, Adam Crews wrote: $info = [ acrews, Adam, /bin/bash ] $shell = $info[2] ? { /bin/ = $info[2], default = /sbin/nologin, } I get: Syntax error at '?'; expected '} Am I doing something wrong, or is this a bug? To me, this looks like a bug. You should just

Re: [Puppet Users] Re: Best Practices/Style: add stuff to a file for each host?

2011-01-13 Thread Felix Frank
On 01/12/2011 05:08 PM, Robin Lee Powell wrote: On Tue, Jan 11, 2011 at 12:07:30PM -0800, Robin Lee Powell wrote: On Tue, Jan 11, 2011 at 05:20:38AM -0800, Al @ Lab42 wrote: You can build a file based on different fragments at least in 2 ways: - When you specify an array of templates , when

RE: [Puppet Users] Send Reports to Puppet Dashboard

2011-01-13 Thread Michael.Itchue
Patrick, This is what I have setup in the puppet.conf files on the master and client. Both servers are running puppet 2.6.4 On the Master in /etc/puppet/puppet.conf [master] reports = http, store reporturl = http://fedorahost.ocfl.net:3000/reports node_terminus = exec

Re: [Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Arnau Bria
On Thu, 13 Jan 2011 02:41:31 -0800 (PST) luke.bigum luke.bigum wrote: Hi Arnau, Hi Luke, Your module folder name is called 'common_puppet' but you're class is called 'common_puppet_conf'. O!! did not read about this requisite. Option 1, rename the common_puppet class to

Re: [Puppet Users] Selector with arrays

2011-01-13 Thread Adam Crews
On Thu, Jan 13, 2011 at 5:04 AM, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: On 01/11/2011 10:48 PM, Adam Crews wrote: $info = [ acrews, Adam, /bin/bash ] $shell = $info[2] ? {    /bin/ = $info[2],    default = /sbin/nologin, } I get: Syntax error at '?'; expected '} Am I doing

[Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread luke.bigum
On Jan 13, 2:34 pm, Arnau Bria arnaub...@pic.es wrote: Option 2, move the class declaration of common_puppet_conf out of init.pp and into common_puppet_conf.pp in the same directory, then you should be able to do this (note the use of the namespace common_puppet, which is your module

[Puppet Users] Re: Puppetmaster 2.6.x on Ubuntu Lucid

2011-01-13 Thread Luc Suryo
good point! :) On Jan 12, 3:20 pm, Patrick kc7...@gmail.com wrote: Well, your instructions also can work for upgrading puppet with a few small changes.  Might even work without changes. On Jan 12, 2011, at 2:54 PM, Luc Suryo wrote: that would be a catch 22 :) the instruction was an

[Puppet Users] Include module only if exists (per hostname modules)

2011-01-13 Thread Mohamed Lrhazi
Sorry if this is RTFM... I added code like so to my config: [master] templatedir = /etc/puppet/environments/$environment/ modulepath = /etc/puppet/environments/$environment/modules:/etc/puppet/environments/$environment/modules/per_host manifest=

[Puppet Users] Re: puppet, mongrel and apache

2011-01-13 Thread Jake - USPS
This is version of mongrel included with SLES10 SP3 eagnmnmbpe26:~ # rpm -q rubygem-mongrel -i Name: rubygem-mongrel Relocations: (not relocatable) Version : 0.3.13Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany Release : 2.4

Re: [Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Arnau Bria
On Thu, 13 Jan 2011 06:39:28 -0800 (PST) luke.bigum luke.bigum wrote: Just to give you some examples of auto loading complex modules with multiple classes and how that relates to class names: modules/puppet/init.pp = include puppet modules/puppet/master.pp = include puppet::master

Re: [Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Felix Frank
modules/puppet/master/woof.pp = include puppet::master::woof Because, you know...some puppet masters should really bark at you on occasion :-) [I love it] -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to

Re: [Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Nigel Kersten
On Thu, Jan 13, 2011 at 8:33 AM, Arnau Bria arnaub...@pic.es wrote: On Thu, 13 Jan 2011 06:39:28 -0800 (PST) luke.bigum luke.bigum wrote: Just to give you some examples of auto loading complex modules with multiple classes and how that relates to class names: modules/puppet/init.pp =

Re: [Puppet Users] Include module only if exists (per hostname modules)

2011-01-13 Thread Daniel Pittman
On Jan 13, 2011 8:16 AM, Mohamed Lrhazi lrh...@gmail.com wrote: Sorry if this is RTFM... I added code like so to my config: […] include m_$hostname Now host akubra gets its module fine, but other hosts log an error about their module not being found. Is there a way to avoid the errors?

[Puppet Users] Re: Multiple packages installation in one yum call

2011-01-13 Thread Stephane
You could do something like following: $wantedpackages = [ perl-DBI, perl-DBD-MySQL ] package { $wantedpackages: ensure = installed } In one call, we install 2 packages. I hope it helps. -Stephane On Jan 11, 3:09 am, Adriana adriana.tele...@gmail.com wrote: Hello, does anyone know if

Re: [Puppet Users] Re: Best Practices/Style: add stuff to a file for each host?

2011-01-13 Thread Al @ Lab42
On Wednesday, January 12, 2011 5:08:07 PM UTC+1, Robin Lee Powell wrote: On Tue, Jan 11, 2011 at 12:07:30PM -0800, Robin Lee Powell wrote: On Tue, Jan 11, 2011 at 05:20:38AM -0800, Al @ Lab42 wrote: You can build a file based on different fragments at least in 2 ways: - When

Re: [Puppet Users] Re: Multiple packages installation in one yum call

2011-01-13 Thread Nigel Kersten
On Wed, Jan 12, 2011 at 1:45 PM, Stephane sros...@gmail.com wrote: You could do something like following: $wantedpackages  = [ perl-DBI, perl-DBD-MySQL ] package { $wantedpackages: ensure = installed } In one call, we install 2 packages. That will actually create two resources that are

Re: [Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Daniel Pittman
On Thu, Jan 13, 2011 at 08:54, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Jan 13, 2011 at 8:33 AM, Arnau Bria arnaub...@pic.es wrote: On Thu, 13 Jan 2011 06:39:28 -0800 (PST) luke.bigum luke.bigum wrote: Just to give you some examples of auto loading complex modules with multiple

[Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Ahmed El Gamil
Thanks Nigel !, This really needs some enhancement .. On Jan 13, 6:54 pm, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Jan 13, 2011 at 8:33 AM, Arnau Bria arnaub...@pic.es wrote: On Thu, 13 Jan 2011 06:39:28 -0800 (PST) luke.bigum luke.bigum wrote: Just to give you some examples of

[Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread Ahmed El Gamil
Thanks Nigel !, This really needs some enhancement .. On Jan 13, 6:54 pm, Nigel Kersten ni...@puppetlabs.com wrote: On Thu, Jan 13, 2011 at 8:33 AM, Arnau Bria arnaub...@pic.es wrote: On Thu, 13 Jan 2011 06:39:28 -0800 (PST) luke.bigum luke.bigum wrote: Just to give you some examples of

Re: [Puppet Users] Re: puppet, mongrel and apache

2011-01-13 Thread Daniel Pittman
On Thu, Jan 13, 2011 at 08:20, Jake - USPS jacob.m.mcc...@usps.gov wrote: This is version of mongrel included with SLES10 SP3 eagnmnmbpe26:~ # rpm -q rubygem-mongrel -i Version     : 0.3.13                            Vendor: SUSE LINUX [..] I didn't see anywhere a version of mongrel that

[Puppet Users] Virtual resources, account module help.

2011-01-13 Thread Adam Crews
Hello, I'm trying to rebuild my accounts module so that will completely manage users via puppet. In my env, as much as I would like to, I cannot use nis or ldap for authentication, so I'm trying to do it the puppet way, but I seem to be a little stuck. I would like to maintain a list of users

[Puppet Users] Problem restarting the agent

2011-01-13 Thread Wesley Wu
Just installed Puppet 2.6.4 on Ubuntu 10.10 I was trying to restart the puppet agent but got the following error and the agent didn't run: $ sudo puppetd --server server.domain.com --waitforcert 60 --test err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0

[Puppet Users] Re: Multiple packages installation in one yum call

2011-01-13 Thread donavan
On Jan 12, 1:45 pm, Stephane sros...@gmail.com wrote: You could do something like following: $wantedpackages  = [ perl-DBI, perl-DBD-MySQL ] package { $wantedpackages: ensure = installed } In one call, we install 2 packages. Stephane, the problem is with requirements inside the rpms. If

Re: [Puppet Users] Problem restarting the agent

2011-01-13 Thread Michael Knox
On 14/01/11 7:20 AM, Wesley Wu wrote: Just installed Puppet 2.6.4 on Ubuntu 10.10 I was trying to restart the puppet agent but got the following error and the agent didn't run: $ sudo puppetd --server server.domain.com --waitforcert 60 --test err: Could not retrieve catalog from remote server:

[Puppet Users] How to add ubuntu ppa

2011-01-13 Thread Kevin Beckford
Now, I noticed the yumrepo, but this is of little use today, I need to add an ubuntu ppa ( a few really ) to my installation. How would this be done? Is there a provider that can do this? I searched for one, and saw an answer dating from 09, but surely things have changed since then? -- You

Re: [Puppet Users] Problem restarting the agent

2011-01-13 Thread Wesley Wu
Thank you Mike. Both my Puppet master and the agent are NTP clients. So they are sync'ed. Is there a way to flush the agent's certificate and retrieve it from the master again? Thanks, Wesley On Thu, Jan 13, 2011 at 4:46 PM, Michael Knox michael.knox...@gmail.comwrote: On 14/01/11 7:20 AM,

Re: [Puppet Users] Problem restarting the agent

2011-01-13 Thread Michael Knox
On 14/01/11 9:49 AM, Wesley Wu wrote: Thank you Mike. Both my Puppet master and the agent are NTP clients. So they are sync'ed. Is there a way to flush the agent's certificate and retrieve it from the master again? Thanks, Wesley To remove all your certs on the client ... rm -rf

Re: [Puppet Users] How to add ubuntu ppa

2011-01-13 Thread Nigel Kersten
On Thu, Jan 13, 2011 at 2:07 PM, Kevin Beckford lazy...@gmail.com wrote: Now, I noticed the yumrepo, but this is of little use today, I need to add an ubuntu ppa ( a few really ) to my installation.  How would this be done?  Is there a provider that can do this? I searched for one, and saw an

Re: [Puppet Users] Problem restarting the agent

2011-01-13 Thread Jeff McCune
On Thu, Jan 13, 2011 at 12:20 PM, Wesley Wu wesley.q...@gmail.com wrote: Just installed Puppet 2.6.4 on Ubuntu 10.10 I was trying to restart the puppet agent but got the following error and the agent didn't run: $ sudo puppetd --server server.domain.com --waitforcert 60 --test err: Could

[Puppet Users] Help with Oracle Installer manifest

2011-01-13 Thread Corey Osman
Hi, I am somewhat new to puppet and I wanted to show a demo that automated the install of oracle to my DBA in hopes to entice him to start automating his procedures. I have linked my manifest code below for review. In the code I have attempted to automate a complete oracle install by

Re: [Puppet Users] Help with Oracle Installer manifest

2011-01-13 Thread Patrick
On Jan 13, 2011, at 6:26 PM, Corey Osman wrote: What happens when it takes a while to transfer 1.8GB file? Just a quick warning before I leave, don't even think of copying this using puppet if you have version 0.25.x or below. Those version load the whole file into RAM before copying.

Re: [Puppet Users] Help with Oracle Installer manifest

2011-01-13 Thread Mohamed Lrhazi
Look at this example I wrote to install a netbackup client on redhat... am no expert, but it might help you...: http://pastebin.com/QLk14h6s Mohamed. On Thu, Jan 13, 2011 at 9:26 PM, Corey Osman co...@logicminds.biz wrote: Hi, I am somewhat new to puppet and I wanted to show a demo that

[Puppet Users] Re: Help with Oracle Installer manifest

2011-01-13 Thread Corey Osman
On Jan 13, 7:19 pm, Patrick kc7...@gmail.com wrote: On Jan 13, 2011, at 6:26 PM, Corey Osman wrote: What happens when it takes a while to transfer 1.8GB file?   Just a quick warning before I leave, don't even think of copying this using puppet if you have version 0.25.x or below.  Those