The Puppet Forge contains thousands of modules that you can use in your own environment.
Modules are self-contained, shareable bundles of code and data. Each module manages a specific task in your infrastructure, like installing and configuring a piece of software. You can write your own modules or download pre-built modules from the Forge. While you can use any module available on the Forge, PE customers can take advantage of supported modules. These modules are designed to make common services easier, and are tested and maintained by Puppet. A lot of your infrastructure will be supported by modules, so it is important to learn how to install, build, and use them.
In this guide, you will install the pre-built puppetlabs-apache
, which will help you install,
configure, and manage Apache services.
You have just installed a Puppet module!
Next, use the apache
class included in the puppetlabs-apache
module to manage Apache
with Puppet Enterprise.
About module directories
By default, Puppet keeps modules in /etc/puppetlabs/code/environments/production/modules
.
This includes modules that you download from the Forge and those you write
yourself.
PE also creates two other module directories: /opt/puppetlabs/puppet/modules
and /etc/puppetlabs/staging-code/modules
. For this
guide, don't modify or add anything to either of these directories.
There are some resources about modules and the creation of modules that you can reference.