Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set host_ips = [] %}
- {% for network in salt['mine.get']("G@roles:somerole and G@domain:" + grains['domain'], "network.interfaces", expr_form="compound").values() %}
- {% do host_ips.append(network['eth0']['inet'][0]['address']) %}
- {% endfor %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement