puppet inheritance VS puppet composition

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

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@tekslate.com

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 -0500 )edit