我是新來的廚師和試圖通過他們的「學廚師」模塊中的一個運行... https://learn.chef.io/modules/local-development/windows/virtualbox/apply-a-cookbook#/沒有這樣的食譜錯誤
我能夠創造廚房,但是當我試圖收斂我得到一個錯誤的食譜中沒有找到...... https://www.screencast.com/t/eucThbF6
我已經試過這既與「learn_chef_iis」菜譜他們有你下載的git的,從我自己的「my_iis」食譜我製成使用'廚師生成食譜'命令來劃傷。
當我運行「沒有這樣的食譜」時,兩者都有相同的錯誤。
如果我運行一個「knife cookbook list」,它將「learn_chef_iis」和「my_iis」列爲可用的食譜。
我在這裏錯過了什麼?
錯誤......
I, [2017-10-17T12:04:19.141823 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.158336 #16224] INFO – default-windows-2012R2: ================================================================================
I, [2017-10-17T12:04:19.179353 #16224] INFO – default-windows-2012R2: Error Resolving Cookbooks for Run List:
I, [2017-10-17T12:04:19.196367 #16224] INFO – default-windows-2012R2: ================================================================================
I, [2017-10-17T12:04:19.217884 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.233897 #16224] INFO – default-windows-2012R2: Missing Cookbooks:
I, [2017-10-17T12:04:19.252912 #16224] INFO – default-windows-2012R2: ------------------
I, [2017-10-17T12:04:19.268925 #16224] INFO – default-windows-2012R2: No such cookbook: learn_chef_iis
I, [2017-10-17T12:04:19.315462 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.332475 #16224] INFO – default-windows-2012R2: Expanded Run List:
I, [2017-10-17T12:04:19.349489 #16224] INFO – default-windows-2012R2: ------------------
I, [2017-10-17T12:04:19.366503 #16224] INFO – default-windows-2012R2: * learn_chef_iis::default
I, [2017-10-17T12:04:19.384017 #16224] INFO – default-windows-2012R2:
I, [2017-10-17T12:04:19.401531 #16224] INFO – default-windows-2012R2: System Info:
I, [2017-10-17T12:04:19.419045 #16224] INFO – default-windows-2012R2: ------------
I, [2017-10-17T12:04:19.435558 #16224] INFO – default-windows-2012R2: chef_version=13.5.3
I, [2017-10-17T12:04:19.452571 #16224] INFO – default-windows-2012R2: platform=windows
I, [2017-10-17T12:04:19.469585 #16224] INFO – default-windows-2012R2: platform_version=6.3.9600
I, [2017-10-17T12:04:19.486599 #16224] INFO – default-windows-2012R2: ruby=ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
日誌文件(長)可以看到這裏的完整記錄...... https://discourse.chef.io/t/chef-cookbook-not-found/11757/3
Metadata.rb:
name 'my_iis'
maintainer 'The Authors'
maintainer_email '[email protected]'
license 'All Rights Reserved'
description 'Installs/Configures my_iis'
long_description 'Installs/Configures my_iis'
version '0.1.0'
chef_version '>= 12.1' if respond_to?(:chef_version)
Berksfile:
# frozen_string_literal: true
source 'https://supermarket.chef.io'
metadata
Kitchen.yml
---
driver:
name: vagrant
boot_timeout: 1200
gui: true
provisioner:
name: chef_zero
verifier:
name: inspec
transport:
name: winrm
elevated: true
username: Administrator
password: [email protected]
platforms:
- name: windows-2012R2
driver:
customize:
memory: 2048
suites:
- name: default
run_list:
- recipe[my_iis::default]
verifier:
inspec_tests:
- test/smoke/default
attributes:
歡迎來到StackOverflow。請在此處添加錯誤消息作爲文本。 – StephenKing
添加您的metadata.rb,Berksfile等。 – StephenKing
更新了該信息。 –