I'm having an issue trying to pass an array parameter for a hiera lookup
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
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/9bffZQjQ190J.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.