我运行Vagrant1.4.2运行一个Ubuntu13.10盒,配置了主厨。由于某些原因,找不到模板文件,运行失败,出现以下错误:
[2014-01-07T17:25:28+00:00] ERROR: template[/etc/init/verifier-tornado.conf] (transmit::default line 48) had an error: Chef::Exceptions::FileNotFound: Cookbook 'transmit' (0.1.0) does not contain a file at any of these locations:
templates/ubuntu-13.10/upstart.config.erb
templates/ubuntu/upstart.config.erb
templates/default/upstart.config.erb
This cookbook _does_ contain: ['/tmp/vagrant-chef-1/chef-solo-2/cookbooks/transmit/templates/default/upstart.conf.erb']
================================================================================
Error executing action `create` on resource 'template[/etc/init/verifier-tornado.conf]'
================================================================================模板文件是我的自定义菜谱的一部分,菜谱路径在Vagrant文件中提供:
config.vm.define "web" do |web|
web.vm.provision :chef_solo do |chef|
chef.cookbooks_path = ["cookbooks", "site-cookbooks"]
chef.roles_path = "roles"
chef.log_level = :debug
chef.add_role "web"
end
end运行的完整日志可在这里获得:http://pastebin.com/fLNRukDr
发布于 2014-01-07 20:24:24
根据主厨客户端运行的输出,您有一个名不正确的模板。您正在寻找一个名为upstart.config.erb的模板,但实际上您的模板名为upstart.conf.erb (注意配置与conf)。
https://stackoverflow.com/questions/20979044
复制相似问题