Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kitchen Converge without attempting to create a new VM #113

Open
james-s-nduka opened this issue Jul 6, 2017 · 0 comments
Open

Kitchen Converge without attempting to create a new VM #113

james-s-nduka opened this issue Jul 6, 2017 · 0 comments

Comments

@james-s-nduka
Copy link

james-s-nduka commented Jul 6, 2017

I am using the kitchen features of this gem and I'd like to run kitchen converge on an existing VM and not create a new VM (as I do not have privileges to do so)

What options would I need to pass in my .kitchen.yml to achieve this?

Here is a snippet of it;

---
driver:
  name: vsphere
  driver_options:
    host: 'VMHOSTUK.UKROI.EXAMPLE.ORG'
    user: 'user'
    password: 'passwd'
    insecure: true
  machine_options:
    bootstrap_options:
      use_linked_clone: true
      datacenter: 'STORE-DATACENTER'
      template_name: 'UK09125ISS03'
      template_folder: 'UK09125-VM'
      resource_pool: 'UK09125-CLU'
      ssh:
        user: 'user'
        paranoid: false
        password: 'passwd'
        port: 5985

provisioner:
  name: chef_zero
  always_update_cookbooks: true

verifier:
  name: inspec

platforms:
  - name: UK09125ISS03
    transport:
      name: winrm
      elevated: true

suites:
  - name: default
    run_list:
      - recipe[configure_and_format_disk::default]

template_name: 'UK09125ISS03' is a powered on VM and not a template

Here is the exception I am getting;
`>>>>>> ------Exception-------

Class: Kitchen::ActionFailed
Message: 1 actions failed.
Failed to complete #create action: [NoPermission: Permission to perform this operation was denied.] on default-UK09125ISS03
----------------------`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant