Hi,
I am trying to use create_resources with hiera.
My hiera testing.yaml (snippet) looks like this
tomcat::confs:
"%{hiera('webapps_dir')}/tomcat/conf/context.xml":
content: template('tomcat/context.xml.erb')
tomcat::default_confs:
ensure: present
owner: "%{hiera('tomcat::user')}"
group: "%{hiera('tomcat::group')}"
And my manifest (snippet) looks like this
create_resources(file, hiera('tomcat::confs'), hiera('tomcat::default_confs'))
Everything is working as it should apart from the fact that when the context.xml is created, the content is template('tomcat/context.xml.erb') not my actual erb file.
Thanks,
Darren