Brice Figureau schrieb:
> On Fri, 2008-10-17 at 09:29 -0500, Luke Kanies wrote:
>> class base {
>> file { "/tmp/test": content => foo }
>> }
>>
>> class sub inherits base {
>> File <| |> { mode => 666 }
>> }
>>
>> class other inherits base {
>> File <| |> { content => bar }
>> }
>>
>> include sub, other
>>
>> The first query will make the resource non-virtual, and I think that
>> means the second query will null-op, which means the override wouldn't
>> happen.
>>
>> Right?
>>
>> As expected, I just ran this code in your 1088 branch, and just the
>> first override took affect.
>
> Yes, you're right.
> Is it something I should change?
> But then, when to mark the resource non virtual anymore?
And
File["/var/log/blah"]{...}
then becomes a shorthand for
File <| title == "/var/log/blah" |> {... }
?
This reminds me a bit of Feature#48: "Make filenames support globbing".
Regards, DavidS
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Developers" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---