I need a way to pass a given variable - lets say thearch - to several different files within a given class. I need to be able to state the contents of this variable for each file individually.
I have tried the following:
file { "xxx":
thearch => "i386",
path => "/xxx/yyyy",
owner => root,
group => root,
mode => 644,
content => template("module/test.erb"),
}
This doesn't pass this variable so I can use it with a <%=thearch%> statement within the erb file as I expect.
What am I doing wrong here?
<%= @thearch %>
? Just checking, your example lacks@
from<%=thearch%>
... – Janne Pikkarainen Jun 5 '12 at 18:03