puppet-inspec
Table of Contents
- Module Description - What the module does and why it is useful
- Setup - The basics of getting started with puppet-inspec
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Module description
This module will download and install inspec by Chef, a compliance as code tool.
Setup
What puppet-inspec affects
puppet-inspec will simply download the package from the package url (or optionally from your own repo) and install it. That's it!
Beginning with puppet-inspec
Simply include the inspec module like so:
include ::inspec
You may want to use a class include if you wish to override parameters:
class { '::inspec' :
install_method => 'package'
}
Usage
I just want to install inspec, what's the minimum I need
include ::inspec
I want to install the package from a custom url
Specify the URL to download from. It's a good idea to make sure you also specify the version specifically, so Puppet knows about it
class { '::inspec' :
download_url => 'http://my_url/inspec-1.7.1-1.el6.x86_64.rpm'
version => '1.7.1-1'
}
Reference
Classes
Public Classes
inspec
: Installs inspec in your environment.
Private Classes
- [
inspec::install
]: Installs the required inspec package using the method you specify
inspec
Parameters
package_name
[String]
Specifies the package to install for inspec
package_version
[String]
Specifies the version of the inspec package to install (default: 1.7.1-1)
install_method
[String]
Specifies the install method you wish to use. Possible values are: 'url' (default) : 'package' If package is specified, it's assumed the package is in an available repo
download_path
[String]
Specifies the temporary path to download the inspec package to before installing it (default: /tmp/
)
download_url_base
[String]
Specifices the url base for the chef website to grab the package from (default: https://packages.chef.io/stable/
)
download_url
[String]
Specifies a custom download_url to grab the package from (default: undef)
os_arch
[String]
Specifies the Operating System Architecture of the package you wish to download (default: platform dependant)
os_family
[String]
Specifies the operating system family of the package you wish to download (default: platform dependant)
os_ver
[String]
Specifies the major relase of the package you wish to download
package_suffix
[String]
Specifies the suffix of the package you wish to download (default: platform dependant)
Limitations
The module only currently works on RedHat Enterprise Linux variants