Puppeteers,
I am bashing my head against a wall try to call a custom defined resource (I think that's the right terminology) from Heira.
I've created a class (appconfig) and within that I have used Puppet PDK to create a define to create an application config file (loadconf). It works perfectly if I call the code from a Puppet manifest, like so;
appconfig::loadconf {
'/etc/myapp/config.conf':
tcpport => 443
loglevel => debug }
It's pretty much identical to the Puppet supplied example;
The problem is I want separate my data from the puppet code. I am using Hiera (5) and when I add what I think should be in the YAML for calling my custom resource it does NOTHING! No Error message, nothing it just completes normally without calling my custom resource. My Hiera YAML document looks something like this;
---
classes:
- appconfig
appconfig::loadconf:
/etc/myapp/config.conf:
tcpport: 443
loglevel: debug
I have no idea why this is not being evaluated. I have also tried using a 3rd party module to load with no results just message saying no such resource. I used this module (which is excellent!);