Re: [Puppet Users] ERB strangness, or ruby/puppet internals I don't understand

2011-04-20 Thread Thomas Bellman
On 2011-04-15 21:10, Clay Caviness wrote: Let's say I have a very simple template template.erb: % if not has_variable?(foobar) then foobar = undefined end -% foobar: %= foobar % class: %= foobar.class % And a basic manifest: template.pp: $mytemp = template('template.erb')

Re: [Puppet Users] ERB strangness, or ruby/puppet internals I don't understand

2011-04-18 Thread Felix Frank
On 04/15/2011 09:10 PM, Clay Caviness wrote: Let's say I have a very simple template template.erb: % if not has_variable?(foobar) then foobar = undefined end -% foobar: %= foobar % class: %= foobar.class % And a basic manifest: template.pp: $mytemp = template('template.erb')

[Puppet Users] ERB strangness, or ruby/puppet internals I don't understand

2011-04-15 Thread Clay Caviness
Let's say I have a very simple template template.erb: % if not has_variable?(foobar) then foobar = undefined end -% foobar: %= foobar % class: %= foobar.class % And a basic manifest: template.pp: $mytemp = template('template.erb') notice($mytemp) And then I apply the manifest, with an undefined