chef-infra - ‘kitchen test’命令失败,加载路径中出现 "Could not load the ' inspec’验证程序。”

标签 chef-infra

我制作了一本新的 Recipe 并尝试在厨房进行测试。

$ chef generate cookbook mycookbook
$ cd mycookbook
$ kitchen test

结果是:

-----> Starting Kitchen (v1.11.1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'inspec' verifier from the load path. Please ensure that your transport is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration

我检查了.kitchen/logs/kitchen.log,但什么也没有。

最佳答案

我通过安装 Kitchen 的 Inspec 驱动程序解决了此错误。 https://github.com/inspec/kitchen-inspec

# Install
gem install kitchen-inspec

# Verify error
kitchen list

编辑: 我再次遇到同样的错误,这次我需要:

关于chef-infra - ‘kitchen test’命令失败,加载路径中出现 "Could not load the ' inspec’验证程序。”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39160876/

相关文章:

chef-infra - 我已经安装了chef-dk并开始使用berkshelf但是berks上传失败

chef-infra - Knife 零收敛-SocketError : getaddrinfo: Name or service not known

ruby - 我将如何在 Chef Recipe 中包含和配置 ruby​​ 库?

centos - 在多 VM 环境中定位的特定 VM 名称

provisioning - Chef : Why are resources in an "include_recipe" step being skipped?

chef-infra - Chef 加载新 rpm 和安装包的正确方法

chef-infra - CHEF,如何替换 Chef Solo 中的 node.set/node.save ?

chef-infra - Berksfile 中的 Chef 'cookbook' 与metadata.rb 中的 'depends'

Vagrant 供应,Chef 错误 : You must specify at least one cookbook repo path

elasticsearch - 是否可以通过单个运行列表动态构建弹性集群?