[Puppet Users] Re: Avoiding disaster

2009-06-23 Thread Jeffrey Hulten
One of the things we started doing is: 1) running puppet via cron. 2) on critical production systems running with --dry-run enabled so that NOTHING happens completely automatically. 3) emailing the output of the dry run if changes show up on a production server. We also have a script on an admini

[Puppet Users] Looking up information from the config...

2008-12-07 Thread Jeffrey Hulten
Is there a way, in a puppet config, to query the current nodes config elements and use them in a template? My specific case is a JBOSS configuration with multiple instances on one server installation. I have the server configured as a class (with unpacking the zip file and making the server level

[Puppet Users] Puppet Users] Re: Looking up information from the config...

2008-12-07 Thread Jeffrey Hulten
t; Hope others can also share their own info. :) > > Cheers, > Rodney > > > > On Dec 5, 6:41 am, Jeffrey Hulten <[EMAIL PROTECTED]> wrote: > > Is there a way, in a puppet config, to query the current nodes config > > elements and use them in a template? My speci

[Puppet Users] Re: Understanding the "default" node.

2008-12-23 Thread Jeffrey Hulten
So the way I have implemented it is that we have a basenode node with the common elements that all nodes get. The basenode is then inherited by each of the specific nodes, therefore you get something like: import "foo" import "httpd" node basenode { include foo } node webnode inherits basenode

[Puppet Users] Re: solution: excluding packages via yum

2009-01-07 Thread Jeffrey Hulten
For my money the best solution is to use Puppet to manage the yum.conf files and put your excludes there... But that is me. On Wed, Jan 7, 2009 at 8:06 AM, Arnau Bria wrote: > > Hi all, > > sorry for breaking the threat, I don't know where the OP is. > > anyway, Tim Harper provided yum_plus in

[Puppet Users] Re: Redundant Puppet Master Servers

2009-01-07 Thread Jeffrey Hulten
I would agree. With DRBD and uCARP almost any service can be made to work as a active-passive cluster. It is not for the faint of heart tho... Of course if you are managing systems with Puppet you probably aren't faint of heart. ;) Please note... This is not a solution for load balancing. Only

[Puppet Users] Re: Executing a command once after an action.

2009-01-08 Thread Jeffrey Hulten
Instead of requiring the file, subscribe to it. Also, to only run when the package changes set refreshonly to true. file { "/test" : source => "puppet:///test/testfile" } exec { "run once on test file" : cmd => "/bin/echo running", refreshonly => true, subscribe => File["/test"], } On Thu,

[Puppet Users] Re: problem with tag()?

2009-01-08 Thread Jeffrey Hulten
Another issue potentially in 0.25.5... If I set a tag in an inherited node it is not present on directives (files, etc.) run down the chain... node foo { tag(tagme) } node bar inherits foo { rundefine { "no tag here" } } But it appears if you tag the node directly node foo {} node bar inher

[Puppet Users] Re: Redundant Puppet Master Servers

2009-01-10 Thread Jeffrey Hulten
DRBD is really intended for local networks. Is there anything preventing a puppetmaster being a node of a different puppetmaster? You could pass config that way. On Thu, Jan 8, 2009 at 2:34 PM, Aaron Lippold wrote: > > Hi, > > Has anyone done this across multiple site, let's say, 13 sites, wi

[Puppet Users] Re: Pattern matching in case statement

2009-01-21 Thread Jeffrey Hulten
If I understand the match function on strings properly you might want to escape the periods in your logic: 10.1.1. matches 10.1.1.X and 10.101.X for instance. On Wed, Jan 21, 2009 at 6:58 AM, wrote: > > Thank you for your input! I solved it like this in then end: > > Facter.add("netenv") do >

[Puppet Users] Re: Puppet Idioms for distributing RPMs and/or buildign source tarballs?

2009-02-23 Thread Jeffrey Hulten
Sourcing to a HTTP address works? Since when? On Mon, Feb 23, 2009 at 4:45 PM, Peter Meier wrote: > > Hi > > > Make a regular http- or ftp-accessible repository (instead of using the > > puppetmaster's file distribution facility), and use one of the > > higher-level rpm-based package providers w