A customized chef generator cookbook to include inspec tests
Switch branches/tags
Nothing to show
Clone or download
Latest commit 70ed409 Apr 26, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files/default Initial Commit Apr 5, 2017
recipes Modified Banner Apr 26, 2017
templates/default Added blank line to end of recipe template Apr 26, 2017
README.md Documentation Apr 18, 2017
metadata.rb Added Skeleton to support client side inspec test in chef automate Apr 5, 2017

README.md

chef-code-generator

A customized chef generator cookbook to include inspec tests. This is used by project inspec_handler (https://github.com/sidxz/inspec-handler/).
More information about generator cookbooks can be found at
https://blog.chef.io/2014/12/09/guest-post-creating-your-own-chef-cookbook-generator/

Usage

chef generate cookbook my_cookbook_name -g <path to generator cookbook>

Modify test_habdler run path in chef-code-generator/templates/default/recipe.rb.erb to meet your organization's need.

To use the generator cookbook as default modify ~/.chef/config.rb and add

chefdk.generator_cookbook = '/path/to/your/cookbook' if chefdk