Chef教程无法为灯食谱配置MySQL

时间:2018-08-19 14:09:41

标签: chef devops cookbook

我正在尝试遵循Chef教程(参考https://learn.chef.io/modules/create-a-web-app-cookbook/ubuntu/virtualbox/configure-mysql#/)来制作LAMP食谱。

正如教程所建议的,我在Windows上安装了厨师dk,最后一个节点是通过流浪汉在Oracle Virutalbox上托管的Ubuntu 14.04。

当我尝试执行kitchen converge时,我会得到

  Missing Cookbooks:
  ------------------
  No such cookbook: seven_zip

  Expanded Run List:
  ------------------
  * lamp::default

我的metadata.rb文件是

name 'lamp'
maintainer 'The Authors'
maintainer_email 'you@example.com'
license 'All Rights Reserved'
description 'Installs/Configures lamp'
long_description 'Installs/Configures lamp'
version '0.1.0'
chef_version '>= 12.14' if respond_to?(:chef_version)

issues_url 'https://github.com/learn-chef/lamp/issues' if respond_to?(:issues_url)
source_url 'https://github.com/learn-chef/lamp' if respond_to?(:source_url)
supports 'ubuntu'

depends 'httpd', '~> 0.6'
depends 'mysql', '~> 8.5'
depends 'mysql2_chef_gem', '~> 2.1'
depends 'database', '~> 6.1'

然后是灯泡食谱default.rb的食谱

apt_update 'daily' do
  frequency 86_400
  action :periodic
end

include_recipe 'lamp::web'
include_recipe 'lamp::database'

我的kitchen.yml是关注者……。

---
driver:
  name: vagrant
  network:
    - ["private_network", {ip: "192.168.34.34"}]

provisioner:
  name: chef_zero
  always_update_cookbooks: true

verifier:
  name: inspec

platforms:
  - name: ubuntu-14.04

suites:
  - name: default
    data_bags_path: test/fixtures/default/data_bags
    run_list:
      - recipe[lamp::default]
    verifier:
      inspec_tests:
        - test/integration/default
    attributes:

厨师的详细信息....

Chef Development Kit Version: 3.1.0
chef-client version: 14.2.0
delivery version: master (6862f27aba89109a9630f0b6c6798efec56b4efe)
berks version: 7.0.4
kitchen version: 1.22.0
inspec version: 2.1.72

如果我的节点使用Ubuntu,那么七个zip怎么样?有什么建议吗?

0 个答案:

没有答案