From: Stephen Gran Date: Wed, 22 Apr 2009 23:07:46 +0000 (+0100) Subject: Let's try treating it like a ruby variable X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f07b83a40b234ceb50ec0a9c6ff96cef0a3fac3d;p=dsa-puppet.git Let's try treating it like a ruby variable Signed-off-by: Stephen Gran --- diff --git a/templates/motd.erb b/templates/motd.erb index bf327bb5..36751611 100644 --- a/templates/motd.erb +++ b/templates/motd.erb @@ -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 -%>