--
Digant C Kasundra <dig...@stanford.edu>
Infrastructure Systems Software Developer, ITS:IDG, Stanford University
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
I agree with you. I think that's why I'm curious. We also overrides on defined types, which is why we prefer them as well. I think while it may be possible to do what we are currently doing with parameterized classes, it would at least involve a lot of restructuring how we think of things in our manifests.
I've [somewhat] recently started developing Puppet modules for use with Foreman[...]
I recently came across some modules on the Forge that got me considering using modules with defined types exposing their functionality. I think this seems to be the ultimate way to do things because it allows the same flexibility as the purpose-specific module setup while essentially requiring you to have another module for your application or workflow which utilizes the defined types from all of your defined type augmented modules.