ripienaar / puppet-module-data

Hiera backend that stores data in a module
74 stars 43 forks source link

Adding support for a provider #29

Closed danzilio closed 8 years ago

danzilio commented 9 years ago

This commit adds support for a provider for this backend. I love this backend but I really hate YAML. I also hate JSON. HOCON is a good compromise. I've added provider support for JSON and HOCON. We still default to YAML for the provider but this allows users to define a data provider in their module's hiera.yaml using the :provider key.

I know you've been hesitant to add something like this in the past, but it's worth a try ;-)

danzilio commented 9 years ago

If you're willing to merge this, I'll update the docs too!

ripienaar commented 9 years ago

really think less is more when it comes to choices in this one :) the PL guys are busy rewriting the entire hiera and this seems to include data in modules. Lets see how that pans out before you start relying on anything like this. Judging by the ticket traffic it's not far in the future

danzilio commented 9 years ago

haha ok, i figured as much! this module has really changed the way we do hiera, especially for our legacy stuff. thanks for writing it!