O'Reilly logo

Learning Puppet for Windows Server by Fuat Ulugay

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

The module layout

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.

Note

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

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