Error 400 on SERVER: Failed to parse template iptables/test.erb: can't convert Array into String at .../iptables/manifests/init.pp:3 on node example.com
--
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/-/AKM_WbSvMAsJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Thanks Nan, I've tried them all (hiera, hiera_array and hiera_hash), unfortunately with no luck.Like I mentioned above, it doesn't have to be necessarily a hiera hash. Even a simple var: name inside the yaml file gives that error. As long as you have an array defined as a parameter, together with any type of variable from hiera (string, array, or hash), it doesn't work.
--
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/-/U6a7O_EwdyYJ.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
<% Puppet::Parser::Functions.function('hiera_array') -%>
> --
> 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/-/U6a7O_EwdyYJ.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
--
Gabriel Filion
---
test: testvar
class test ($role) {
$ips = hiera('test')
notify {"${ips}:}
}
What does your heira.yaml configuration file look like? are you using
%{role} in hiera.yaml hierarchy by any chance?
Thanks,
Nan