Re: [Puppet Users] Re: is anyone using a tool to diagram their manifests?

2010-05-20 Thread Joe McDonagh
On 05/21/2010 01:17 AM, James Turnbull wrote: > On 21/05/10 1:44 PM, windowsrefund wrote: > >> Thanks for the tip. I never knew about this feature. I can see how >> this might be useful but I'm looking for something that shows the >> relationship of classes and defines rather than the resources th

Re: [Puppet Users] More External Nodes

2010-05-20 Thread Joe McDonagh
On 05/21/2010 12:11 AM, Douglas Garstang wrote: > I'm really just not getting the whole point of external nodes. The > more I look at it, the less I see the point. > > For starters, you have to pass arguments from your node back to your > classes via what appear to be global variables, and then if

Re: [Puppet Users] Have I found a bug with variables in nodes?

2010-05-20 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21/05/10 1:45 PM, Joe McDonagh wrote: > On 05/11/2010 07:07 PM, James Turnbull wrote: > >> Additionally, when variable scoping is revised and changed a lot of >> these problems will go away. I believe that's planned for the >> release after Rowlf.

Re: [Puppet Users] Re: is anyone using a tool to diagram their manifests?

2010-05-20 Thread James Turnbull
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 21/05/10 1:44 PM, windowsrefund wrote: > > Thanks for the tip. I never knew about this feature. I can see how > this might be useful but I'm looking for something that shows the > relationship of classes and defines rather than the resources that >

Re: [Puppet Users] More External Nodes

2010-05-20 Thread Douglas Garstang
On Thu, May 20, 2010 at 10:06 PM, Paul Lathrop wrote: > If you don't see a use, don't use the feature. However, when you have > an issue and people suggest external nodes is the answer, you might > consider listening. Paul, I initially asked about a way to parse nodes files such that I could upda

Re: [Puppet Users] More External Nodes

2010-05-20 Thread Paul Lathrop
If you don't see a use, don't use the feature. However, when you have an issue and people suggest external nodes is the answer, you might consider listening. -Paul On Thursday, May 20, 2010, Douglas Garstang wrote: > I'm really just not getting the whole point of external nodes. The > more I loo

[Puppet Users] More External Nodes

2010-05-20 Thread Douglas Garstang
I'm really just not getting the whole point of external nodes. The more I look at it, the less I see the point. For starters, you have to pass arguments from your node back to your classes via what appear to be global variables, and then if you have multiple instances of a specific piece of softwa

Re: [Puppet Users] Have I found a bug with variables in nodes?

2010-05-20 Thread Joe McDonagh
On 05/11/2010 07:07 PM, James Turnbull wrote: > Additionally, when variable scoping is revised and changed a lot of > these problems will go away. I believe that's planned for the > release after Rowlf. > > Regards > > James Turnbull > So, variable scoping... will these changes make it possib

[Puppet Users] Re: is anyone using a tool to diagram their manifests?

2010-05-20 Thread windowsrefund
Thanks for the tip. I never knew about this feature. I can see how this might be useful but I'm looking for something that shows the relationship of classes and defines rather than the resources that result from their use. -- You received this message because you are subscribed to the Google Gro

Re: [Puppet Users] Re: Six Puppet Questions

2010-05-20 Thread Matt Juszczak
where [1] is the much newer and better version for that one. cheers pete [1] http://git.cmaisonneuve.qc.ca/?p=puppet/module-nagios;a=summary Thanks, this looks great! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, se

Re: [Puppet Users] Re: is anyone using a tool to diagram their manifests?

2010-05-20 Thread Nigel Kersten
On Thu, May 20, 2010 at 4:44 PM, windowsrefund wrote: > > > > > > you mean like "puppetd --graph" to produce dot files? > > > > --graph doesn't seem to be valid. Can you elaborate? > Add --graph to your run however you invoke it (it needs something to graph), like: sudo puppetd --test --graph t

[Puppet Users] Re: is anyone using a tool to diagram their manifests?

2010-05-20 Thread windowsrefund
> > you mean like "puppetd --graph" to produce dot files? > --graph doesn't seem to be valid. Can you elaborate? Thanks -- 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 u

[Puppet Users] Re: is anyone using a tool to diagram their manifests?

2010-05-20 Thread windowsrefund
> > you mean like "puppetd --graph" to produce dot files? > --graph doesn't seem to be valid. Can you elaborate? Thanks -- 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 u

Re: [Puppet Users] Re: Six Puppet Questions

2010-05-20 Thread Matt Juszczak
* Does anyone have experience with puppet in the cloud?   There really is no such thing as "the cloud". It's just the latest buzz phrase used to describe... networked computers. I actually agree with you :) But it's the term used to reference Rackspace and Amazon virtualization platform, so I

[Puppet Users] Re: Six Puppet Questions

2010-05-20 Thread windowsrefund
> * Does anyone have experience with puppet in the cloud?   There really is no such thing as "the cloud". It's just the latest buzz phrase used to describe... networked computers. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this

[Puppet Users] Re: Six Puppet Questions

2010-05-20 Thread windowsrefund
> > That makes sense, but do you then manage your puppetmaster via puppet as a > normal client from then on?  It would make me nervous. > I'm a big fan of this. I have several pieces carved out in my puppet module including: puppet::client - installs and manages the puppet client puppet::master

Re: [Puppet Users] is anyone using a tool to diagram their manifests?

2010-05-20 Thread Nigel Kersten
On Thu, May 20, 2010 at 3:34 PM, windowsrefund wrote: > Despite taking great care to keep my manifests clean and logical, my > code is growing both in size and complexity. That said, I'm starting > to wonder if there are any tools I can use that would run through my > entire tree and display some

Re: [Puppet Users] Re: External Nodes

2010-05-20 Thread Douglas Garstang
On Thu, May 20, 2010 at 3:31 PM, Paul Lathrop wrote: > In this situation, the problem you need to address isn't Puppet, it's > your infrastructure. The infrastructure you describe is going to be > nuts to manage no matter what set of tools you are trying to use. It > doesn't make the tools deficie

[Puppet Users] Re: Time is running out to register for Puppet Camp Europe in Ghent, Belgium May 27-28th

2010-05-20 Thread Ken Barber
> Too bad that Dan (Bode) is not in the bunch... :-) +1 to that. ken. -- 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 group, send email to puppet-use

[Puppet Users] is anyone using a tool to diagram their manifests?

2010-05-20 Thread windowsrefund
Despite taking great care to keep my manifests clean and logical, my code is growing both in size and complexity. That said, I'm starting to wonder if there are any tools I can use that would run through my entire tree and display some user friendly map showing the relationships between all the cla

Re: [Puppet Users] Re: External Nodes

2010-05-20 Thread Paul Lathrop
In this situation, the problem you need to address isn't Puppet, it's your infrastructure. The infrastructure you describe is going to be nuts to manage no matter what set of tools you are trying to use. It doesn't make the tools deficient. Basically, if you build your house on a swamp, don't comp

Re: [Puppet Users] Re: wildcard node names

2010-05-20 Thread Jon Charette
exactly what I needed. Thanks much Ken. On Thu, May 20, 2010 at 5:02 PM, Ken Barber wrote: > Regular expressions - even better: > > > http://docs.puppetlabs.com/guides/language_tutorial.html#matching_nodes_with_regular_expressions > > Also - what you probably want to look at is using classes fo

Re: [Puppet Users] Re: External Nodes

2010-05-20 Thread Steven VanDevender
Douglas Garstang writes: > > classes: [ ] > > parameters: { } > > > > So if you need different Apache versions on two different nodes, your > > node classifier could supply this for node1: > > > > classes: [ apache-server ] > > parameters: { apache_version=2.0.63 } > > > > and this for

Re: [Puppet Users] Re: External Nodes

2010-05-20 Thread Douglas Garstang
On Thu, May 20, 2010 at 2:18 PM, Steven VanDevender wrote: > Douglas Garstang writes: >  > On Fri, May 14, 2010 at 1:38 PM, Paul Lathrop > wrote: >  > > You are getting a bunch of misguided answers to this. I'm also >  > > perplexed by your assertion that external nodes requires you to write >  

Re: [Puppet Users] Re: External Nodes

