Hi there,

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.

I guess it's not possible, perhaps due to possible circular dependencies, 
etc. Is that right, please?

Thanks,

Mark

e.g.

one_file_in_hiera_path.yaml:
"""
an_array:
- one
"""

another_file_in_hiera_path.yaml:
"""
an_array:
- two
"""

yet_another_file_in_hiera_path.yaml:
"""
merged_array_attempt1: "%{alias('an_array')}"

merged_array_attempt2: "%{lookup('an_array')}"
"""

Neither merged_array_attempt1 or merged_array_attempt2 returns the merged 
array, just the definition in one of the files.

-- 
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/f880b0fd-de15-459f-b7c5-b77416622e93n%40googlegroups.com.

Reply via email to