On Feb 12, 2014 10:23 PM, "Rajul Vora" <raju...@gmail.com> wrote:
> how do I produce double-quoted string list out of jinja that will be JSON compatible?
>
> foo-template:
> {
> "foo": {{ pillar['foo'] }}
> }
Salt has a custom Jinja filter that will convert variables to a JSON string:
{
"foo": {{ pillar['foo'] | json() }}
}
http://docs.saltstack.com/ref/renderers/all/salt.renderers.jinja.html#variable-and-block-serializers