Displaying 1 result from an estimated 1 matches for "mainshareoptions".
2007 Aug 30
4
Templates and Ruby
Hi,
I am using a template to create an /etc/exports file. I have a template
that looks like this (but results in the puppetmasterd dying on the
server when the client updates):
<% nfsHomeClients.split.each do |host| -%>
/nfs <%= host %>(<%= mainshareoptions %>)
<% nfspaths.each do |path| -%>
<%= path %> <%= host %>(<%= nfsoptions %>)
<% end -%>
<% end -%>
The nfsHomeClients variable looks like this (hence the split used in the
template):
$nfsHomeClients = "server1 server2 server3 server4" # there...