ripienaar / puppet-module-data

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

Parse hashes to support deep interpolation #7

Closed dgoodlad closed 10 years ago

dgoodlad commented 10 years ago

Hiera::Backend supports recursively parsing Hashes: https://github.com/puppetlabs/hiera/blob/master/lib/hiera/backend.rb#L137-L144

The module-data backend should support that, too. This was motivated by the desire to have string values inside nested hashes be interpolated, e.g.


---
ruby::version::env:
  Darwin:
    BOXEN_S3_HOST: "%{::boxen_s3_host}"

cc @wfarr

wfarr commented 10 years ago

:+1:

ripienaar commented 10 years ago

thanks

wfarr commented 10 years ago

:zap:

On Mar 12, 2014, at 7:42 PM, "R.I.Pienaar" notifications@github.com wrote:

thanks

— Reply to this email directly or view it on GitHub.

dgoodlad commented 10 years ago

@ripienaar would you mind cutting a new release with this included?

ripienaar commented 10 years ago

I've done a new release, thanks for the help :)