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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.