[Puppet Users] Re: onlyif functionality for the File type

2008-11-26 Thread Paul Lathrop
On Wed, Nov 26, 2008 at 12:37 PM, benjamin <[EMAIL PROTECTED]> wrote: > >> Why are you doing this? This kind of situation usually indicates a >> need to adjust one's mindset in order to work within the Puppet model >> rather than fighting against it. > > you caught me. i'm writing .ssh directory a

[Puppet Users] Re: onlyif functionality for the File type

2008-11-26 Thread benjamin
> Why are you doing this? This kind of situation usually indicates a > need to adjust one's mindset in order to work within the Puppet model > rather than fighting against it. you caught me. i'm writing .ssh directory and authorized_keys files for a few users to multiple servers. i guess i would

[Puppet Users] Re: puppetrun

2008-11-26 Thread dd-b
On Nov 25, 8:25 pm, jrojas <[EMAIL PROTECTED]> wrote: > You need to configure your "puppetd" to listen. > If it is not listening then it wont let puppetrun happen. > > Look at this page: > > http://reductivelabs.com/trac/puppet/wiki/NameSpaceAuth > > puppetd must be started with --listen, and name

[Puppet Users] Re: onlyif functionality for the File type

2008-11-26 Thread Thijs Oppermann
How about (for this specific situation) leaving an empty file? You could do: file { "/tmp/secret": replace => false, } exec { "do-the-install": command => do the install, onlyif => only do the install if some condition met or unmet, notify => Exec["cleanup"], require => File["/tmp/secr

[Puppet Users] Re: puppetrun

2008-11-26 Thread dd-b
On Nov 25, 8:25 pm, jrojas <[EMAIL PROTECTED]> wrote: > You need to configure your "puppetd" to listen. > If it is not listening then it wont let puppetrun happen. > > Look at this page: > > http://reductivelabs.com/trac/puppet/wiki/NameSpaceAuth > > puppetd must be started with --listen, and name

[Puppet Users] Re: puppetrun

2008-11-26 Thread dd-b
On Nov 25, 9:36 pm, RijilV <[EMAIL PROTECTED]> wrote: > Also man page has a good section under "USAGE NOTES" that more or less > constitutes a quick walk through. I had somehow gotten the impression that there weren't man pages for the puppet executables. Since you were so clear on the topic, I

[Puppet Users] Re: Include classes based on hostname

2008-11-26 Thread Mike Renfro
Pejay wrote: > Eg: If the hostname is uk-tomcat-120.example.com, could I match on > 'tomcat' to include a tomcat related class from within the default > node definition? A simpler route than external node classification (already mentioned), but not as flexible if your node groups are always cha

[Puppet Users] Re: Yum update

2008-11-26 Thread Ross McKerchar
> Subject: [Puppet Users] Yum update > > What *do* you do? Say I've got 6 systems I want to keep in sync. > Let's say I upgrade one system manually and test a bit, and then want > to make that upgrade general. Do you do that through puppet, or what? I take a pragmatic approach: if the package c

[Puppet Users] Re: Include classes based on hostname

2008-11-26 Thread Rune Stensø
What you are looking for is probably external nodes classification; http://reductivelabs.com/trac/puppet/wiki/ExternalNodes BR. Rune Stensø On 26 Nov, 10:48, Pejay <[EMAIL PROTECTED]> wrote: > Hi, > > In our current puppet environment I am trying to avoid having to > define a separate node for e

[Puppet Users] Re: condition to test if fact contains ..

2008-11-26 Thread gary
That did the trick, thanks a lot Ross! Gary On Nov 26, 5:57 am, Ross McKerchar <[EMAIL PROTECTED]> wrote: > > Hello, > > > I'm trying to build a module to install Dell OpenManage. I see there's > > a fact that productname: > > > productname => PowerEdge R200 > > > I think there's no way to have

[Puppet Users] Include classes based on hostname

2008-11-26 Thread Pejay
Hi, In our current puppet environment I am trying to avoid having to define a separate node for each server. Is it possible to include classes based on parts of the hostname? All of our server hostnames have their function (Tomcat/DNS/Apache etc...) in the hostname. Eg: If the hostname is uk-to

[Puppet Users] Re: usage of '+>' ?

2008-11-26 Thread Aj
That behaviour is used in resource overrides (inheritance) Given: class x { user { test: groups => blah } } Additional values can be added in an override class. class y inherits x { User['test'] { groups +> blah2 } } Regards, AJ On 26/11/2008, at 10:05 PM, Udo Waechter <[EMAIL PROTECT

[Puppet Users] Re: usage of '+>' ?

2008-11-26 Thread Udo Waechter
Ouch, Documentation ( http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial ) says its: "It is also possible (since version 0.23.1) to add values to resource parameters using the +> operator:" I am pretty sure, that I saw this sentence around for a while (definetly longer than .6), I jus

[Puppet Users] Re: Two files with no change trying to be modified

2008-11-26 Thread Marcin Owsiany
On Tue, Nov 25, 2008 at 06:51:02PM -0800, jrojas wrote: > > The first part I am not sure on, the second part is interesting. > Net-SNMP always does weird things. > Can you get a diff of the two files? Yes, adding --noop does that. -- Marcin Owsiany <[EMAIL PROTECTED]> http://marci

[Puppet Users] Re: usage of '+>' ?

2008-11-26 Thread Aj
That behavior was added in .6 Regards, AJ On 26/11/2008, at 9:31 PM, Udo Waechter <[EMAIL PROTECTED] osnabrueck.de> wrote: > > Oh, sorry: > > - puppetmaster is 0.24.5 (Debian etch) > - puppet clients are 0.24.5 (debian), and 0.24.4 (ubuntu hardy) > > Bye, > udo. > > Paul Lathrop wrote: >> Udo

[Puppet Users] Re: Yum update

2008-11-26 Thread tarjei
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 jrojas wrote: > I have always been on the fence with this issue. > There are certain things you are able to mange with puppet with the > use of "ensure => latest" (at least it has always worked for me) > Some people say, puppet is meant to maintain a

[Puppet Users] Re: usage of '+>' ?

2008-11-26 Thread Udo Waechter
Oh, sorry: - puppetmaster is 0.24.5 (Debian etch) - puppet clients are 0.24.5 (debian), and 0.24.4 (ubuntu hardy) Bye, udo. Paul Lathrop wrote: > Udo, > > What version of Puppet are you running? > > --Paul > > On Tue, Nov 25, 2008 at 12:57 PM, udo waechter > <[EMAIL PROTECTED]> wrote: >> Acc