On Thu, Feb 9, 2012 at 9:09 PM, Vlad <v...@vladgh.com> wrote:
> Thanks Gary and Lelutin.
>
> Gary: That was the first thing I tried, and no luck there either. I even
> took out the template out of the equation and called a simple variable like:
> common.yaml:
>>
>> ---
>> test: testvar
>
>
>>
>> class test ($role) {
>>
>> $ips = hiera('test')
>> notify {"${ips}:}
>>
>> }
>
> No success here either. If I get rid of the $role parameter, it simply
> works. If I get rid of the hiera lookup, and keep only the role (notify
> {"${role}":}), it works. But not together.
>
> Lelutin: I just tested your suggestion but it still doesn't work. I forgot
> to mention that I have hiera and hiera-puppet gems (0.3.0) plus a checkout
> of hiera-puppet inside my modules folder. And yes all functions are
> pluginsynced across all agents.

What does your heira.yaml configuration file look like? are you using
%{role} in hiera.yaml hierarchy by any chance?

Thanks,

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
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