Skip to content

Instantly share code, notes, and snippets.

@pprince
Created May 17, 2016 14:40
Show Gist options
  • Save pprince/f847ef22a6ef6527de8abb8ce91b654b to your computer and use it in GitHub Desktop.
Save pprince/f847ef22a6ef6527de8abb8ce91b654b to your computer and use it in GitHub Desktop.
{% set our_ips = [] %}
{% our_ips.extend(salt['network.ip_addrs'](cidr="10.150.0.0/16")) %}
{% our_ips.extend(salt['network.ip_addrs'](cidr="172.16.0.0/16")) %}
{% set our_ip = (our_ips + [None])[0] %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment