Re: [Puppet Users] NRPE configuration with Augeas

2012-01-15 Thread Tim Sharpe
You probably want your onlyif to look like match command[./${name}='${value}'] size == 0 I would probably do something like this (https://gist.github.com/1619400). The reason for the two augeas resources is one will create the command if it doesn't exist at all, the other will update the name

[Puppet Users] Staging environment for infra with 20+ unique servers

2012-01-15 Thread Walter Heck
Hello, one of my clients has a server infrastructure with 20+ servers that are all unique. Currently it runs without a puppet staging environment which makes me sleep badly at night :) The problem is: the client doesn't have the resources to run 20 staging servers as well, and the overhead of sett

Re: [Puppet Users] Re: Exec depends on ressources that are several different types

2012-01-15 Thread Nigel Kersten
On Sun, Jan 15, 2012 at 4:17 PM, Patrick Viet wrote: > On Jan 11, 9:07 am, Aaron Grewell wrote: > > require accepts an array, so you should be able to do this: > > require => [File['foo'],Exec['bar']] > > It worked. Thanks so much. I should submit this as an addition in one > of the wiki examples

[Puppet Users] Re: Exec depends on ressources that are several different types

2012-01-15 Thread Patrick Viet
On Jan 11, 9:07 am, Aaron Grewell wrote: > require accepts an array, so you should be able to do this: > require => [File['foo'],Exec['bar']] It worked. Thanks so much. I should submit this as an addition in one of the wiki examples on the puppet website. Patrick -- You received this message b

Re: [Puppet Users] Re: Using foo::params, inheritance, and parameterized classes simultaneously?

2012-01-15 Thread Walter Heck
On Sun, Jan 15, 2012 at 16:48, R.I.Pienaar wrote: > > > sounds like you want to use hiera > > http://www.devco.net/archives/2011/06/06/puppet_backend_for_hiera.php Ah, I didn't see before that it actually gets it's data from mutliple backends. That's pretty sweet! -- Walter Heck -- follow @wal

Re: [Puppet Users] Re: Using foo::params, inheritance, and parameterized classes simultaneously?

2012-01-15 Thread Nigel Kersten
On Sun, Jan 15, 2012 at 12:42 AM, Alessandro Franceschi wrote: > > So, to reply to your question, Nigel, something like a hiera backend or a > Puppet function that does what is written before in any Puppet setup would > be what I need. > > The ideal, maybe, would be a simple function that does t

Re: [Puppet Users] Re: Using foo::params, inheritance, and parameterized classes simultaneously?

2012-01-15 Thread R.I.Pienaar
- Original Message - > I would be very happy to see a seamless/lazy/magic approach to using > variables. Something similar to what Al quoted seems nice: I'd like > to > be able to have the option to feed values to variables in different > places (of which one will take precedence over the

Re: [Puppet Users] Re: Using foo::params, inheritance, and parameterized classes simultaneously?

2012-01-15 Thread Walter Heck
I would be very happy to see a seamless/lazy/magic approach to using variables. Something similar to what Al quoted seems nice: I'd like to be able to have the option to feed values to variables in different places (of which one will take precedence over the other, and you preferrably add a value o

Re: [Puppet Users] Re: Using foo::params, inheritance, and parameterized classes simultaneously?

2012-01-15 Thread Alessandro Franceschi
On Sunday, January 15, 2012 12:41:50 AM UTC+1, Nigel Kersten wrote: > > > > What would it take for you to just have one source of truth for data > Alessandro? > > e.g. what would we have to change about Puppet for us to simply use Hiera > ? > > We're looking to integrate Hiera into Puppet fo