相同的主机第二次运行列表没有从第二次声明的测试厨房运行

时间:2017-03-16 00:30:01

标签: chef chef-recipe devops test-kitchen

嗨相同的主机我想第二次运行其他食谱,但只有第一次声明的运行列表只运行,但第二次声明的相同节点的运行列表没有从.kitchen.yml和测试厨房运行。

请建议我如何完成第二次声明的运行列表

---
driver:
  name: vagrant

provisioner:
  name: chef_zero
  environments_path: test/integration/default/environments
  client_rb:
    environment: stg

  always_update_cookbooks: true
verifier:
  name: inspec

platforms:
  - name: centos-7.2

suites:
  - name: Host1.com
    run_list:

      - recipe[maprcluster-cookbook::mapr_install]

    data_bags_path: "test/integration/default/data_bags"

    attributes:
      zookeeper: 'true'
      cldb     : 'true'
      hive: 'true'


  - name: Host2.com
    run_list:
      - recipe[maprcluster-cookbook::mapr_install]

    data_bags_path: "test/integration/default/data_bags"

    attributes:
      zookeeper: 'true'
      cldb     : 'true'
      hive_thrift: 'true'

  - name: host3.com
    run_list:
      - recipe[maprcluster-cookbook::mapr_install] 

    data_bags_path: "test/integration/default/data_bags"


    attributes:
      zookeeper: 'true'
      cldb     : 'true'
      hive_thrift: 'true'  

  - name: Host1.com
    run_list:
      - recipe[maprcluster-cookbook::server_config]


    data_bags_path: "test/integration/default/data_bags"

  - name: Host2.com
    run_list:
      - recipe[maprcluster-cookbook::server_config]

    data_bags_path: "test/integration/default/data_bags"

  - name: Host3.com
    run_list:
      - recipe[maprcluster-cookbook::server_config]

    data_bags_path: "test/integration/default/data_bags"

2 个答案:

答案 0 :(得分:0)

您可以将第二个配方添加到现有套件的run_list中,如此

- name: Host1.com
  run_list:
    - recipe[maprcluster-cookbook::mapr_install]
    - recipe[maprcluster-cookbook::server_config]

答案 1 :(得分:0)

看起来您正在尝试使用Test Kitchen来测试某种多服务器集群。不幸的是,这不是我们目前支持的。尽管如此,它仍然在未来的名单上。