Displaying 1 result from an estimated 1 matches for "temtest".
Did you mean:
memtest
2006 Aug 28
10
Templates and arrays
I''m in the process of documenting templates right now, and I figured
I should see what happens when you use them with arrays:
$ cat ~/bin/test.pp
$values = [this, is, an, array, of, values]
$content = template("/tmp/templates/testing.erb")
file { "/tmp/temtest": content => $content }
$ cat /tmp/templates/testing.erb
<% values.each do |val| %>
I got <%= val %> from you!
<% end %>
$ puppet -v ~/bin/test.pp
notice: //file=/tmp/temtest/content: synced
$ cat /tmp/temtest
I got this from you!
I got is from you!...