puppet inheritance VS puppet composition

asked 2017-09-11 01:29:48 -0600

johnybasha gravatar image

updated 2017-11-16 05:50:44 -0600

I just came cross puppet inheritance lately. A few questions around it:

1.is it a good practice to use puppet inheritance? I've been told by some of the experienced puppet colleagues Inheritance in puppet is not very good, I was not quite convinced. 2.Coming from OO world, I really want to understand under the cover, how puppet inheritance works, how overriding works as well.

Thanks in advance Johny

edit retag flag offensive close merge delete



See “Aside: When to Inherit” https://docs.puppet.com/puppet/latest/lang_classes.html#inheritance The Puppet language is a declarative language. You describe a state. Inheritance doesn't quite fit in that paradigm. Either something belongs to a catalog, or not. All resource declarations are unique.

Kai Burghardt gravatar imageKai Burghardt ( 2017-09-11 18:04:01 -0600 )edit