Book Image

Learning Puppet Security

Book Image

Learning Puppet Security

Overview of this book

Table of Contents (17 chapters)
Learning Puppet Security
About the Author
About the Reviewers

Using noop

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.


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