Chapter 3. Your First Modules

In the previous chapter, we learned the installation of Puppet agents on multiple hosts. Now, we will start writing our first modules. We will cover the following topics in this chapter:

  • Module structure and defining modules
  • Modules to create files and directories
  • Assigning classes to hosts and hosts groups
  • Modules to manage services
  • Modules to manage users
  • Modules to run commands

The module structure

We will start with the basic module structure. Puppet uses manifests to apply settings to hosts. Puppet manifests are the files containing the Puppet code. The manifests, files, and data are packed as a module structure. You can write your own modules or you can download pre-built open source modules from the Puppet Forge. We ...

Get Learning Puppet for Windows Server 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.