--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/533AE688.3070702%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.
I suspect duplicate keys are not valid YAML.
R.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAKUTv3JLCw_FWJTnf8ZCJ_RtWuLKvwG6afa5oECxB1R%3DxKdjHQ%40mail.gmail.com.
--
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 puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/533AF084.9030509%40alumni.tu-berlin.de.
Yeah, sounds about right.
Pardon my prejudice, but from your description I get the feeling that
you are not employing hiera to the height of its strengths. You want
your hierarchy to contain *data* for your nodes. While it's possible to
map all your resources to YAML and make heavy use of create_resources(),
it is certainly not beneficial in all cases.
I suggest at least a cursory glance at the roles/profiles pattern (or
what I lovingly refer to as the hiera ENC) to see if it fits you better.
An approach that has served me well is to make my manifests as
pseudo-intelligent as possible (allowing puppet to do the right thing
without us copy-pasting all the time) and sprinkle in hiera lookups only
where customization is needed or I cannot whip up a logic based on facts
alone.
Note that either way, you won't solve your issue of spacing out hiera
values per your given design structure. If you rely on manifests more,
you can get much closer to that. (If it's a sound goal at all is yet
another good question.)
I suspect duplicate keys are not valid YAML.