-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu 26 Apr 2012 17:24:17 BST, Brian Carpio wrote:
> $subnet = [ 192.168.10.0, 192.168.20.0, 192.168.30.0 ]
> $range = [ 192.168.10.115 192.168.10.120 ]
Sounds like you need a Hash here:
$subnets = { '192.168.10.0' => '192.168.10.115 192.168.10.120',
'192.168.20.0' => '192.168.20.105
192.168.20.130',
}
Then access it with something like:
<% subnets.each do |subnet,range| -%>
subnet <%= subnet %>
range <%= range %>
<% end -%>
Hope that helps,
Greg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk+ZexQACgkQ8O7RN8oK65P3DACeNr38heQ8cILSbEgbGW1CMhng
ESsAniVsAJpfAoWklmCk+6qDCAwji/7d
=M9cK
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.