Hiera data not being used by module

asked 2016-10-17 13:10:41 -0600

ccovarrubias gravatar image

I've cloned a module to the forge and modified for our organization's use. I'm running into an issue now, though, where the hiera data I'm passing it is not being used by the module. I can pull the data in my manifests using hiera lookups, but for whatever reason, the module itself isn't pulling the data. I'm out of ideas and debug isn't helping any.

Any suggestions to try and track this down?

edit retag flag offensive close merge delete


how is the module pulling data? As hiera function calls or as class parameter lookup? Have you run the puppet server in debug mode? Its logs show which keys have been looked for and in which files lookups have occurred.

pascal gravatar imagepascal ( 2016-10-18 10:56:20 -0600 )edit

what is difference between these 2 statements? Heira data is being pulled in manifest but not in module. I don't quite get it.

Mr_Sharma gravatar imageMr_Sharma ( 2016-10-19 10:51:30 -0600 )edit

Additional info: So i manually compiled the host's catalog. Reviewing the output, it turns out that any hiera lookups for that module are replacing the environment dir in path with [ ]. /etc/puppetlabs/code/environments/[]/hieradata should be /etc/puppetlabs/code/environments/envname/hieradata

ccovarrubias gravatar imageccovarrubias ( 2016-10-21 16:37:07 -0600 )edit

Can you post your hiera.yaml and excerpts of the hieradata entries for the data you're trying to pass?

aharden gravatar imageaharden ( 2016-10-26 13:06:47 -0600 )edit