2010-05-20 Thread Steven VanDevender
Douglas Garstang writes: > On Fri, May 14, 2010 at 1:38 PM, Paul Lathrop wrote: > > You are getting a bunch of misguided answers to this. I'm also > > perplexed by your assertion that external nodes requires you to write > > custom scripts to parse node manifests. > > > > No, you cannot put

Re: [Puppet Users] Re: Augeas in puppet behaves differently than augtool?

2010-05-20 Thread Patrick
On May 20, 2010, at 11:36 AM, Tim Stoop wrote: > > > On 20 mei, 17:26, Patrick wrote: >> What are you trying to do with the onlyif? If that works in augtool, and >> that's what you want, just remove the onlyif. > > Without the onlyif, I'm still getting the error: > > debug: Augeas[dummy -

[Puppet Users] Re: wildcard node names

2010-05-20 Thread Ken Barber
Regular expressions - even better: http://docs.puppetlabs.com/guides/language_tutorial.html#matching_nodes_with_regular_expressions Also - what you probably want to look at is using classes for your 'templates': http://docs.puppetlabs.com/guides/language_tutorial.html#classes ken. On May 20, 8

Re: [Puppet Users] wildcard node names

2010-05-20 Thread Craig Miskell
Jon Charette wrote: I'd like to setup node templates for a variety of developer VMs that we are looking to manage through puppet. This may be in the documentation already, and if so, I apologize for missing it, but is it possible to use wildcards within the node definition. Yes, it is. --

Re: [Puppet Users] Re: External Nodes

2010-05-20 Thread Douglas Garstang
On Fri, May 14, 2010 at 1:38 PM, Paul Lathrop wrote: > You are getting a bunch of misguided answers to this. I'm also > perplexed by your assertion that external nodes requires you to write > custom scripts to parse node manifests. > > No, you cannot put resources directly into nodes when you are

Re: [Puppet Users] Re: Six Puppet Questions

2010-05-20 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > While I haven't used them (yet?), there are a few modules available on > github that provide the ability to declare unmanaged hosts. Here's an > example, but not the only one: > > http://github.com/duritong/puppet-nagios > where [1] is the much n

[Puppet Users] Question about templates from variables

2010-05-20 Thread James Cammarata
I'm running into an issue trying to do something like the following: class test { file {"test": content => template('mytemplate1','mytemplate2'), } } class test::test2 inherits test { File["test"] { content +> template('mytemplate3'), } } So, basically I want the inherited class to tack on

[Puppet Users] Symbolic Links not Followed Outside Partition?

2010-05-20 Thread SkaDan
Ok, I've got a repository of configuration files I use for my Linux environment and would like to leverage this with Puppet (instead of having dupes in my /module/*/files folder). So, I've put symbolic links in the files folder pointing to the actual config file. I'm receiving a "Failed to retrieve

[Puppet Users] wildcard node names

2010-05-20 Thread Jon Charette
I'd like to setup node templates for a variety of developer VMs that we are looking to manage through puppet. This may be in the documentation already, and if so, I apologize for missing it, but is it possible to use wildcards within the node definition. I'd like to do something like this: Hostn

[Puppet Users] Re: Augeas in puppet behaves differently than augtool?

2010-05-20 Thread Tim Stoop
On 20 mei, 17:26, Patrick wrote: > What are you trying to do with the onlyif?  If that works in augtool, and > that's what you want, just remove the onlyif. Without the onlyif, I'm still getting the error: debug: Augeas[dummy - cron-apt change mailon](provider=augeas): Opening augeas with roo

[Puppet Users] Re: Management of MySQL grant tables?

2010-05-20 Thread jb
I've setup something where I put a grants file in the data directory of each database: remotefile {"$db_datadir/grants": mode => 500, source => "db/$db_name/data/grants", require => File["${db_datadir}"], notify => Exec["refresh_${db_name}"]

Re: [Puppet Users] default client config / send client error messages to server log

2010-05-20 Thread Patrick
On May 20, 2010, at 5:56 AM, Patrick wrote: > We would like to roll out several clients with puppet. I want to make sure > that the clients can run a long time (~years) without requiring me to login. > Reason: It would be hard to get access to this machines as they are far away > from my site.

Re: [Puppet Users] Augeas in puppet behaves differently than augtool?

2010-05-20 Thread Patrick
On May 20, 2010, at 6:10 AM, Tim Stoop wrote: > Hi all, > > I'm trying to do fairly simple stuff with augeas, like: > > augeas { "cronapt - mailon": > context => "/files/etc/cron-apt/config", > changes => "set MAILON upgrade", > onlyif => "match MAILON != ['upgrade']", > } > > This works i

[Puppet Users] Re: Is there a way to pass options to rpm provider of package resource?

2010-05-20 Thread Ken
> A Nagios server on each monitored host? > And this should scale better than NRPE? > > I really cannot believe that this is the "intended" usage. > This kind of seems to reverse the usual Nagios monitoring from a > mainly polling to an entirely pushing scheme. > I so far only monitor abt. 400 host

[Puppet Users] Re: Is there a way to pass options to rpm provider of package resource?

2010-05-20 Thread DWIM
Hi Ken On May 19, 6:23 pm, Ken wrote: > > As a complete diversion from your issue - I ended up moving away from > NRPE in the end and used distributed nagios servers on each box. > This was purely for scaling reasons due to NRPE tests holding up resources > on the server. A Nagios server on each

[Puppet Users] Augeas in puppet behaves differently than augtool?

2010-05-20 Thread Tim Stoop
Hi all, I'm trying to do fairly simple stuff with augeas, like: augeas { "cronapt - mailon": context => "/files/etc/cron-apt/config", changes => "set MAILON upgrade", onlyif => "match MAILON != ['upgrade']", } This works if I try it from the commandline: t...@puppet-test.db:~$ sudo augto

[Puppet Users] Re: Six Puppet Questions

2010-05-20 Thread atom
On May 19, 6:05 pm, Arnaud Gomes-do-Vale wrote: > Hi, > > Matt Juszczak writes: > > * Nagios: What are people doing to add hosts/services to nagios where > > some hosts AREN'T puppet hosts?  For instance, deprecated hosts that > > were spun up prior to puppet (we won't be installing puppet on tho

[Puppet Users] default client config / send client error messages to server log

2010-05-20 Thread Patrick
We would like to roll out several clients with puppet. I want to make sure that the clients can run a long time (~years) without requiring me to login. Reason: It would be hard to get access to this machines as they are far away from my site. The clients would also not always be connected to th

Re: [Puppet Users] Run puppetd on the same as puppetmaster

2010-05-20 Thread Peter Berghold
I hope you are not literally using puppet.example.com On May 19, 2010 9:13 PM, "mathie" wrote: Hello, I would like to manage configs for the server that is also the puppetmaster. I declare a simple node (just write out a file) and ran this: puppetd --test --graph -w 10 --server puppetmaster.ex

Re: [Puppet Users] Run puppetd on the same as puppetmaster

2010-05-20 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/20/2010 03:03 AM, mathie wrote: > Hello, > > I would like to manage configs for the server that is also the > puppetmaster. I declare a simple node (just write out a file) and ran > this: > > puppetd --test --graph -w 10 --server puppetmaster.e

Re: [Puppet Users] 0.25, REE, ruby-shadow

2010-05-20 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > So I just upgraded my master from 0.24.8 to 0.25.4. Apparently there > is some bug with the EPEL version of rails that results in mysql "too > many connections" with stored configs, so I just bailed from the > packaged stuff and went to a standalone

Re: [Puppet Users] Using a set of recipes to build stuff from source...

2010-05-20 Thread Dan Carley
On 19 May 2010 21:17, Peter Berghold wrote: > I thought that as well, but didn't really want to just yet. > > If I go that route I guess it will mean I'll have to get around to doing > something I've been putting off.. I've been planning to build a custom yum > repository but that was not going

[Puppet Users] Re: 0.25, REE, ruby-shadow

2010-05-20 Thread Ken
Every body does it now and then - hehehe :-). Its a shame we need to use different interpreters to get things working in the first place really. Lets hope in time this ruby deployment fiasco becomes cleaner. ken. On May 20, 1:07 am, Chad Huneycutt wrote: > Thanks for sanity check, Ken.  I just c