我正在尝试设置厨房,但在这方面遇到了困难。
据我所知,yml看起来是正确的,但在运行食谱时它总是出错。
错误: LoadError
cannot load such file -- chef/provisioning/aws_driver
and
[2017-07-04T15:09:11+00:00] ERROR: cannot load such file -- chef/provisioning/aws_driver
[2017-07-04T15:09:11+00:00] ERROR: cannot load such file -- chef/provisioning/aws_driver我的yml是:
driver:
name: ec2
aws_ssh_key_id: key
security_group_ids: ["sg-", "sg-"]
reqion: us-east-1
require_chef_omnibus: true
subnet_id: subnet-x
instance_type: t2.micro
associate_public_ip: true
interface: public
provisioner:
name: chef_zero
platforms:
name: amazon-linux
driver:
image_id: ami-a4c7edb2
transport:
ssh_key: C:\Keys.pem
connection_timeout: 10
connection_retries: 5
username: ec2-user
suites:
name: default
run_list:
recipe[solr::default]
attributes:发布于 2017-07-05 16:34:27
在注释中解决,Test Kitchen通常安装标准的Chef安装程序包,其中不包括chef-provisioning。您可以将其设置为安装并使用ChefDK,但这需要一些复杂的配置,并且目前存在一些主要的性能问题,因此不推荐这样做。
更直接的是,如果人们通过Google发现了这一点,你不能(目前)使用Test Kitchen来测试厨师供应代码,因为我们没有在测试结束时清理代码的系统,也没有办法测试除了Kitchen实例VM本身之外的任何关于创建的系统的东西。
https://stackoverflow.com/questions/44919724
复制相似问题