FYI, 

if I replace $hostnames = [ 'dummy_host', 'dummy_host1' ]  by $hostnames = 
'dummy_host'
this works.

On Friday, November 23, 2012 12:19:11 PM UTC-5, mickael avedissian wrote:
>
> 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
>

-- 
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/-/jkGKvIGafmkJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to