代码之家  ›  专栏  ›  技术社区  ›  Cesare

Chef教程在为lamp cookbook配置MySQL时失败

  •  1
  • Cesare  · 技术社区  · 8 年前

    我试着按照厨师教程(参考。 https://learn.chef.io/modules/create-a-web-app-cookbook/ubuntu/virtualbox/configure-mysql#/

    正如教程所建议的,我的主厨dk在windows上,我的最后一个节点是ubuntu14.04,通过vagrant托管在oraclevirutalbox上。

    当我试图执行 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,那么seven-zip呢?有什么建议吗?

    0 回复  |  直到 8 年前
    推荐文章