Implementing basic module functionality

Most modules perform all of their work through their manifests.

There are notable exceptions, such as the stdlib module. It mainly adds the parser functions and a few general-purpose resource types.

When planning the classes for your module, it is most straightforward to think about how you would like to use the finished module. There is a wide range of possible interface designs. The de facto standard stipulates that the managed subsystem is initialized on the agent system by including the module's main class; the class that bears the same name as the module and is implemented in the module's init.pp file.

For our Cacti module, the user should use the following:

include packt_cacti 

As a result, Puppet ...

Get Puppet 5 Essentials - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.