On 8/24/11 3:46 PM, jcbollinger wrote:
If you have an OO background then the words "class" and "type" may
have connotations and implied similarity for you that just don't apply
in Puppet.  Puppet classes are not "types" in the type theory sense.
Defined types are closer to that, but it may help to use a fuller name
when you think about them: defined *resource* types.  Classes,
parameterized or not, are not resource types; rather, they are
resource _collections_.

I find it helps me to think of classes as *host*-class = a type of host classification (i.e. like measurements Weight and Height) - it is nonsensical to classify it multiple times e.g size = big, size = small, at best it would be redundant (size = big, size = big) to classify a host with the same puppet class multiple times (but I think that special case is also flagged as an error - which it should because the structure is clearly wrong).

Please correct me if I am wrong - I am also learning puppet.

- henrik


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