我正在尝试编写围绕弹性搜索的第一个包装厨师食谱,并在运行elasticsearch_configure和elasticsearch_service时遇到问题
错误就像这样
RuntimeError
------------
File templates/default/elasticsearch.in.sh.erb does not exist for cookbook elasticsearch
我可以确认elasticsearch cookbook确实有相关文件。
违规资源
elasticsearch_configure 'elasticsearch-logging'
elasticsearch_service 'elasticsearch-logging' do
service_actions :enable
end
我正在使用chef-solo -c config.rb -j test.json
config.rb
cookbook_path ["/tmp/cookbooks",
"/user/.berkshelf/cookbooks/"]
local_mode true
chef_zero.enabled true
test.json
{
"run_list": [
"recipe[elastic-cookbook::default]"
]
}
非常感谢任何帮助
答案 0 :(得分:0)
您已将食谱下载到文件夹elastic-cookbook
(我认为)。它必须在cookbooks/elasticsearch
才能正常工作。