[Novalug] Any puppet people out there?
James Ewing Cottrell 3rd
JECottrell3 at Comcast.NET
Thu Mar 22 11:22:18 EDT 2012
Don't try to do it all at once. Why don't you create a public Subversion
Repo or put something on Git Hub and invite people to pull and
contribute at least Commentary if not Code.
Define all your classes in one place and then simply include that once.
On 3/22/2012 9:25 AM, Gopher wrote:
> On 3/22/12 7:26 AM, Steve Bambling wrote:
>> I think John nailed it, this is basically what we do for some of our
No, he didn't. What he said was Quite Useful, but he demonstrated
Conditionals, not Parameterized Classes.
> My stuff isn't so simple - at least no the way I look at it.
> I want to do the following:
> - Define 'base' that will applied to all hosts with per-environment
> - Define exceptions based upon node name (i.e. 'dns.*')
> - Define exceptions based upon specific node name (i.e. 'dns-test')
> The issues I have is that I can only declare a given class once,
> regardless of the parameters passed to it (this galls me to no end, BTW
> - one reason I am not fond of Puppet at this time).
> And I have yet to figure out how to do all this without being able to
> overload variables later in he configuration ('you can only define it
> once'. ARG!)
> And believe me, my explanation here is no where as complicated as my
> situation is in real life. I've left out a lot of the gory details of
> waht I'm trying do to. Needless to say hiera isn't helping and I think
> either I'm going to end up with a ton of duplicated configuration
> information all over the place or a lot of 'if host =X or hostname like
> 'XXXX' ' type code in my modules.
More information about the Novalug