----- Original Message -----
> From: m...@ml4.dk
> To: puppet-users@googlegroups.com
> Sent: Friday, February 1, 2013 11:19:51 AM
> Subject: [Puppet Users] Problems parsing array to a define in puppet manifest
> 
> I have searched wide and far for a solution to this issue, but didn't find
> any real solution that I could use.
> 
> I am running puppet ver. 3.0.2, and my problem is when I try to parse an
> array to a define in a manifest.
> 
> My code looks as the following:
> 
> $testaccess = hiera('testaccess')
> 
> define testdefine () {
>     notify{"Parsed following to define: ${name} : }
> }
> 
> which gives the following output:
> Parsed following to define: test1test2
> 
> It seems that the array is concatenated into one string, instead of parsing
> each entry in the array to the define.
> 
> Can anyone shed some light into this issue, would be much appreciated :)

You're not showing how you pass the array to the define but I would guess
you're doing:

testdefine{"$testaccess": } this turns the array into a string, you probably
should just remove the "s and make it testdefine{$testaccess: }
> 
> /Marc
> 
> --
> 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 puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> 

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


Reply via email to