Skip to content
This repository has been archived by the owner on Apr 23, 2018. It is now read-only.

dalen/hieralookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hieralookup

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.

Forward lookup

/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

Reverse lookup

/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

About

A web service for doing hiera lookups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages