Skip to content

Commit

Permalink
pin new inspec version to work with Chef Compliance 1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored and alexpop committed May 18, 2016
1 parent e5bb50a commit 55a3524
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ The `audit` cookbook allows you to run Chef Compliance profiles as part of a Che

Using the `inspec_version` attribute, please use the following `InSpec` version based on your Chef Compliance version:

| Chef Compliance version | InSpec version |
|----------------------------|----------------------------|
| Less or equal to 1.1.23 | 0.20.1 |
| Greater than 1.1.23 | Greater or equal to 0.21.0 |
| Chef Compliance version | InSpec version | Audit Cookbook version |
|----------------------------|----------------------------|----------------------------|
| Less or equal to 1.1.23 | 0.20.1 | 0.7.0 |
| Greater than 1.1.23 | Greater or equal to 0.22.1 | 0.8.0 |


You can see all publicly available InSpec versions [here](https://rubygems.org/gems/inspec/versions)
Expand Down
4 changes: 2 additions & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
# fail converge after posting report if any audits have failed
default['audit']['fail_if_any_audits_failed'] = false

# inspec gem version to install(e.g. '0.22.0') or 'latest'
default['audit']['inspec_version'] = '0.20.1'
# inspec gem version to install(e.g. '0.22.1') or 'latest'
default['audit']['inspec_version'] = '0.22.1'
2 changes: 1 addition & 1 deletion libraries/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class ComplianceProfile < Chef::Resource # rubocop:disable Metrics/ClassLength

# TODO: flesh out inspec's report CLI interface,
# make this an execute[inspec check ...]
runner = ::Inspec::Runner.new('report' => true)
runner = ::Inspec::Runner.new('report' => true, 'format' => 'json-min')
runner.add_target(path, {})
begin
runner.run
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
source_url 'https://github.com/chef-cookbooks/audit' if defined?(:source_url)
issues_url 'https://github.com/chef-cookbooks/audit/issues' if defined?(:issues_url)

version '0.7.1'
version '0.8.0'

0 comments on commit 55a3524

Please sign in to comment.