[Puppet Users] Making a variable visible in parent class (scoping)

2009-01-16 Thread Scott
So I need a variable in a child class to be visible to the parent class and I'm wondering how I can do that? The docs say "You will almost always find that you can avoid resetting variable values using the built in conditionals:" but I guess this is one of those cases where it just isn't possible

[Puppet Users] Re: puppetshow with puppetmaster 0.24.6

2009-01-16 Thread jrojas
Good. I am glad someone else has had the problem. I think I am going to start beating on this with a hammer until it works :P On Jan 16, 2:47 pm, Scott wrote: > I had the exact same problem (the exceptions in pagination and search) > and gave up because it's not being developed at all and probab

[Puppet Users] Re: custom fact in kickstart postisntall

2009-01-16 Thread jrojas
Try adding --factsync to the puppetd line. Does your puppet.conf include factsync = true? that would explain it working a second time and not a first (sort of) -Jason On Jan 12, 9:03 am, Arnau Bria wrote: > Hi all, > > I have a custom fact which determines what interface is primary in > future

[Puppet Users] Re: Certificates were not trusted: certificate verify failed

2009-01-16 Thread jrojas
I ran into a similar issue today and I thought I would share. My co-woker kickstarted a server, puppet gets installed in the kickstart with the appropriate configs. Puppet is responsible for installing and configuring numerous packages and services. It would try to get the cert, and puppetmaster

[Puppet Users] Re: Pattern matching in case statement

2009-01-16 Thread Robin Lee Powell
On Thu, Jan 15, 2009 at 04:37:53PM -, sven.tho...@bt.com wrote: > Hi all, > > > > I need my servers to decide which network they are in (i.e. dmz), and > the only clue is the servers IP-address. I was trying to accomplish it > like this, but it doesn't work: > > > > case $ipaddress { >

[Puppet Users] Re: Editors for .pp files

2009-01-16 Thread Bjørn Dyre Dyresen
Vim all the way here. SVN from the CLI yes. Less is more. Regards. 2009/1/15 Matt Marshall > This may be an odd question, but what does everyone use for an editor for > the versioned puppet configs. Does everyone stick with vi or emacs and use > the commandline svn tools? Or does anyone use ec

[Puppet Users] Editors for .pp files

2009-01-16 Thread Matt Marshall
This may be an odd question, but what does everyone use for an editor for the versioned puppet configs. Does everyone stick with vi or emacs and use the commandline svn tools? Or does anyone use eclipse, and if so what editor do you select for the puppet config files? I've been playing around with

[Puppet Users] Pattern matching in case statement

2009-01-16 Thread sven.thomas
Hi all, I need my servers to decide which network they are in (i.e. dmz), and the only clue is the servers IP-address. I was trying to accomplish it like this, but it doesn't work: case $ipaddress { "10.1.1.*": { $network = "net1" } "10.2.2.*.*": { $netw

[Puppet Users] desperate for naginator docs

2009-01-16 Thread Mark Foster
Where are the naginator docs? http://reductivelabs.com/trac/puppet/wiki/TypeReference#nagios-service et al. points to http://reductivelabs.com/trac/naginator in multiple locations but that page is not helpful whatsoever. Thanks for any hints. --~--~-~--~~~---~--~~

[Puppet Users] Re: puppetshow with puppetmaster 0.24.6

2009-01-16 Thread Scott
I had the exact same problem (the exceptions in pagination and search) and gave up because it's not being developed at all and probably works on much older versions of puppet. Scott On Jan 15, 2:49 am, jrojas wrote: > Sorry if I am re-hashing this but this error is bugging the piss out > of me,

[Puppet Users] Re: Work in progress: Using augeas to manage /etc/exports

2009-01-16 Thread Adam Kosmin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bryan, Yes, I was just attempting to be clear in my message. Best, Adam Bryan Kearney wrote: > windowsrefund wrote: >> Just a quick update to report that none of the following approaches >> result in avoiding duplicate lines from being inserted int

[Puppet Users] Re: Work in progress: Using augeas to manage /etc/exports

2009-01-16 Thread Bryan Kearney
windowsrefund wrote: > Just a quick update to report that none of the following approaches > result in avoiding duplicate lines from being inserted into /etc/ > exports > > onlyif => "get /files/etc/exports/dir != $name", > > onlyif => "get /files/etc/exports/dir[1] != $name", > > onlyif =>

[Puppet Users] Re: Work in progress: Using augeas to manage /etc/exports

2009-01-16 Thread David Lutterkort
On Fri, 2009-01-16 at 10:26 -0800, windowsrefund wrote: > Thanks for explanations and insight. I'll sit tight and keep an eye > out for updates to the Augeas type. As I said: if you're willing to write your exports type in Ruby, you can do what you need to do today ... waiting is required though

[Puppet Users] Puppet playing badly with Debian etch rubygems

2009-01-16 Thread Robin Lee Powell
To install the ruby-augeas gem, I installed rubygems on Debian etch, which lead to: Setting up libgems-ruby1.8 (0.9.0-5) ... Setting up ruby1.8-dev (1.8.5-4etch4) ... Setting up rubygems (0.9.0-5) ... Before this (I mean *immediately* before this) puppet worked fine exceept for not being able to

[Puppet Users] Re: variable scope is making my head hurt

2009-01-16 Thread Richard
OK, this one I know! I had the same problem and while my solution is not "pretty" it does seem to work. :) It's just three easy steps (and you've already done the first one!) 1) Define your "global" variable in a node definition (i.e. $nodetype) 2) Create a mapping class to map those "global

[Puppet Users] Re: Work in progress: Using augeas to manage /etc/exports

2009-01-16 Thread windowsrefund
David, Thanks for explanations and insight. I'll sit tight and keep an eye out for updates to the Augeas type. All the best, Adam On Jan 16, 1:18 pm, David Lutterkort wrote: > On Fri, 2009-01-16 at 08:08 -0800, windowsrefund wrote: > > I'll list current limitations but first, the code > > > de

[Puppet Users] Re: Work in progress: Using augeas to manage /etc/exports

2009-01-16 Thread windowsrefund
Just a quick update to report that none of the following approaches result in avoiding duplicate lines from being inserted into /etc/ exports onlyif => "get /files/etc/exports/dir != $name", onlyif => "get /files/etc/exports/dir[1] != $name", onlyif => "get /files/etc/exports/dir[last()] !=

[Puppet Users] Re: Work in progress: Using augeas to manage /etc/exports

2009-01-16 Thread David Lutterkort
On Fri, 2009-01-16 at 08:08 -0800, windowsrefund wrote: > I'll list current limitations but first, the code > > define nfs::export ( $client, $share_owner = "root", $share_group = > "root", $share_mode = 755 ) { > > # Install package, ensure /etc/exports, manage nfs > service. >

[Puppet Users] Work in progress: Using augeas to manage /etc/exports

2009-01-16 Thread windowsrefund
I'll list current limitations but first, the code define nfs::export ( $client, $share_owner = "root", $share_group = "root", $share_mode = 755 ) { # Install package, ensure /etc/exports, manage nfs service. include nfs::server file { $name: ensure =>

[Puppet Users] Re: exported resources work sometimes

2009-01-16 Thread Jason Kohles
"MySQL server has gone away" means you lost your connection to mysql, most likely because there is a configured idle timeout or the server was restarted. On Jan 15, 2009, at 11:15 PM, gary wrote: > > Hello, > > I'm having an issue with exported resources. I've been using stored > configs for