O'Reilly logo

Puppet 5 Essentials - Third Edition by Felix Frank, Martin Alfke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required