So, what do all of the previous examples look like in action? In this section, we'll set up auditing on the password file using the preceding noop parameters and the resources.
First, start your Vagrant machine and SSH into it.
We'll create a module to hold this called useraudit
. To do this, let's first create the skeleton of our module much like in Chapter 1, Puppet as a Security Tool. On your virtual machine, run the following command:
sudo mkdir –p /etc/puppet/modules/useraudit/manifests
This module is only going to have manifests, so it's the only directory we'll make.
Tip
For brevity in this book, we're creating bare bones skeleton example modules. The module format is very powerful and contains metadata such as versioning and dependency data. See https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html or check out the book Extending Puppet by Alessandro Franceschi for more information.
Now that we have a module structure, let's make the manifest. Create...