I have created a puppet module and wish to use (hiera 5) module-level hiera to set values for dependencies. I have created a hiera.yaml, data dir and common.yaml. However, module hiera values do not appear to be passed to the dependencies, and I have to set the hiera at the environment level instead (which is then not self contained within the module).
It appears that hiera keys only resolve with the local module prefix.
The dependency I am targeting is fervid/secure_linux_cis and I need to set some hiera for it's classes with 'enforced => false'. Doing this in a manifest isn't 100% effective as a few classes present as duplicate resources.
Essentially, what I want to be able to do in my module's common.yaml is:
---
my::module::key1: 'value'
secure_linux_cis::redhat7::cis_1_1_2:enforced: false
Using the above example, I can resolve the my::module value but the dependency secure_linux_cis value is ignored.
Is there a way to get module level hiera to pass values to a dependency?