Re: [Puppet Users] Namespace syntax within a module.....

2010-06-11 Thread Nigel Kersten
On Fri, Jun 11, 2010 at 8:47 AM, CraftyTech wrote: > Hello All, > >     newbie question here: > So I have: > /etc/puppet/modules/foo > /etc/puppet/modules/foo/manifests/init.pp > /etc/puppet/modules/foo/manifests/something.pp > > something.pp: class something{} > init.pp: class foo { >        

Re: [Puppet Users] Unable to use custom type loaded from module

2010-06-11 Thread Nigel Kersten
On Fri, Jun 11, 2010 at 7:59 PM, Daniel Pittman wrote: > Ben Beuchler writes: > >> I found myself unable to load/use a custom type I've been working on.  To >> minimize the variables, I copy-n-pasted the "File" example from the >> documentation link below, just changing the name from "file" to "h

Re: [Puppet Users] appdmg and pkgdmg source

2010-06-13 Thread Nigel Kersten
On Sun, Jun 13, 2010 at 5:18 AM, Markus Falb wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > I tried something like this > > package { "tunnelblick": >        ensure => present, >        source => "puppet:///vpn/Tunnelblick_3.0.dmg", >        provider => appdmg, > } The Mac pac

Re: [Puppet Users] Unable to use custom type loaded from module

2010-06-14 Thread Nigel Kersten
On Mon, Jun 14, 2010 at 2:36 PM, Ben Beuchler wrote: >> There are a bunch of workarounds for this though. >> >> A lot of the time you can get away with just a shell provider and type >> for manifest validation, as the client will get the right one synced >> down for use in actual resource applicat

Re: [Puppet Users] Unable to use custom type loaded from module

2010-06-15 Thread Nigel Kersten
On Tue, Jun 15, 2010 at 1:00 AM, Thomas Bellman wrote: > On 2010-06-15 01:21, Nigel Kersten wrote: > >> Sorry, I wasn't quite clear. You need to make this accessible to the >> libdir on the *server*. >> >> So whatever your puppetmasterd libdir is, you need to so

Re: [Puppet Users] Unable to use custom type loaded from module

2010-06-15 Thread Nigel Kersten
On Tue, Jun 15, 2010 at 7:58 AM, Thomas Bellman wrote: > On 2010-06-15 16:20, Nigel Kersten wrote: > >> On Tue, Jun 15, 2010 at 1:00 AM, Thomas Bellman >>  wrote: > >>> I think it is sufficient to set modulepath under [puppetmasterd] in >>> the puppet.conf

Re: [Puppet Users] puppetca unable to sign new certs - Invalid argument error

2010-06-15 Thread Nigel Kersten
On Tue, Jun 15, 2010 at 7:57 AM, Jesse Reynolds wrote: > On 16 June 2010 00:06, James Turnbull wrote: >> Looks like you've got some old code floating around.  I'd remove all of >> Puppet and then re-install. > > OK, I'll have a big hunt. > > I've tried uninstalling puppet with mac ports and re-in

Re: [Puppet Users] Unable to use custom type loaded from module

2010-06-15 Thread Nigel Kersten
On Tue, Jun 15, 2010 at 9:23 AM, Alan Barrett wrote: > On Tue, 15 Jun 2010, Nigel Kersten wrote: >> >> I dislike setting a default modulepath, as it means that's the one >> >> clients get if they incorrectly specify their environment. >>

Re: [Puppet Users] Unable to use custom type loaded from module

2010-06-15 Thread Nigel Kersten
On Tue, Jun 15, 2010 at 12:41 PM, Ben Beuchler wrote: > I had two problems. Nigel and Daniel correctly identified one of them > and Jonathan contacted me off-list to point out that I can't have my > custom type living in a subdir of "lib/puppet/type". I moved > haddock.rb from lib/puppet/type/h

Re: [Puppet Users] Separate install for just client code?

2010-06-15 Thread Nigel Kersten
On Tue, Jun 15, 2010 at 3:04 PM, Richard Crowley wrote: > On Tue, Jun 15, 2010 at 2:27 PM, Forrie wrote: >> Is there a way to just install the client component of the Puppet gem, >> install of both on systems that don't need the server/master >> component. > > There's only the monolithic gem as f

Re: [Puppet Users] puppetca unable to sign new certs - Invalid argument error

2010-06-15 Thread Nigel Kersten
On Tue, Jun 15, 2010 at 4:13 PM, Eric Sorenson wrote: > I have seen this too; I suspect (but have not been able to reduce a simple > test case to confirm) that the ruby-openssl bindings in snow leopard are > returning EINVAL (thus the "Invalid argument" string) when called from > puppet. But it s

Re: [Puppet Users] Re: strange string in /etc/shadow

2010-06-15 Thread Nigel Kersten
On Tue, Jun 15, 2010 at 6:32 PM, donavan wrote: > On Jun 15, 2:39 pm, "Gus F." wrote: > > I am using puppet (version 0.25.5-1.e15 for redhat) for password > > management for non-system users. This morning, users on some of my > > puppet clients had their encrypted password strings in /etc/shado

Re: [Puppet Users] module organisation

2010-06-16 Thread Nigel Kersten
On Wed, Jun 16, 2010 at 8:56 AM, Stefan Schlesinger wrote: >        Hello folks! > > Since you cannot include modules twice, or overwrite anything > within a namespace, I'm looking for a way to organize my modules. > >        I initially started to create the following structure, which > will avoi

Re: [Puppet Users] Re: Automated installation of Puppetmaster and Dashboard

2010-06-17 Thread Nigel Kersten
On Thu, Jun 17, 2010 at 4:23 PM, PBWebGuy wrote: > Hi Bryan, > > I was just looking over your puppet-puppet recipe and I was curious on > how you are managing your different target environments.  I see that > you have defined different trees for each environment: > [development] >    manifest = /e

Re: [Puppet Users] Multiple environments and mail

2010-06-18 Thread Nigel Kersten
On Fri, Jun 18, 2010 at 10:34 AM, Robert Scheer wrote: > To facilitate developing, testing and releasing puppet code, we use > different environments. That works very well. The only problem is that > I cannot prevent puppet from mailing a report, nor direct it somewhere > else, when using a differ

Re: [Puppet Users] passing variables to static files

2010-06-18 Thread Nigel Kersten
On Fri, Jun 18, 2010 at 11:47 AM, CraftyTech wrote: > Hello All, > >      I have quick question for you; How can I pass a variable to a > static file that I'm distributing via puppet?  i.g, : > class abc { >     file { "/etc/abc.conf": >           ensure => present >           source => "puppet://

Re: [Puppet Users] Bootstrapping Puppet on Mac OS X

2010-07-25 Thread Nigel Kersten
On Fri, Jul 23, 2010 at 11:47 AM, Trevor Menagh wrote: > Hi all, > > I am new to puppet and have been working on getting it up and running > on OS X. I finally got it working, but it took a lot of head pounding > so I wrote a post about it (http://trevmex.com/post/850520511/ > bootstrapping-puppet

Re: [Puppet Users] Reconciling resource defaults, dynamic scope, and the singleton nature of classes

2010-07-29 Thread Nigel Kersten
On Thu, Jul 29, 2010 at 10:48 AM, Jeff McCune wrote: > Perhaps it might be useful to set resource defaults only for the local > scope, and not for any classes which get included into this scope. > How do you feel about this change to the language? So this would mean that you'd only be able to se

Re: [Puppet Users] Reconciling resource defaults, dynamic scope, and the singleton nature of classes

2010-07-29 Thread Nigel Kersten
On Thu, Jul 29, 2010 at 11:51 AM, Jeff McCune wrote: > On Thu, Jul 29, 2010 at 12:37 PM, Nigel Kersten wrote: >> On Thu, Jul 29, 2010 at 10:48 AM, Jeff McCune wrote: >> >>> Perhaps it might be useful to set resource defaults only for the local >>> scope,

Re: [Puppet Users] Reconciling resource defaults, dynamic scope, and the singleton nature of classes

2010-07-29 Thread Nigel Kersten
On Thu, Jul 29, 2010 at 12:11 PM, R.I.Pienaar wrote: > > - "Jeff McCune" wrote: > >> On Thu, Jul 29, 2010 at 12:07 PM, R.I.Pienaar wro> >> > - "Jeff McCune" wrote: >> > >> >> I make the recommendation that classes should include the classes >> >> they depend on, but this appears to be p

Re: [Puppet Users] Reconciling resource defaults, dynamic scope, and the singleton nature of classes

2010-07-29 Thread Nigel Kersten
On Thu, Jul 29, 2010 at 12:28 PM, R.I.Pienaar wrote: > > - "Nigel Kersten" wrote: > >> On Thu, Jul 29, 2010 at 12:11 PM, R.I.Pienaar wrote: >> > >> > - "Jeff McCune" wrote: >> > >> >> On Thu, Jul

Re: [Puppet Users] External Nodes using Curly Braces

2010-08-03 Thread Nigel Kersten
On Tue, Aug 3, 2010 at 12:03 PM, Douglas Garstang wrote: > The yaml specification says that yaml can either be formatted with > indentation, AND/OR with curly braces. > Does puppet handle the output from an external node script dumping > yaml output with curly braces? > > The python yaml library's

Re: [Puppet Users] Re: generating catalog files

2010-08-03 Thread Nigel Kersten
On Tue, Aug 3, 2010 at 7:38 PM, Jon Wilson wrote: > OK, some success. I get some unformatted output, PSON I think. I'm > pretty sure it just takes the node definition as input (cached if > available) and merely compiles my classes. I don't think facts get > involved, because that's part of the ins

Re: [Puppet Users] ANNOUNCE: Puppet 2.6.0 - Final release!

2010-08-09 Thread Nigel Kersten
On Mon, Aug 9, 2010 at 8:27 AM, Douglas Garstang wrote: > On Sun, Aug 8, 2010 at 2:54 PM, Peter Meier wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 08/07/2010 12:29 AM, Douglas Garstang wrote: >>> On Mon, Jul 19, 2010 at 10:23 PM, James Turnbull >>> wrote: The journey

Re: [Puppet Users] Re: Problems with require inside a definition

2010-08-10 Thread Nigel Kersten
Argh. Everyone is doing this require dance because of the docs on definitions right? http://docs.puppetlabs.com/guides/language_tutorial.html#definitions We had a chat about that on the list a while ago and realized that was horribly out of date, I'll try to get a patch in to fix it. On Tue, A

Re: [Puppet Users] install package based on operatingsystem AND operatingsystemrelease

2010-08-11 Thread Nigel Kersten
On Wed, Aug 11, 2010 at 9:48 AM, Nan Liu wrote: > On Wed, Aug 11, 2010 at 11:55 AM, Jason Amato wrote: >> >> How can I create a class to install a RPM based on the o/s type and >> the o/s release. >> I want to install a package on SLES, but only if it's release 11, not >> 10. >> > > I suppose you

Re: [Puppet Users] Optionally ensuring a service is running

2010-08-11 Thread Nigel Kersten
On Wed, Aug 11, 2010 at 9:27 AM, Marc Zampetti wrote: >  I want puppet to normally manage the running state of a service, so that if > the service stops, it is restarted, etc. But during maintenance windows, I > want puppet to leave the service in whatever state it is in. My idea is to > have a fi

Re: [Puppet Users] Re: Installing packages that use dbconfig-common on Debian

2010-08-12 Thread Nigel Kersten
Paul, have you seen http://projects.puppetlabs.com/issues/2349 ? If more people watch that, I'm more likely to prioritize doing that :) Alternative suggestions welcome. On Thu, Aug 12, 2010 at 10:35 AM, Paul Hamby wrote: > We created a definition in our "apt" module called preseed_package and >

Re: [Puppet Users] Frequent "Could not retrieve file metadata" errors

2010-08-20 Thread Nigel Kersten
On Thu, Aug 19, 2010 at 1:39 AM, Tim wrote: > I get errors like this randomly on some of my puppet clients: > > puppetd[7303]: (//munin/Config-file[muninnode]/File[/etc/m > unin/munin-node.conf]) Failed to retrieve current state of resource: > Could not > retrieve file metadata for > puppet://pup

Re: [Puppet Users] trying to start puppetmasterd for the first time - but it only spits out the config file for the master and exits

2010-08-24 Thread Nigel Kersten
do you have genconfig = true in your config file? On Tue, Aug 24, 2010 at 6:11 AM, JL wrote: > Trying to get puppet running - ran through the ruby setup.rb. > Now, when trying to fire up puppetmasterd for the first time (and I > have a bare-bones /etc/puppet/manifests/site.pp in place) it spits

Re: [Puppet Users] How to bootstrap a new puppet instance?

2010-08-26 Thread Nigel Kersten
On Thu, Aug 26, 2010 at 8:36 AM, Mike Peck wrote: > I've spent some time beginning to learn how puppet works, and one > seemingly rather daunting task I'm facing, is how to setup the initial > state of things. > > What I'm specifically thinking about, is that I have machines running > that I want

Re: [Puppet Users] Definitions in External Nodes

2010-08-28 Thread Nigel Kersten
On Sat, Aug 28, 2010 at 9:04 AM, Douglas Garstang wrote: > On Thu, Aug 26, 2010 at 11:17 AM, Rob McBroom > wrote: >> On Aug 26, 2010, at 12:58 PM, Douglas Garstang wrote: >> >>> Anyone know if there's a plan to allow definitions to be used in >>> external nodes? Not having that ability is a majo

Re: [Puppet Users] Definitions in External Nodes

2010-08-30 Thread Nigel Kersten
On Sat, Aug 28, 2010 at 4:48 PM, Douglas Garstang wrote: > On Sat, Aug 28, 2010 at 3:49 PM, Thomas Bellman wrote: >> Nigel Kersten wrote: >> >>> On Sat, Aug 28, 2010 at 9:04 AM, Douglas Garstang >>> wrote: >> >>>> I mean that you need to crea

[Puppet Users] #3933 - making puppetd fail as soon as a resource fails.

2010-08-30 Thread Nigel Kersten
http://projects.puppetlabs.com/issues/3933 This seems worthy of collecting more feedback... Anyone else interested in this feature? How would you want it to be implemented? -- nigel -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to

Re: [Puppet Users] Definitions in External Nodes

2010-08-30 Thread Nigel Kersten
On Mon, Aug 30, 2010 at 5:35 PM, Alan Sparks wrote: >  On 8/30/2010 9:44 AM, Nigel Kersten wrote: >> This is much clearer now. >> >> Can you not solve this problem with extlookup now rather than having >> to write custom functions?  Either key the relevant data off a b

Re: [Puppet Users] Re: Inherit VS include

2010-08-31 Thread Nigel Kersten
On Tue, Aug 31, 2010 at 4:35 AM, Oliver Hookins wrote: > On Aug 31, 10:09 am, Kenneth Holter wrote: >> Hello all. >> >> Are there any rule of thumb regarding using "inherits" versus "include"? For >> example, if I'm creating the class "syslog::base" which should servere as a >> building block for

Re: [Puppet Users] Puppet + APT, I am lost...

2010-08-31 Thread Nigel Kersten
On Tue, Aug 31, 2010 at 7:03 AM, Martijn Grendelman wrote: > Hi, > > For the past week, I have been trying to figure out the best way to do > package management with Puppet on an Ubuntu system. I have studied many > solutons I found on the web, but none of them seem to do exactly what I want. > >

Re: [Puppet Users] Puppet + APT, I am lost...

2010-08-31 Thread Nigel Kersten
On Tue, Aug 31, 2010 at 1:02 PM, Martijn Grendelman wrote: > Hi Nigel Kersten, > > Thank you for your elaborate answer. I am not sure how to proceed, though... > >>> What I would like, is for Puppet to run `aptitude update` before it >>> installs or upgrades packages

Re: [Puppet Users] Puppet + APT, I am lost...

2010-08-31 Thread Nigel Kersten
On Tue, Aug 31, 2010 at 1:41 PM, Darren Chamberlain wrote: > * Martijn Grendelman [2010/08/31 22:02]: >> What I would like, is for Puppet to run `aptitude update` before >> it installs or upgrades packages. That doesn't seem out of the >> ordinary to me, but I can't make it work in Puppet. > > I

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Nigel Kersten
On Tue, Aug 31, 2010 at 3:35 PM, Martijn Grendelman wrote: > But for this to work, the Puppet run needs to run aptitude update to > pick up the new package name. Running the update periodically isn't > enough, but running an update on every catalog run is just overkill. I understand your concer

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Nigel Kersten
On Mon, Sep 6, 2010 at 10:56 AM, Silviu Paragina wrote: > As it was said earlier if you have a ensure => latest you should probably > have (also) a cron job for updates. I think it's much more difficult to manage multiple schedules, and to deal with inconsistencies when people manually run Puppe

Re: [Puppet Users] Puppet + APT, I am lost...

2010-09-06 Thread Nigel Kersten
On Mon, Sep 6, 2010 at 11:52 AM, Silviu Paragina wrote: >  On 06.09.2010 21:03, Nigel Kersten wrote: >> >> On Mon, Sep 6, 2010 at 10:56 AM, Silviu Paragina >>  wrote: >> >>> As it was said earlier if you have a ensure =>  latest you should >>>

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Nigel Kersten
On Mon, Sep 6, 2010 at 11:53 AM, Douglas Garstang wrote: > On Mon, Sep 6, 2010 at 11:31 AM, James Turnbull wrote: >> Douglas Garstang wrote: >>> 2010/9/6 Héctor Rivas Gándara : On Sat, Sep 4, 2010 at 10:44 PM, Douglas Garstang wrote: > Can someone tell me why, when I restart p

Re: [Puppet Users] Errors in 2.6.1

2010-09-06 Thread Nigel Kersten
On Mon, Sep 6, 2010 at 6:09 PM, Douglas Garstang wrote: > On Mon, Sep 6, 2010 at 4:52 PM, Nigel Kersten wrote: >> On Mon, Sep 6, 2010 at 11:53 AM, Douglas Garstang >> wrote: >>> On Mon, Sep 6, 2010 at 11:31 AM, James Turnbull >>> wrote: >>>> Dougla

Re: [Puppet Users] Errors in 2.6.1

2010-09-07 Thread Nigel Kersten
On Tue, Sep 7, 2010 at 7:47 AM, Dan Urist wrote: > On Mon, 6 Sep 2010 16:52:05 -0700 > Nigel Kersten wrote: > > >> I've actually always considered this to be relatively comprehensible. >> >> Client and server start with a clean slate. >> Client reques

Re: [Puppet Users] custom facts setup questions

2010-09-08 Thread Nigel Kersten
On Tue, Sep 7, 2010 at 1:59 PM, James Cammarata wrote: > > I'm trying to setup a module to deploy custom facts, and I'm running into > some issues. > > I've created a directory called "custom" in my modules directory, and > created sub-directories there so I have custom/lib/facter (as is described

Re: [Puppet Users] custom facts setup questions

2010-09-08 Thread Nigel Kersten
On Wed, Sep 8, 2010 at 9:25 AM, James Cammarata wrote: > >>> The only way to get rid of this error is to set the libdir variable, >>> which >>> I don't think is right.  Can anyone point out what I'm doing wrong > here? >>> The documentation on custom facts is pretty horrible, and is too much a >>>

Re: [Puppet Users] custom facts setup questions

2010-09-08 Thread Nigel Kersten
On Wed, Sep 8, 2010 at 9:53 AM, James Cammarata wrote: > > On Wed, 8 Sep 2010 09:46:15 -0700, Nigel Kersten > wrote: >> On Wed, Sep 8, 2010 at 9:25 AM, James Cammarata wrote: >>> >>>>> The only way to get rid of this error is to set the libdir variable, &

Re: [Puppet Users] custom facts setup questions

2010-09-08 Thread Nigel Kersten
On Wed, Sep 8, 2010 at 11:39 AM, James Cammarata wrote: > >> Just for the record, I have many tens of thousands of 0.25.4-1 >> clients, and I've never ever seen this problem with pluginsync. > > Yep, just upgraded to 0.25.5-1 from EPEL and the issue/URL is the same: > > [2010-09-08 14:34:51] myser

Re: [Puppet Users] custom facts setup questions

2010-09-08 Thread Nigel Kersten
On Wed, Sep 8, 2010 at 12:05 PM, James Cammarata wrote: > > On Wed, 8 Sep 2010 12:02:09 -0700, Nigel Kersten wrote: >> On Wed, Sep 8, 2010 at 11:39 AM, James Cammarata wrote: >>> >>>> Just for the record, I have many tens of thousands of 0.25.4-1 >>&g

Re: [Puppet Users] puppetmaster HA

2010-09-10 Thread Nigel Kersten
On Fri, Sep 10, 2010 at 9:09 AM, Sukh Khehra wrote: > I recently lost the only puppetmaster for a datacenter. I ended up having to > build a new one and then hit all clients to remove /var/lib/puppet/ssl and > point them to the new one I built. That was not fun. > > > > I can start backing up the

Re: [Puppet Users] puppetmaster HA

2010-09-10 Thread Nigel Kersten
On Fri, Sep 10, 2010 at 10:40 AM, Steven wrote: > Hi Sukh, > > > > This has always been possible and it was on my list of things to do. My idea > was to make systems use the server in their data center and fail over to > another data center if it was not responding. > > > > You need to setup a glo

Re: [Puppet Users] files/templates from sub-modules

2010-09-10 Thread Nigel Kersten
On Fri, Sep 10, 2010 at 3:02 PM, Dan Urist wrote: > Is it possible to have a sub-module that has its own files and > templates directories? For example, if I create a sub-module > base::logrotate with a template path like this: > >> base/logrotate/templates > > I've tried this, but when I try to a

Re: [Puppet Users] puppetmaster HA

2010-09-10 Thread Nigel Kersten
On Fri, Sep 10, 2010 at 4:44 PM, John Ferlito wrote: > On Fri, Sep 10, 2010 at 03:09:50PM -0700, Nigel Kersten wrote: >> On Fri, Sep 10, 2010 at 10:40 AM, Steven wrote: >> > You need to setup a global CA infrastructure. This would be one root with >> > all the puppet

Re: [Puppet Users] cucumber-puppet and environments

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 6:28 AM, Bruce Richardson wrote: > On Tue, Sep 14, 2010 at 08:34:00AM -0400, Ryan Coleman wrote: >> Hi Oliver, try: >> >> http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments > > I've never been fond of the way RoR treats environments (or, at least, >

Re: [Puppet Users] Managing puppet.conf and other critical config files

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 9:07 AM, James Cammarata wrote: > > Is there any built-in method for puppet to update its own configs and then > restart a puppetd run should they change? One of the (few) features of > cfengine I always liked was that you had your emergency configs, which > allowed you to

Re: [Puppet Users] Managing puppet.conf and other critical config files

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 9:24 AM, James Cammarata wrote: > >> We manage puppet.conf as a template. >> >> I've often wanted something similar to your feature request, where you >> could signify in a puppet manifest that the whole run should simply >> restart at that point.  You should file it :) >>

Re: [Puppet Users] Convert string to int?

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 12:12 PM, Douglas Garstang wrote: > If I have... > >    $version_core = "t.1538-1" >    $is_trunk_release = regsubst($version_core, '^(.*?)\.(.*?)$', '\1') >    if $is_trunk_release == "t" { >        notice ("here 1") >        if $t >= 1583 { >            notice ("here 2")

Re: [Puppet Users] Re: Convert string to int?

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 12:19 PM, Douglas Garstang wrote: > On Tue, Sep 14, 2010 at 12:12 PM, Douglas Garstang > wrote: >> If I have... >> >>    $version_core = "t.1538-1" >>    $is_trunk_release = regsubst($version_core, '^(.*?)\.(.*?)$', '\1') >>    if $is_trunk_release == "t" { >>        notic

Re: [Puppet Users] Small bug: puppet.spec still refers to 2.6.0

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 3:28 PM, Douglas Garstang wrote: > On Tue, Sep 14, 2010 at 3:03 PM, James Turnbull wrote: >> Forrie wrote: >>> Minor buglet:  the *.spec file for linux needs to be updated for >>> 2.6.1. >>> >> >> This is usually done by the packagers at some point.  We only maintain >> th

Re: [Puppet Users] Small bug: puppet.spec still refers to 2.6.0

2010-09-14 Thread Nigel Kersten
On Tue, Sep 14, 2010 at 3:51 PM, Douglas Garstang wrote: > On Tue, Sep 14, 2010 at 3:34 PM, Nigel Kersten wrote: >> On Tue, Sep 14, 2010 at 3:28 PM, Douglas Garstang >> wrote: >>> On Tue, Sep 14, 2010 at 3:03 PM, James Turnbull >>> wrote: >>>>

Re: [Puppet Users] cucumber-puppet and environments

2010-09-15 Thread Nigel Kersten
On Wed, Sep 15, 2010 at 2:01 AM, Alan Barrett wrote: > On Tue, 14 Sep 2010, Bruce Richardson wrote: >> On Tue, Sep 14, 2010 at 08:34:00AM -0400, Ryan Coleman wrote: >> > Hi Oliver, try: >> > >> > http://projects.puppetlabs.com/projects/1/wiki/Using_Multiple_Environments >> >> I've never been fond

[Puppet Users] #3933 - Option to make puppet fail as soon as a resource fails.

2010-09-15 Thread Nigel Kersten
http://projects.puppetlabs.com/issues/3933 "Basically I’d like the equivalent of bash “set -e” on Puppet client runs. When you’re debugging weird transient failures, it would be a lot faster if you could just make puppetd die as soon as a resource failed." There's some discussion on the bug, and

Re: [Puppet Users] Glassfish asadmin provider

2010-09-15 Thread Nigel Kersten
On Wed, Sep 15, 2010 at 12:25 PM, Darren Chamberlain wrote: > * Nan Liu [2010/09/15 12:08]: >> Check some hard coded path, and tries to detect if it's available in $PATH >> using which: >> >> case >> when File.executable?("/opt/NSBglassfish/bin/asadmin") >>   commands :asadmin => "/opt/NSBglassfi

Re: [Puppet Users] cucumber-puppet and environments

2010-09-15 Thread Nigel Kersten
On Wed, Sep 15, 2010 at 12:31 PM, Alan Barrett wrote: > On Wed, 15 Sep 2010, Nigel Kersten wrote: >> > The external node classifier can override the client's idea of the >> > environment. >> >> It can't really. >> >> http://projects.puppetla

Re: [Puppet Users] cucumber-puppet and environments

2010-09-15 Thread Nigel Kersten
On Wed, Sep 15, 2010 at 12:53 PM, Alan Barrett wrote: > On Wed, 15 Sep 2010, Nigel Kersten wrote: >> On Wed, Sep 15, 2010 at 12:31 PM, Alan Barrett wrote: >> > On Wed, 15 Sep 2010, Nigel Kersten wrote: >> >> > The external node classifier can override the client&

Re: [Puppet Users] cucumber-puppet and environments

2010-09-16 Thread Nigel Kersten
On Thu, Sep 16, 2010 at 1:15 AM, Bruce Richardson wrote: > On Wed, Sep 15, 2010 at 09:31:19PM +0200, Alan Barrett wrote: >> I use an external node classifier purely for the purpose of setting >> the environment (and a parameter called $error_message or something, >> but not any classes).  There ar

Re: [Puppet Users] Chained puppet servers

2010-09-16 Thread Nigel Kersten
On Thu, Sep 16, 2010 at 6:03 PM, Patrick wrote: > > On Sep 16, 2010, at 10:56 AM, Jewels wrote: > >> I think this should work - but I don't want to break production - so.. >> >> There are several firewalls involved, but I can open 8140 as needed. >> So if I have a master server in one subnet and a

Re: [Puppet Users] cucumber-puppet and environments

2010-09-17 Thread Nigel Kersten
On Fri, Sep 17, 2010 at 6:10 AM, Alan Barrett wrote: > On Thu, 16 Sep 2010, Bruce Richardson wrote: >> On Wed, Sep 15, 2010 at 09:31:19PM +0200, Alan Barrett wrote: >> > I use an external node classifier purely for the purpose of setting >> > the environment [...] >> You're still trusting the clie

Re: [Puppet Users] Can I access data structure internal to providers

2010-09-17 Thread Nigel Kersten
On Fri, Sep 17, 2010 at 4:32 AM, John Warburton wrote: > Hi > > I would like to be able to access the hash "info2hash" in > lib/puppet/provider/package/sun.rb which is a list of all Solaris packages > on a Sun server > > Is it possible to query this so that I don't have to run "pkginfo -l" > mysel

Re: [Puppet Users] cucumber-puppet and environments

2010-09-17 Thread Nigel Kersten
On Fri, Sep 17, 2010 at 9:42 AM, Alan Barrett wrote: > On Fri, 17 Sep 2010, Nigel Kersten wrote: >> >> On Wed, Sep 15, 2010 at 09:31:19PM +0200, Alan Barrett wrote: >> >> > I use an external node classifier purely for the purpose of >> >> > setting

Re: [Puppet Users] Can I access data structure internal to providers

2010-09-19 Thread Nigel Kersten
On Sun, Sep 19, 2010 at 5:41 AM, John Warburton wrote: > Hi Nigel > > On 18 September 2010 01:41, Nigel Kersten wrote: >> >> On Fri, Sep 17, 2010 at 4:32 AM, John Warburton >> wrote: >> > Hi >> > >> > I would like to be able to access th

Re: [Puppet-dev] Re: [Puppet Users] ANNOUNCE: Puppet 2.6.1 released!

2010-09-20 Thread Nigel Kersten
Mac packages all up, apologies for the delay. https://sites.google.com/a/explanatorygap.net/puppet/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this gro

Re: [Puppet Users] A question about synchronization

2010-09-21 Thread Nigel Kersten
On Tue, Sep 21, 2010 at 12:49 PM, 2ead3bcd wrote: > Hi, > > Suppose I have 3 nodes, and I want puppet to perform a set of steps on > them in a different order: > Apply step A on each of them, then step B on each of them, then step C > on each of them, and so on. > I'm wondering if puppet supports

Re: [Puppet Users] Multi-tiered puppet mastery (a.k.a. masters configuring other masters...)

2010-09-22 Thread Nigel Kersten
On Wed, Sep 22, 2010 at 11:20 AM, Mikel King wrote: > I have an environment where there is a huge amount of political strife > as well as disparate divisional and departmental LANS. Some are tied > via rather unreliable connectivity. My predecessor sold the campus on > the idea of deploying puppet

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Nigel Kersten
On Wed, Sep 22, 2010 at 5:55 PM, Luc Suryo wrote: > Hello > > it is possible to define something like this? > > exec { "openvpn_reload" : > command => "/etc/init.d/openvpn reload", > user => root, > require => [  File[ "openvpn_client.conf"] OR File > ["openvpn_server"] 

Re: [Puppet Users] Can a require use an OR ?

2010-09-23 Thread Nigel Kersten
On Thu, Sep 23, 2010 at 8:43 AM, Luc Suryo wrote: > Then would the service be define as this? > > service { "openvpn::base" : >   name=> "openvpn", >   ensure => running, >   subscribe => [ File["openvpn_client.conf], > File["openvpn_server,conf]] > } > > so it

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Nigel Kersten
On Fri, Sep 24, 2010 at 10:08 AM, Tim Lank wrote: > Thanks.  Can you elaborate on the puppet's reports?  All I see are here: > http://docs.puppetlabs.com/references/latest/report.html > > Is there one that reports on the stdout&stderr of the tasks the client > performs? (and not in YAML) I believ

[Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-24 Thread Nigel Kersten
[cross-posting as I'd like to know whether my intuition about this being the most common case is correct] class foo { file { "/etc/foo.conf": source => "puppet:///modules/foo/foo.conf", } } For me, every single one of my source specifications refers to a file inside the current module.

Re: [Puppet Users] obtaining stdout information from client configuration executions

2010-09-24 Thread Nigel Kersten
you are referring to for the on_failure stderr. http://projects.puppetlabs.com/issues/2359 covers it. > > > > On Fri, Sep 24, 2010 at 2:10 PM, Nigel Kersten wrote: >> >> On Fri, Sep 24, 2010 at 10:08 AM, Tim Lank wrote: >> > Thanks.  Can you elaborate on the puppet&#

Re: [Puppet-dev] Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-24 Thread Nigel Kersten
On Fri, Sep 24, 2010 at 12:34 PM, Nan Liu wrote: > On Fri, Sep 24, 2010 at 11:20 AM, Nigel Kersten wrote: >> eg the proposal is that if you don't specify the protocol, server >> address, modules prefix, module name, it is assumed you are referring >> to a file p

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-25 Thread Nigel Kersten
On Fri, Sep 24, 2010 at 12:34 PM, Nan Liu wrote: > On Fri, Sep 24, 2010 at 11:20 AM, Nigel Kersten wrote: >> eg the proposal is that if you don't specify the protocol, server >> address, modules prefix, module name, it is assumed you are referring >> to a file p

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-25 Thread Nigel Kersten
On Sat, Sep 25, 2010 at 10:10 AM, Patrick wrote: > > On Sep 25, 2010, at 10:02 AM, Nigel Kersten wrote: > >> On Fri, Sep 24, 2010 at 12:34 PM, Nan Liu wrote: >>> On Fri, Sep 24, 2010 at 11:20 AM, Nigel Kersten wrote: >>>> eg the proposal is that if yo

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-25 Thread Nigel Kersten
On Sat, Sep 25, 2010 at 10:27 AM, Patrick wrote: > > On Sep 25, 2010, at 10:23 AM, Nigel Kersten wrote: > >> On Sat, Sep 25, 2010 at 10:10 AM, Patrick wrote: >>> >>> On Sep 25, 2010, at 10:02 AM, Nigel Kersten wrote: >>> >>>> On Fri, Sep 24,

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-25 Thread Nigel Kersten
On Sat, Sep 25, 2010 at 2:22 PM, Luke Kanies wrote: > On Sep 25, 2010, at 10:23 AM, Nigel Kersten wrote: > >> On Sat, Sep 25, 2010 at 10:10 AM, Patrick wrote: >>> >>> On Sep 25, 2010, at 10:02 AM, Nigel Kersten wrote: >>> >>>> On Fri, Sep 24,

Re: [Puppet Users] best way to include a variable in many modules ?

2010-09-26 Thread Nigel Kersten
On Sun, Sep 26, 2010 at 2:01 PM, Douglas Garstang wrote: > On Sun, Sep 26, 2010 at 9:44 AM, Bruce Richardson > wrote: >> >> On Thu, Sep 23, 2010 at 08:31:26PM +0100, R.I.Pienaar wrote: >> > > I have two sites with a small number of machines at each.  Each site >> > > is >> > > functionally identi

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-27 Thread Nigel Kersten
On Mon, Sep 27, 2010 at 7:04 AM, Brice Figureau wrote: > Hi, > > It looks like I missed your original e-mail to puppet-dev. > > On Fri, 2010-09-24 at 11:20 -0700, Nigel Kersten wrote: >> [cross-posting as I'd like to know whether my intuition about this >> being

Re: [Puppet Users] Determining if puppet ran ok.

2010-09-27 Thread Nigel Kersten
On Mon, Sep 27, 2010 at 4:50 PM, Douglas Garstang wrote: > I'm trying to find a programmatic way to determine if the result of a > puppetrun was ok. Rather than scraping /var/log/messages, is there another > way to determine that a puppet run completed with errors and how long it > took to run? Is

Re: [Puppet Users] Determining if puppet ran ok.

2010-09-27 Thread Nigel Kersten
On Mon, Sep 27, 2010 at 5:09 PM, Douglas Garstang wrote: > On Mon, Sep 27, 2010 at 4:58 PM, Nigel Kersten wrote: >> >> On Mon, Sep 27, 2010 at 4:50 PM, Douglas Garstang >> wrote: >> > I'm trying to find a programmatic way to determine if the result of a

Re: [Puppet Users] Determining if puppet ran ok.

2010-09-27 Thread Nigel Kersten
On Mon, Sep 27, 2010 at 5:22 PM, Douglas Garstang wrote: > On Mon, Sep 27, 2010 at 5:17 PM, Nigel Kersten wrote: >> >> On Mon, Sep 27, 2010 at 5:09 PM, Douglas Garstang >> wrote: >> > On Mon, Sep 27, 2010 at 4:58 PM, Nigel Kersten >> > wrote: >

Re: [Puppet Users] Determining if puppet ran ok.

2010-09-27 Thread Nigel Kersten
On Mon, Sep 27, 2010 at 5:34 PM, Douglas Garstang wrote: > Just tried to use reports for the first time, and I'm getting this on the > puppetmaster for the first run of each node: > Sep 28 00:28:28 s_...@prov01.pax.livegamer.com puppet-master[13116]: > (/File[/var/lib/puppet/reports/name02.den.li

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-28 Thread Nigel Kersten
On Mon, Sep 27, 2010 at 10:08 PM, Luke Kanies wrote: > On Sep 27, 2010, at 7:04 AM, Brice Figureau wrote: > >> Hi, >> >> It looks like I missed your original e-mail to puppet-dev. >> >> On Fri, 2010-09-24 at 11:20 -0700, Nigel Kersten wrote: >>>

Re: [Puppet Users] Environments and wiki documentation

2010-09-28 Thread Nigel Kersten
On Tue, Sep 28, 2010 at 12:58 AM, Atlantis Boengkih wrote: > Hello, > > First, please excuse my english. > > I've had some troubles setting up environments. After a few hours digging for > the misconfiguration, it appears that I did not declare my environments in > the main section of my clients

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-28 Thread Nigel Kersten
On Tue, Sep 28, 2010 at 9:06 AM, James Turnbull wrote: > Brice Figureau wrote: >> On Tue, 2010-09-28 at 08:23 -0700, Nigel Kersten wrote: >>> [heavilly snipped because answer OT] >>> After looking up a few of the major non-US keyboard layouts, I'm >>> rea

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Nigel Kersten
On Tue, Sep 28, 2010 at 9:29 AM, Douglas Garstang wrote: > Has anyone got/seen Python code to read puppet reports? > I added a bunch of these: > class PuppetReport(yaml.YAMLObject): >   yaml_tag = u'!ruby/object:Puppet::Transaction::Report' >   def __init__(self, host, logs, metrics, records, time

Re: [Puppet Users] Reading Puppet reports with Python

2010-09-28 Thread Nigel Kersten
On Tue, Sep 28, 2010 at 10:08 AM, Douglas Garstang wrote: > > On Tue, Sep 28, 2010 at 9:50 AM, Eduardo S. Scarpellini > wrote: >> >> Douglas, >> I've started my tests with Python + Puppet Yaml yesterday, based on >> http://www.mailinglistarchive.com/html/puppet-users@googlegroups.com/2010-05/msg0

Re: [Puppet Users] Re: Environments and wiki documentation

2010-09-29 Thread Nigel Kersten
On Wed, Sep 29, 2010 at 12:04 AM, Felix Frank wrote: > On 09/28/2010 06:41 PM, tortuegeniale wrote: >> Yes, I'm running 0.24.5 >> In this case it should be good to specify this versioning maybe > > I second this. Seeing as Debian Lenny includes this version, and Lenny > installations will probably

Re: [Puppet Users] Proposal to remove redundant info in source => parameters

2010-09-29 Thread Nigel Kersten
On Wed, Sep 29, 2010 at 9:23 AM, Christian Kauhaus wrote: > Am 28.09.2010 21:36, schrieb Peter Meier: >> it wouldn't be one for me and I still stick with sg keyboards. > > It is two keys on most European keyboard layouts. I think that it will be > ok for most *nix users. We are already used to it.

Re: [Puppet Users] err: Could not request certificate: sslv3 alert handshake failure error

2010-09-29 Thread Nigel Kersten
On Wed, Sep 29, 2010 at 8:42 AM, Patrick wrote: > > On Sep 29, 2010, at 8:31 AM, Nan Liu wrote: > >> On Wed, Sep 29, 2010 at 8:01 AM, Tim wrote: >>> I've setup the puppetmaster to start 5 processes each listening on a >>> different port, with an Apache server in front. This works fine for >>> exi

Re: [Puppet Users] Overwrite default settings in nodes using external nodes.

2010-09-29 Thread Nigel Kersten
On Wed, Sep 29, 2010 at 10:20 AM, Héctor Rivas Gándara wrote: > On Wed, Sep 29, 2010 at 3:46 PM, Bruce Richardson > wrote: >> On Wed, Sep 29, 2010 at 02:59:28PM +0200, Héctor Rivas Gándara wrote: >>> Also, from my tests I checked that the parameters (please correct me if I am >>> wrong): >>>  -

<    1   2   3   4   5   6   7   8   9   10   >