This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |