Skip to content

Instantly share code, notes, and snippets.

@kwilczynski
Created May 10, 2011 16:53
Show Gist options
  • Save kwilczynski/964880 to your computer and use it in GitHub Desktop.
Save kwilczynski/964880 to your computer and use it in GitHub Desktop.
[krzysztof@development tmp]$ cat test.erb
<%= a[0] %>
[krzysztof@development tmp]$ cat test.pp
class test {
$a = ['a', 'b']
file { "/tmp/test":
content => template("/tmp/test.erb"),
ensure => present,
}
}
include test
[krzysztof@development tmp]$ puppet test.pp
notice: //test/File[/tmp/test]/ensure: created
[krzysztof@development tmp]$ cat test
a
[krzysztof@development tmp]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment