I created a inherited profile to skip some controls in actual profile. I am getting an error when i try to archive it.
chef --version
chef --version
Chef Development Kit Version: 2.4.22
chef-client version: 13.6.4
delivery version: master (73ebb72a6c42b3d2ff5370c476be800fee7e5427)
berks version: 6.3.1
kitchen version: 1.19.2
inspec version: 1.48.0
inspec.yml
name: cis-ubuntu16.04lts-level1-server
title: InSpec Profile
maintainer: The Authors
copyright: The Authors
copyright_email: you@example.com
license: Apache-2.0
summary: An InSpec Compliance Profile
version: 0.1.0
depends:
- name: ubuntu
compliance: cis-ubuntu16_04lts-level1-server
controls/example.rb
include_controls 'ubuntu' do
skip_control 'xccdf_org.cisecurity.benchmarks_rule_1.1.1.6_Ensure_mounting_of_squashfs_filesystems_is_disabled'
end
when i try archive/upload i am getting following error.
IT-LDR-RMODIP:cis-ubuntu16.04lts-level1-server Raghureddy$ inspec archive .
WARN: Unresolved specs during Gem::Specification.reset:
bundler (>= 1.10)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
I, [2018-02-21T19:15:45.095520 #16506] INFO -- : Checking profile in .
I, [2018-02-21T19:15:45.095749 #16506] INFO -- : Metadata OK.
/opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/bundles/inspec-compliance/api.rb:210:in `profile_split': undefined method `split' for nil:NilClass (NoMethodError)
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/bundles/inspec-compliance/api.rb:91:in `exist?'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/bundles/inspec-compliance/target.rb:53:in `resolve'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/utils/plugin_registry.rb:18:in `block in resolve'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/utils/plugin_registry.rb:17:in `each'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/utils/plugin_registry.rb:17:in `resolve'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/fetcher.rb:12:in `resolve'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/cached_fetcher.rb:12:in `initialize'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/dependencies/requirement.rb:98:in `new'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/dependencies/requirement.rb:98:in `fetcher'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/dependencies/requirement.rb:76:in `resolved_source'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/dependencies/resolver.rb:67:in `block in resolve'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/dependencies/resolver.rb:59:in `each'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/dependencies/resolver.rb:59:in `resolve'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/dependencies/resolver.rb:31:in `resolve'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/dependencies/dependency_set.rb:89:in `vendor'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:403:in `generate_lockfile'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:390:in `lockfile'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:408:in `load_dependencies'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:358:in `locked_dependencies'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:179:in `load_libraries'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:463:in `load_checks_params'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:457:in `load_params'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:151:in `params'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:317:in `controls_count'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/profile.rb:288:in `check'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/lib/inspec/cli.rb:138:in `archive'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
from /opt/chefdk/embedded/lib/ruby/gems/2.4.0/gems/inspec-1.48.0/bin/inspec:12:in `<top (required)>'
from /opt/chefdk/bin/inspec:255:in `load'
from /opt/chefdk/bin/inspec:255:in `<main>'