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.