On Fri, 2011-06-10 at 10:00 +0200, Lorenz Schori wrote:
> Hi,
> 
> I've been upgrading from Debian Lenny to Squeeze and now many of my
> puppet modules are failing with the message "Could not find
> resource(s) X for overriding on node Y". I've isolated the problem case
> and apparently properties of defined resources may not be overridden
> anymore in recent versions.
> 
> Consider the following two test cases:
> 
> [snip]

> B: inherit-defined-resource.pp 
>     class p {
>       define m($message) {
>         notify{"${message}":}
>       }
> 
>       m{"test":
>         message => "hello",
>       }
>     }
> 
>     class c inherits p {
>       M["test"] {
>         message => "overridden",
>       }
>     }

I think puppet is looking M in the scope of C, but not in the scope of P
anymore.
Can you rewrite it like this and test:

    class c inherits p {
       P::M["test"] {
         message => "overridden",
       }
     }
 
I'm confident this will solve your issue, but I don't remember exactly
if this behavior changed in 2.6.x.
In any case, you should open a redmine ticket with your observations.
-- 
Brice Figureau
Follow the latest Puppet Community evolutions on www.planetpuppet.org!

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

Reply via email to