에서 '아파치'의존을 heres 내 metadata.rb
:요리사 : 캔트 사용은 내가 요리사 요리 책이 <code>depends 'httpd'</code>를 사용하여 얻을 수 metadata.rb
name 'awesome_customers_rhel'
maintainer 'The Authors'
maintainer_email '[email protected]'
license 'all_rights'
description 'Installs/Configures awesome_customers_rhel'
long_description 'Installs/Configures awesome_customers_rhel'
version '0.1.0'
depends 'selinux', '~> 0.9.0'
depends 'firewall', '~> 2.4.0'
depends 'httpd'
내가 depends 'httpd'
원인이 오류를 사용할 수 있도록 시도.
tutorial 요리사 httpd cookbook from Chef Supermarket을 사용하여 주방 테스트 인스턴스를 구성하는 중입니다. 그러나 나는 step 6에 붙어있다. 주방은 늘 compat_resource 몇 가지 문제로, 가이드 및 내 요리 책 사이의 유일한 차이가 나는 0.4.0
-----> Starting Kitchen (v1.11.1)
-----> Converging <default-centos-72>...
Preparing files for transfer
Preparing dna.json
Resolving cookbook dependencies with Berkshelf 4.3.5...
Removing non-cookbook files before transfer
Preparing validation.pem
Preparing client.rb
-----> Chef Omnibus installation detected (install only if missing)
Transferring files to <default-centos-72>
Starting Chef Client, version 12.14.60
resolving cookbooks for run list: ["awesome_customers_rhel::default"]
Synchronizing Cookbooks:
- awesome_customers_rhel (0.1.0)
- selinux (0.9.0)
- firewall (2.4.0)
- httpd (0.4.0)
- chef-sugar (3.4.0)
- compat_resource (12.14.3)
Installing Cookbook Gems:
Compiling Cookbooks...
================================================================================
Recipe Compile Error in /tmp/kitchen/cache/cookbooks/httpd/libraries/helpers.rb
================================================================================
LoadError
---------
cannot load such file -- chef_compat/resource
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/httpd/libraries/helpers.rb:1:in `<top (required)>'
Relevant File Content:
----------------------
/tmp/kitchen/cache/cookbooks/httpd/libraries/helpers.rb:
1>> require 'chef_compat/resource'
2:
3: module HttpdCookbook
4: module Helpers
5: def default_apache_version
6: return '2.2' if node['platform_family'] == 'debian' && node['platform_version'].to_i == 7
7: return '2.2' if node['platform_family'] == 'debian' && node['platform_version'] == '12.04'
8: return '2.2' if node['platform_family'] == 'debian' && node['platform_version'].to_i == 6
9: return '2.2' if node['platform_family'] == 'debian' && node['platform_version'].to_i == 7
10: return '2.2' if node['platform_family'] == 'omnios'
Platform:
---------
x86_64-linux
Running handlers:
[2016-09-18T19:03:29+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-09-18T19:03:29+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2016-09-18T19:03:29+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
[2016-09-18T19:03:29+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-09-18T19:03:29+00:00] ERROR: cannot load such file -- chef_compat/resource
[2016-09-18T19:03:29+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Converge failed on instance <default-centos-72>. Please see .kitchen/logs/default-centos-72.log for more details
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
가 Heres는 내 .kitchen.yml
---
driver:
name: vagrant
network:
- ["private_network", {ip: "192.168.33.33"}]
provisioner:
name: chef_zero
platforms:
- name: centos-7.2
suites:
- name: default
run_list:
- recipe[awesome_customers_rhel::default]
attributes:
'- compat_resource (12.14.3)'과 같은 문제로 보입니다. 오래된'- compat_resource (12.10.6)'로 시도하십시오 –