Chef infra 相同的主机第二次运行列表未从第二次声明的测试厨房运行

Chef infra 相同的主机第二次运行列表未从第二次声明的测试厨房运行,chef-infra,chef-recipe,devops,test-kitchen,Chef Infra,Chef Recipe,Devops,Test Kitchen,Hi-Same hosts我想第二次运行其他菜谱,但只有第一次声明的运行列表正在运行,但相同节点的第二次声明的运行列表未从.kitchen.yml和test kitchen运行 请建议我如何完成第二次申报运行列表 --- driver: name: vagrant provisioner: name: chef_zero environments_path: test/integration/default/environments client_rb: environ

Hi-Same hosts我想第二次运行其他菜谱,但只有第一次声明的运行列表正在运行,但相同节点的第二次声明的运行列表未从.kitchen.yml和test kitchen运行

请建议我如何完成第二次申报运行列表

---
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"

您可以将第二个菜谱添加到现有套件的run_列表中,如下所示

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

看起来您正试图使用TestKitchen测试某种类型的多服务器集群。不幸的是,这不是我们目前所支持的。不过,这在未来的列表中非常重要。

不,我必须先在所有节点中安装软件包,然后才可以运行服务器配置,因此我不想这样添加。您可以配置
maprcluster cookbook::server\u config
以便它等待一段时间(或等待某些条件)在开始之前?但是我们可以看到第一次它通过3个主机,但是第二次对于相同的主机它没有到达。是的,这种配置的结果是未定义的。它将尝试将内容合并到它知道如何处理的套件中,而这并不是您想要的结果。基本上,
suites
是配置中的一个列表,但您不能拥有同一套件两次,因为最终它会将它们变成散列。谢谢,我只想在一个节点上安装一些软件包,在第二个节点上安装一些软件包,在另一个节点上安装其他软件包,我可以将这些软件包定义为数组,并且我只能调用特定节点所需的软件包。你知道,标点是什么吗?