The workflow goes roughly like this:
1. You create a list of strings in YAML syntax.
2. That is parsed into a Python list of strings and shipped to the Minion.
3. The Jinja templating engine's job is to produce a string and so it
casts that list object to a string using the normal Python mechanism
which uses single quotes. Example:
% python -c 'print ["foo", "bar"]'
['foo', 'bar']
You can use Jinja to manually build a string of double-quoted,
comma-separated strings from your list by looping over it or possibly
by using Python's ''.join() method. But a quicker way for this
use-case is to just take advantage of the fact that JSON also uses
double-quotes when it serializes a data structure to a string. :-)
This should result in what you want:
"start_join": {{ servers | json() }}
> --
> You received this message because you are subscribed to the Google Groups
> "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
salt-users+...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.