On 08/26/2012 09:29 PM, Bostjan Skufca wrote:
> ### File: module2/manifests/something.pp
> class   module2::something {
>    $param3 = 'asdf'
>    module1::dir::file { "someName": param1=>1 }
> }
> ----------------------------------------------------------------------------------------
> 
> Defines are not exempt to that deprecation? How come?

To answer the original inquiry:

You are not supposed to do that. Instead, add a "param3" parameter to
your defined type and pass the value explicitly, so that puppet can
scope any references statically.

module1::dir::file { "someName": param1=>1, param3 => $param3 }

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to