Skip to content

Instantly share code, notes, and snippets.

Created November 16, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f75465aaa64ca60800ee to your computer and use it in GitHub Desktop.
Save anonymous/f75465aaa64ca60800ee to your computer and use it in GitHub Desktop.
print "networks:"
i = 21
for h in range(1, 236):
print "{% elif grains['host'] == 'cn" + str(h) + "' %}"
print " store:"
print " ip_address: 10.110.0." + str(i)
print " netmask: 255.255.252.0"
print " vlan: 1025"
print " mtu: 1500"
print ""
i += 1
print "{% endif %}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment