我刚在工作站上安装了ChefDK,下载了初学者工具包并修改了.kitchen.yml如下:
---
driver:
name: opennebula
opennebula_endpoint: http://10.1.1.1/zonea
oneauth_file: /home/local/.one/one_auth
template_name: CHEF-TESTVM
vm_hostname: CHEF-TESTVM-FRONT-END
public_key_path: /home/local/.ssh/id_rsa.pub
username: root
memory: 4096
require_chef_omnibus: false
user_variables:
FILEHOME: http://10.1.1.2/~dev/repo/
provisioner:
name: chef-solo
environments_path: /home/local/chef-repo/cookbooks/init/environments/
role_path: /home/local/chef-repo/cookbooks/init/roles/
platforms:
- name: ubuntu-12.04
suites:
- name: default
provisioner:
solo_rb:
environment: dev
run_list:
- recipe[wfe]
- role[common]
attributes:厨房里有厨师。(使用内置厨房/宝石/包等)
我运行了kitchen test,它给出了以下信息:
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ClientError
>>>>>> Message: Could not load the 'chef-solo' provisioner from the load path. Please ensure that your provisioner is installed as a gem or included in your Gemfile if using Bundler.
>>>>>> ----------------------which chef-solo返回/opt/chefdk/bin/chef-solo
如果我将chef-solo更改为chef-zero,则在kitchen diagnose期间省略相同的错误。
exception: "#<Kitchen::ClientError: Could not load the 'chef-zero' provisioner
from the load path. Please ensure that your provisioner is installed as a gem
or included in your Gemfile if using Bundler.>"我已经安装了厨房-opennebula,但我怀疑这个问题与此无关。
怎么一回事?
发布于 2015-11-16 19:03:41
我发现这是个错误:
chef-solo应该是yml中的chef_solo。
解决了。
我遇到了另一个类似的问题,让我有些时间无法找到原因(data_bag_path vs data_bags_path,应该有's')。
https://stackoverflow.com/questions/33652688
复制相似问题