View gist:ef4381cc4a49a4b6b55f
A little jinja RTFM worked... | |
{%- set proxy= [] %} | |
{%- for host, hostinfo in salt['mine.get']('G@roles:some_role and G@datacenter:env', 'network.interfaces','compound').items() %} | |
{%- do proxy.append(host) %} | |
{%- endfor %} | |
proxy={{ proxy }} |