jrbeilke / packer-provisioner-inspec

Packer plugin to add InSpec as a provisioner
18 stars 4 forks source link

Packer InSpec Provisioner

Build Status

packer-provisioner-inspec is a Packer plugin that tests machines during provisioning using InSpec.

Install

Build and install the plugin (you'll need git and go):

make install

Usage

Add the provisioner to your packer template:

{
  "variables": {
    "version":  "0.1",
    "box_name": "test-project"
  },
  "builders": [ ... ],
  "provisioners": [{
    "type": "inspec",
    "test_path": "inspec/example.rb"
  }]
}

The connection to the images being built is facilitated via a local SSH proxy that InSpec connects to.

Configuration Reference

required parameters

optional parameters