- 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
This module will download and install inspec by Chef, a compliance as code tool.
puppet-inspec will simply download the package from the package url (or optionally from your own repo) and install it. That's it!
Simply include the inspec module like so:
include ::inspecYou may want to use a class include if you wish to override parameters:
class { '::inspec' :
install_method => 'package'
} include ::inspecinspec: Installs inspec in your environment.inspec::profile: Downloads and installs inspec profile zip packages
- [
inspec::install]: Installs the required inspec package using the method you specify
Specifies the package to install for inspec
Specifies the version of the inspec package to install (default: installed)
Specifies the install method you wish to use. Possible values are: 'url' (default) : 'package' : 'gem' If package is specified, it's assumed the package is in an available repo
Specifies the Operating System Architecture of the package you wish to download (default: platform dependant)
Specifies the operating system family of the package you wish to download (default: platform dependant)
Specifies the major relase of the package you wish to download
Specifies the config directory for inspec profiles (default: /etc/inspec)
Specifies the directory within the config dir to place profiles (default: profiles.d)
Specifies the directory to download profiles to if using the defined type (default: ${config_dir}/downloads)
Specifies whether Puppet should purge the config directories of files not managed by Puppet (default: false)
Specifies whether the inspec/chef repo should be added to install packages (default: true)
Specifies the repo channel from chef that should be used, can be either stable or current (default: stable)
Specifies the URL of the chef/inspec package repository (default: https://packages.chef.io/repos/)
Specifies the package type for the repo url. (default: OS dependent)
Specifies the full URL to download inspec profiles from
Specifies whether the profile should be present or not (default: present)
Specifies the archive type for the downloaded profile. Can be either tar.gz or zip (default: tar.gz)
Specifies a profile version for the downloaded profile. This allows profile versioning via symlinking (default: undef)
The module only currently works on RedHat Enterprise Linux variants