Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The inspec_gem resource in the audit cookbook should declare unified_mode true #459

Open
johnpaulsen1 opened this issue Feb 11, 2022 · 0 comments

Comments

@johnpaulsen1
Copy link

Cookbook version

"version": "9.5.0"

Chef-client version

Chef Infra Client: 17.9.26

Platform Details

CentOS 7.9.2009

Scenario:

kitchen tests produce an error:

  The inspec_gem resource in the audit cookbook should declare `unified_mode true` at 1 location:
    - /tmp/kitchen/cache/cookbooks/audit/resources/inspec_gem.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.

Steps to Reproduce:

we have a dependency in the metadata.rb our base cookbook:
depends 'audit'

in our base cookbook recipe, we have an include recipe like so:
include_recipe 'base_wrapper::base_audit'
and that recipe looks like so:

if node['fnb_base_wrapper']['fnb_base_audit']['audit_enabled'] == true
  include_recipe 'audit::default'
end

Expected Result:

run through without errors.

Actual Result:

returns error:

  The inspec_gem resource in the audit cookbook should declare `unified_mode true` at 1 location:
    - /tmp/kitchen/cache/cookbooks/audit/resources/inspec_gem.rb
   See https://docs.chef.io/deprecations_unified_mode/ for further details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant