On Fri, Apr 22, 2011 at 8:26 AM, Oliver Schad <pup...@oschad.de> wrote:
> Am Thursday 21 April 2011 schrieb mir Martin Alfke:
>> On Apr 21, 2011, at 10:58 AM, Oliver Schad wrote:
>> > Inside I use a template which shows me "undef" as value for the
>> > parameters above. If I define the same parameters inside the class,
>> > it works.
>>
>> How do you use your parameterized class?
>>
>> According to documentation you should use:
>>
>> class { 'app::mysql': }
>
> I do it this way, the including works but not the default values for the
> parameters.

Seems to work fine in 2.6.7. Here's an easy test file, try it with the
inline_template string in the erb file
class hello (
  $var = 'hello'
) {
  #$string = inline_template("<%= var %>")
  $string = template("/tmp/hello.erb")
  notice($string)
}
include hello

If you have issues, post your manifests, test, and erb template on pastie.

Thanks,

Nan

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to