Hi Jiří,
you could use a simple hash to get the result you want. Using
Hash.each_pair [1] you can iterate over the keys and values in your hash
representing the mount points.
Example:
your_manifest.pp:
$mountpoints = { 'user1' => '/home/some/path', 'user2' =>
/home/another/path' }
your_template.erb:
<% mountpoints.each do |user, path| -%>
/bin/mount --bind <%= path %> /home/<%= user %>/www
<% end -%>
[1]:
http://www.ruby-doc.org/core-1.9.3/Hash.html#method-i-each_pair
Best regards,
Jochen
On 27.07.2012 10:12, Jiří Červenka wrote: