__KEY__ interpolation not working
soudaburger opened this issue · 4 comments
When running puppet in debug mode, the following occurs, which means the "KEY" is never actually found, because it's looking for "lookup_options" and not the value of the interpolation that should be occurring...
Original uri: "http://localhost:8500/v1/kv/master/kvstore/%{::environment}/ssh_keys/__KEY__"
Querying http://localhost:8500/v1/kv/master/kvstore/dev/ssh_keys/lookup_options
It should be noted that using puppet lookup
finds the key, but using lookup()
from within a manifest does not.
Running masterless Puppet 5.1.0
The interpolated "#{key}" in hiera_http.rb
seems to be interpolating to lookup_options
and not trying other lookups.
This is an issue on my end with the way lookup() behaves. I will have to refactor to make this all work. Sorry for the noise.