Let's try treating it like a ruby variable
authorStephen Gran <steve@lobefin.net>
Wed, 22 Apr 2009 23:07:46 +0000 (00:07 +0100)
committerStephen Gran <steve@lobefin.net>
Wed, 22 Apr 2009 23:07:46 +0000 (00:07 +0100)
Signed-off-by: Stephen Gran <steve@lobefin.net>
templates/motd.erb

index bf327bb..3675161 100644 (file)
@@ -1,8 +1,8 @@
 This device is for authorized users only.  All traffic on this device
 is monitored and will be used as evidence for prosecutions.
 
-<% if File.exists?("/etc/puppet/modules/motd/files/$fqdn/motd.tail") -%>
+<% if File.exists?("/etc/puppet/modules/motd/files/" + fqdn "/motd.tail") -%>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-<% File.open("/etc/puppet/modules/motd/files/$fqdn/motd.tail").read -%>
+<% File.open("/etc/puppet/modules/motd/files/" + fqdn + "/motd.tail").read -%>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 <% end -%>