audit icon indicating copy to clipboard operation
audit copied to clipboard

Feature request: Allow for specifying max version of inspec to be install

Open sarahbakal opened this issue 6 years ago • 0 comments

Cookbook version

6.0.1

Chef-client version

12 through 13

Platform Details

Redhat, Solaris, AIX, Windows

Scenario:

Need to be able to specify that Inspec 2.x should not be installed but the highest version of 1.x is ok, while still allow our nodes in air-gapped environments to run the existing version of 1.x that they are on without the audit cookbook uninstalling and failing to reinstall the inspec gem with the version that was specified with node['audit']['inspec_version']

Something like allowing node['audit']['inspec_version'] = '<=1.51.21' or an attribute to prevent upgrades

Steps to Reproduce:

[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]

Expected Result:

[What are you expecting to happen as the consequence of above reproduction steps?]

Actual Result:

[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]

sarahbakal avatar Apr 04 '18 18:04 sarahbakal