Jump in to the configuration management platform Puppet in this Learning Activity! Starting with installing Puppet, we aim to take you from newbie Puppet user to a competent module creator by installing and configuring Puppet Open Source, then by creating an Apache module where we’ll learn how to use resource types, add static files, create templates, use OS-specific parameters, and store data in Hiera. By the end of this learning activity, you’ll be ready to craft your own Puppet modules efficiently and with best practices.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create an `install` class
Create an
install.pp
manifest for the Apache class- Create a `service` class
Create a
service.pp
manifest for the Apache module- Create a `config` class
Create a
config.pp
manifest for the Apache module- Create a `vhosts` class
Create a
vhosts.pp
manifest for the Apache module- Create the `init.pp` file
Create an
init.pp
manifest that includes all previous classes- Run the Apache catalog against web1
Create a
site.pp
manifest for the production environment that runs the Apache class against the web1 agent