---
driver:
name: vagrant
platforms:
- name: ubuntu-14.04
suites:
- name: default
run_list:
- recipe[webserver::default]
当我运行
kitchen converge
命令时,我会得到以下输出:==> default: Setting hostname...
==> default: Replaced insecure vagrant key with less insecure key!
==> default: Machine not provisioned because `--no-provision` is specified.
Waiting for SSH service on 127.0.0.1:2222, retrying in 3 seconds
Waiting for SSH service on 127.0.0.1:2222, retrying in 3 seconds
Waiting for SSH service on 127.0.0.1:2222, retrying in 3 seconds
.....
......
经过一番搜索,我发现
Vagrant 1.7+
使用了他们认为是不那么不安全的密钥
来替换默认的ssh密钥。虽然有config.ssh.insert_key = false
这个选项,但是由于以下原因无法生效:
将kitchen.yml中的
insert_key = false
进行更新。1.1 这并不起作用,因为生成的
Vagrantfile
文件将布尔值false
作为“false”字符串!尝试使用全局
Vagrantfile
文件2.1 这没有起作用,就好像该文件甚至未被读取!
尝试构建自己的box,但失败了。