Hmm, the puppet package should require the repository if it's used.
Check hiera is installed.

This could become tricky later, in puppet 3.x hiera is part of the puppet package and does not need to be installed separately. Will not be able to require the hiera-puppet package reliably.

Will assume puppet 3.x is installed, and that hiera just exists.
hmm, heira is not closely integrated into puppet, merging params.pp

Now specifies heira.yaml location in puppet conf using augeas.
Define the hiera.yaml config and either create it from a template or from a provide puppet source path.
ah, reusing variable names in different classes requires a full scope lookup in erb templates.
ah, the ruby augeas package needs to be installed to eliminate "Error: Could not find a suitable provider for augeas"
Move hiera datadir logic into template.
Changed to using a single data directory for the yaml and json datastore. This makes it simpler to manage with puppet.
adjusting hiera datadir to allow for environments
hmmm... something's up with creating the hiera data directory.
naughty soft tab
accept hierarchy as a prameter.
try creating hierarchy files...
defining a resource to process an array...
Fix class name.
should now make both json and yaml data stores. json now on by default as yaml can not be parsed by augeas
.json files can not be empty, must at least contain {}
moved heira install into it's own class
Fixed typos and abstracted the environments directory
hmm, something tells me that using enviroments with hiera may give me trouble.