Udhay
Udhay

Reputation: 7

Same hosts 2nd time run lists are not running from test kitchen which are declared in 2nd time

Hi Same hosts i want to run other recipes 2nd time but only first declared run list only running but second time declared run list for same nodes are not running from .kitchen.yml and test kitchen.

Please suggest me how can accomplish 2nd time declared run list

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

Upvotes: 0

Views: 76

Answers (2)

coderanger
coderanger

Reputation: 54191

It looks like you are trying to use Test Kitchen to test a multi-server cluster of some kind. Unfortunately this is not something we currently support. It is very much on the list for the future though.

Upvotes: 0

ostap36
ostap36

Reputation: 33

You can add second recipe to the existing suite's run_list, like so

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

Upvotes: 0

Related Questions