Add lookup_hiera_hash function
authorGiulio Fidente <gfidente@redhat.com>
Mon, 23 May 2016 19:09:21 +0000 (21:09 +0200)
committerGiulio Fidente <gfidente@redhat.com>
Wed, 25 May 2016 21:55:44 +0000 (23:55 +0200)
commit4e5ebf3ad86b79710784f3c27a611ec436c4ba76
treed698454072979138b8def984492eaf5d0686f418
parent73a687263c38e85344bbab3a3536873f8285322d
Add lookup_hiera_hash function

The lookup_hiera_hash function is meant to lookup for the value
of a given key from a given Hiera hash. In the manifests this is
possible by saving the value of the hash in a variable first but
when driving lookups from the Heat templates we can't do it.

Change-Id: Ie31bb70314db44a0a18e86090cc74aa4df5de169
lib/puppet/parser/functions/lookup_hiera_hash.rb [new file with mode: 0644]
spec/fixtures/hiera.yaml [new file with mode: 0644]
spec/fixtures/hieradata/default.yaml [new file with mode: 0644]
spec/functions/lookup_hiera_hash_spec.rb [new file with mode: 0644]
spec/spec_helper.rb