Book Image

Extending Puppet

By : Alessandro Franceschi
Book Image

Extending Puppet

By: Alessandro Franceschi

Overview of this book

Table of Contents (21 chapters)
Extending Puppet
About the Author
About the Reviewers

Reusability patterns

Modules' reusability is a topic that has got more and more attention during the last few years; as more people started using Puppet, the need of having some common and shared code to manage common things became more evident.

The following are the reusable modules' main characteristics:

  • They can be used by different people without the need to modify their content

  • They support different operating systems and allow easy extension to new ones

  • They allow users to override the default files provided by the module

  • They might have an opinionated approach to the managed resources but don't force it

  • They follow a single responsibility principle and should manage only the application they are made for

Reusability, we must underline, is not an all or nothing feature; we might have different levels of reusability to fulfill the needs of a variant percentage of users. For example, a module might support Red Hat and Debian derivatives but not Solaris or AIX; is it reusable? If we use the...