A web service for doing hiera lookups and reverse hiera lookups
It gets facts from PuppetDB and looks up the specified hiera key. Results are returned as JSON.
/hiera/<hostname>/<key>[/<resolution_type>][?fact=override]
- hostname is the hostname we should fetch the facts for
- key is the hiera key to look up
- resolution_type is optional and should be either array, priority or hash with priority being the default
- Any additional URL parameters are used for overriding facts
/hiera_reverse/<key>/<value>[/<resolution_type>]
- key is the hiera key to look up
- value is the value to match
- resolution_type is optional and should be either array, priority or hash with priority being the default