Forge Home

inspec

A puppet module to install Chef inspec

6,557 downloads

6,512 latest version

4.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.1 (latest)
  • 0.1.0 (deleted)
released Dec 7th 2016
This version is compatible with:
  • Puppet Enterprise >=3.7.0 < 2015.3.0
  • Puppet >=3.3.0 <5.0.0
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jaxxstorm-inspec', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jaxxstorm-inspec
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jaxxstorm-inspec --version 0.1.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jaxxstorm/inspec — version 0.1.1 Dec 7th 2016

puppet-inspec

Build Status

Table of Contents

  1. Module Description - What the module does and why it is useful
  2. Setup - The basics of getting started with puppet-inspec
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. 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