Luke Kanies schrieb:
>>> I assume these overrides follow the same rules as current overrides  
>>> --
>>> only possible within a subclass?
>> Maybe I'm plain wrong, but I don't think this restriction is  
>> necessary,
>> since after all if the original resource is not collected/realized it
>> doesn't even exist. So the override is just that we are  
>> "instantiating"
>> a different resource than what was exported/virtualized.
> 
> Note that multiple classes can realize a given resource.  Thus, it  
> does matter, or at least, can.

I think the following two snippets should be managed by the same rules 
-- the same code if at all possible:

== first piece =========================================

node other_node {
     @user {
         "brice":
             uid => 1000,...
     }
}

class with_uid {
     User <| name == brice |> {
         uid => 2000
     }
}

class with_groups {
     User <| name == brice |> {
         groups => [ admin, wheel, root, sudoers ]
     }
}

node this_node {
     include with_uid
     include with_groups
}

== second piece =========================================

class other_class {
     user {
         "brice":
             uid => 1000,...
     }
}

class with_uid inherits other_class {
     User[brice] {
         uid => 2000
     }
}

class with_groups inherits other_class {
     User[brice] {
         groups => [ admin, wheel, root, sudoers ]
     }
}

node this_node {
     include with_uid
     include with_groups
}


============

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to