A module is simply a directory tree with the following structure:
manifests: This contains the manifests in the module
files: This folder contains the static files that are used by the module
templates: This contains templates that will be used by the Puppet manifests
lib: This contains plugins, such as custom facts and resource types
After the basic structure definition, we will start with our first modules in the next section.
Because each module needs to have an
init.pp file with a class name the same as its module, we will see that in Foreman the class names are exactly same as the module names.
You can also create a module with the
puppet generate module command. The following are the details of how to write the command. For ...