Hi Dirk,
Thanks so much for that, adding lookup_options in common.yaml worked :)
Ideally I'd like to put the setting as an argument to %{lookup()} or
%{alias()} within hiera documents, but they don't seem to support that.
All the best,
Mark
On Friday, 3 September 2021 at 06:28:03 UTC+1 [email protected] wrote:
> Am Donnerstag, dem 02.09.2021 um 08:46 -0700 schrieb Mark Dixon:
>
> I'd like to do a simple merge lookup of an array within a hiera yaml file.
> At the moment I seem to be getting the array from the hiera location that
> "wins", and not a merged version.
>
>
> You need to tell hiera to do so, probably in your common.yaml, by
> specifying "lookup_options":
>
> ---
> lookup_options:
> an_array:
> merge: unique
>
> or by specifying the merge behaviour when calling "lookup()", see
> https://puppet.com/docs/puppet/6/hiera_automatic.html#lookup-merge-behaviors
>
> HTH...
>
> Dirk
>
--
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/c02a3fd7-5367-41aa-b02a-688de956352fn%40googlegroups.com.