- Enhancement: Backend now utilizes Hiera's context.interpolate function to add interpolation of values in results.
- Bugfix: nil values returned from HTTP lookup caused exception when trying to dig into the hash - this behaviour has been corrected to return
:not_found
in this scenario. See comment on #66 (#69)
-
Feature: New parameters
dig
anddig_value
give greater control over dealing with APIs that return data in different formats by allowing hiera-http to dig down into the returned data hash to find the corresponding key. Read more about this feature in the documentation (#66) -
Enhnacement: Hiera-HTTP can now distinguish between a nil value and an undefined value. If a hash contains the key for the lookup with no data, this is assumed to be a key set to nil and is returned to Hiera as nil. Where there is no key found this is assumed to be undefined and the
context.not_found()
method of Hiera is called. This allows data to contain keys explicitly set to nil. -
Enhancement: Better caching of the lookuphttp object in between requests.
- Feature: Added the tags
__MODULE__
,__PARAMETER__
and__CLASS__
for URL interpolation - Bugfix: lookup_http was still being called even when Hiera had a cached value for the lookup path
-
Fix: Hiera 5 no longer allows us to pass
%{key}
through from the configuration to be interpolated by the backend, as was documented examples for hiera-http 2.x - to get around this issue the keyword__KEY__
can be used in URI paths to interpolate the key into the URL (#53) -
Fix: URI Escaping of paths with parameters (&foo=bar) caused the parameters to be dropped (#53) this has now been fixed.