How to configure with Hiera
Closed this issue · 4 comments
thomasbergmann commented
I´m stuck getting it to work with Hiera. Is it possible to convert to yaml?
mosen commented
I'm not sure if this is possible because its a resource type and not a class.
I think it could be possible to wrap the type with a class, similar to what the mysql module does perhaps with mysql::db
and its Database type.
I will find the answer and report back.
jonathanbower commented
Have a look at the create_resources function:
https://docs.puppetlabs.com/references/latest/function.html#createresources
mosen commented
Thanks @jonathanbower, I knew there'd be another way to create the resource out of hiera. Closing as resolved.
thomasbergmann commented
Thanks, will check this.