Maybe it needs a print statement to end up on stdout?
authorStephen Gran <steve@lobefin.net>
Wed, 22 Apr 2009 23:20:47 +0000 (00:20 +0100)
committerStephen Gran <steve@lobefin.net>
Wed, 22 Apr 2009 23:20:47 +0000 (00:20 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
templates/motd.erb

index 0155683..20b89a8 100644 (file)
@@ -3,6 +3,6 @@ is monitored and will be used as evidence for prosecutions.
 
 <% if File.exists?("/etc/puppet/modules/motd/files/" + fqdn + "/motd.tail") -%>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-<% File.open("/etc/puppet/modules/motd/files/" + fqdn + "/motd.tail").read -%>
+<% print File.open("/etc/puppet/modules/motd/files/" + fqdn + "/motd.tail").read -%>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 <% end -%>