]> git.donarmstrong.com Git - dsa-puppet.git/blob - templates/motd.erb
I suspect that while the inline read was shorter, it was leaking fds
[dsa-puppet.git] / templates / motd.erb
1 This device is for authorized users only.  All traffic on this device
2 is monitored and will be used as evidence for prosecutions.
3
4 <% if File.exists?("/etc/puppet/modules/motd/files/" + fqdn + "/motd.tail") -%>
5 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6 <% f = File.open("/etc/puppet/modules/motd/files/" + fqdn + "/motd.tail") -%>
7 <%= f.read -%>
8 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9 <% f.close -%>
10 <% end -%>