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
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
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
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
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
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
- 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
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
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