Reading vault secrets from consul-template
<p>How do I query just the value of a secret key from consul template ? From vault cli I would do</p>

<pre><code>vault read -field=value secret/somekey
</code></pre>

<p>and it works fine. However, in the consul-template </p>

<pre><code>{{secret "secret/somekey"}} 
</code></pre>

<p>returns something like </p>

<pre><code>{ 2592000 false map[value:11122222001040]
</code></pre>

<p>I can see it's outputting lease_duration etc along with the value. How do I get just the value in consul-template ? </p>