Le 4 janv. 2014 à 00:56, Felix Frank <[email protected]> a écrit :
> Hi,
>
> I can see how it's tempting to structure the data more strongly and save
> quite some typing in the process.
>
> But keep in mind that this makes it harder (if not impossible), to
> easily override single arguments in higher hierarchy layers.
My purpose is not to save typing (a very low priority objective for me), but
having hiera files describe as cleanly as possible the configuration of a node.
For configuration overide, I use some specific key in my hiera hierarchy that
describe some commons settings.
For example, and for ssh, it's not configured in localclasses but in a ssh key
that is read using hiera, not hiera array.
So I have in common.yaml :
ssh: ssh::simple
in <domain>.yaml
ssh:
ssh::simple:
accessgroup: users
and I can, in <fqdn>.yaml:
ssh:
ssh::strict:
fromhost: "someserver"
I have some common-case for that like ssh, ntp, networkconfig, puppetconfig,
authentication, resolvers...
>
> By sticking to flat key-value pairs for automatic binding, you gain
> tighter granularity in the data hierarchy.
>
> But again - depending on your typical use cases, this is an interesting
> approach. Nice work!
>
> Cheers,
> Felix
>
> On 01/03/2014 05:23 PM, Fabrice Bacchella wrote:
>> localclasses:
>> - class1:
>> arg1: value
>> arg2: value
>> - class2:
>> arg1: value
>> arg2: value
>> - class3
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/52C74E14.8020902%40Alumni.TU-Berlin.de.
> For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/74929313-6366-4963-A6A3-E55C22A7AA8F%40spamcop.net.
For more options, visit https://groups.google.com/groups/opt_out.