Hi.
I have some .yaml file:

iptables::test:
  ip:
    1.1.1.1  : 'adm-1'
    2.2.2.2  : 'adm-2'
    3.3.3.3  : 'adm-3'

And i want to parse this file in inline_template. 

I do:

$variable1 = hiera('iptables::test.ip')$variable2 = inline_template("<% 
@variable1.each do |key,value| %>Allow From <%=key %> #<%=value %>\n<% end -%>")

But get error:
Error 400 on SERVER: Could not find data item iptables::test.ip in any Hiera 
data file and no default supplied

Could you help me how parse my .yaml in inline_template. Thank you.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/38ca7f12-c34b-440d-9069-d7902190f370%40googlegroups.com.

Reply via email to