我正在尝试使用Chef安装石墨服务器,我遇到错误,说在VM上找不到chef-solo或chef-client.我正在使用Ubuntu 12.04.amd64 LTS,这是服务器版本,所以它不会安装chef-client.我知道13版本将自动安装chef-client但我不能使用13版本.
我用谷歌搜索,看到有人建议ssh到盒子和apt-get install chef-client.
我的问题是:无论如何我可以在厨师开始之前预先安装厨师 - 客户吗?基本上我希望我的厨师程序下载原始图像,无需用户额外的手动步骤即可完成所有操作.可能吗?
我的Vagrantfile:
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu-12.04-amd64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/precise/current/precise-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.hostname = "graphite"
config.vm.network :forwarded_port, guest: 8080, host: 9090
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "cookbooks"
chef.roles_path = "roles"
chef.data_bags_path = "data_bags"
chef.add_role "Graphite-Server"
chef.add_role "StatsD-Server"
end
end
Run Code Online (Sandbox Code Playgroud)
错误日志:
[default] Running provisioner: chef_solo...
The chef binary (either `chef-solo` or `chef-client`) was not found on
the VM and is required for chef provisioning. Please verify that chef
is installed and that the …Run Code Online (Sandbox Code Playgroud)