Consul KV Variables Dependent on Variables in Different KV Store

When defining key-values in a consul KV store, is it possible to reference variables from a different consul kv store? For instance, I would like to have one KV store called “Base Variables” that contains a key called “BasePath” with a value of “/path/to/some/base/location” and I have another kv store (or stores) that want to use that value of BasePath (i.e. I have a KV store called “MyTemplate” with a key of “MyCfg” with a value of “$BasePath/mycfgpath/” so during templating MyCfg would resolve to “/path/to/some/base/location/mycfgpath/”)

Thanks for any help you can provide.

1 Like