0

Below is my kitchen.yml

---
driver:
  name: vagrant
provisioner:
  name: chef_zero
  # You may wish to disable always updating cookbooks in CI or other testing environments.
  # For example:
  #   always_update_cookbooks: <%= !ENV['CI'] %>
  always_update_cookbooks: true

verifier:
  name: inspec

platforms:
  - name: centos-7

suites:
  - name: default
    driver:
      network:
      - ["forwarded_port", {guest: 3000, host: 3000}]
    run_list:
      - recipe[meteor-app::default]
    verifier:
      inspec_tests:
        - test/smoke/default
    attributes:

Then I've changed guest port number to the following

      network:
      - ["forwarded_port", {guest: 4500, host: 3000}]

Is there a better way to update my instance without recreating it.

shalamus
  • 2,192
  • 1
  • 12
  • 8

1 Answers1

2

As mentioned in the comments, there is no official way to do this in Kitchen. You can go under the covers and run the relevant vagrant commands directly but you would be better off just kitchen destroying and rebuilding the instance.

coderanger
  • 52,400
  • 4
  • 52
  • 75