Hi,
I'm having an issue trying to pass an array parameter for a hiera lookup
hiera.yaml:
:hierarchy:
- some_place/%{hostnames}
dummy_host.yaml:
---
host: 'dummy_host'
instances:
dummy01:1.2.3.4
dummy02:1.2.3.4
dummy03:1.2.3.4
in my manifest I have:
$hostnames = [ 'dummy_host', 'dummy_host1' ]
$hiera_lookup = hiera('instances')
The above results in me getting the following error:
can't convert Array into String at manifest.pp:18 on node hostname
I also tried using hiera_array and hiera_hash without success.
Thank you for your help
Mike