零厨师提供:未定位的食谱

时间:2017-11-30 20:44:56

标签: vagrant chef

我收到此消息:

==> default: ================================================================================
==> default: Recipe Compile Error
==> default: ================================================================================
==> default:
==> default: Chef::Exceptions::RecipeNotFound
==> default: --------------------------------
==> default: could not find recipe default for cookbook olingo
==> default: System Info:
==> default: ------------
==> default: chef_version=13.6.4
==> default: platform=centos
==> default: platform_version=7.4.1708
==> default: ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
==> default: program_name=chef-client worker: ppid=4729;start=20:31:47;
==> default: executable=/opt/chef/bin/chef-client

如您所见,厨师无法找到olingo食谱。

我的流浪厨师零配置部分是:

config.vm.provision "chef_zero" do |chef|
  chef.cookbooks_path = "berks-cookbooks"
  chef.data_bags_path = "data_bags"
  chef.nodes_path = "nodes"
  chef.roles_path = "roles"

  chef.add_recipe "olingo"   <<<<1>>>>
end

正如您在<<<<1>>>>所见,我已指定厨师安装olingo食谱。如您所见,我也使用chef-zero

为了下载所有食谱依赖项,我使用berkshelf工具。所以我创建了Berksfile

source 'https://supermarket.chef.io'
metadata

metadata.rb

name 'olingo'   <<<2>>>
maintainer 'The Authors'
maintainer_email 'you@example.com'
license 'all_rights'
description 'Installs/Configures webapi'
long_description 'Installs/Configures webapi'
version '0.1.0'

depends 'java_se', '~> 8.141.0'
depends 'wildfly', '~> 0.4.0'

所以,然后我执行了berks vendor并创建了一个填充了所有olingo 依赖项berks-cookbooks文件夹,但没有olingo食谱。

因此,当olingo尝试安装chef_client食谱时,似乎olingo食谱不可用。

有什么想法吗?

0 个答案:

没有答案
相关问题