[Puppet Users] Re: Help with Oracle Installer manifest

2011-01-13 Thread Corey Osman
On Jan 13, 7:19 pm, Patrick 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 version lo

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 wrote: > Hi, > > I am somewhat new to puppet and I wanted to show a demo that automated the > insta

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. Th

[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 follow

Re: [Puppet Users] Problem restarting the agent

2011-01-13 Thread Jeff McCune
On Thu, Jan 13, 2011 at 12:20 PM, 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 cata

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 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 answer dating

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 /var/lib/

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 wrote: > On 14/01/11 7:20 AM, Wesley Wu wrote: > >> Ju

[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 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] Re: Multiple packages installation in one yum call

2011-01-13 Thread donavan
On Jan 12, 1:45 pm, Stephane 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 a.rpm requir

[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 state=SSL

[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 (c

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

2011-01-13 Thread Daniel Pittman
On Thu, Jan 13, 2011 at 08:20, Jake - USPS 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 was required at a > m

[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 wrote: > On Thu, Jan 13, 2011 at 8:33 AM, Arnau Bria 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

[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 wrote: > On Thu, Jan 13, 2011 at 8:33 AM, Arnau Bria 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

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

2011-01-13 Thread Daniel Pittman
On Thu, Jan 13, 2011 at 08:54, Nigel Kersten wrote: > On Thu, Jan 13, 2011 at 8:33 AM, Arnau Bria 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

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 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 installed sep

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:

[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 wrote: > Hello, > does anyone know if featurehttp://projects.pu

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" 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? Pup

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 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 => include pup

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 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 > m

[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

[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= /etc/puppet/environments/$environ

[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 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 answer t

[Puppet Users] Re: Problems with autoloading modules

2011-01-13 Thread luke.bigum
On Jan 13, 2:34 pm, Arnau Bria 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 name): > > > i

Re: [Puppet Users] Selector with arrays

2011-01-13 Thread Adam Crews
On Thu, Jan 13, 2011 at 5:04 AM, Felix Frank 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 someth

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 common_pup

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 external_nodes

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

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

[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 i

[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: modulepat