Auditing the password file

Now that we've seen how the audit resource works on files, it's time to perform an example. Building on our last exercise, we will audit the password file and see the results.

Preparation

The following steps need to be performed to audit the password file:

  1. If you're following along from the last example, go ahead and start the virtual machine with the following command:
    vagrant up
    
  2. Once the system is up, go ahead and SSH into it using the following command:
    vagrant ssh
    

You should now be logged in to the system.

Creating the manifest

Unlike the last chapter, we are going to build this manifest straight into the /etc/puppet/manifests/site.pp file. Since the example is short and for demonstration purposes, it does not make sense ...

Get Learning Puppet Security 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.