Commits on Jul 7, 2016
  1. @swalberg

    Cast nic_index to integer

    Was seeing a array-index-as-string error
    swalberg committed Jul 7, 2016
  2. @vancluever @swalberg

    clone: Fix waiting for address conditional (#263)

    Currently the wait condition for the availability of IP addresses is an
    and (&&) condition on both vm.guest.net.empty? and !vm.guest.ipAddress,
    however this can lead to a race condition where rbvmomi will see the IP
    address returned by vsphere before it has the full NIC information,
    leading to a NilClass issue in later parts of the logic. I'd imagine
    that the intention here was to wait for both to pass, so this needs to
    be changed to an or (||).
    vancluever committed with swalberg Jul 7, 2016
  3. @mkherlakian @swalberg

    Added ability to list all of a VM's IPS and their associated networks (

    …#264)
    
    * Added ability to list all of a VM's IPS and their associated networks
    * Replaced deprecated ipAddress by ipConfig
    * updated README
    mkherlakian committed with swalberg Jul 7, 2016
Commits on May 12, 2016
  1. @swalberg
  2. @rhass @swalberg

    Add clone/bootstrap options. (#256)

    * Add clone/bootstrap options.
    
    This adds two new options for clone/bootstrap.
    
    - `--bootstrap-nic [INTEGER]` allows a user to specify a specific
      network interface to use when the source template or VM has more
      than one adapter defined. This defaults to the first adapter
      available.
    - `--bootstrap-ipv4` allows a user to force the use of an IPv4 address
      while bootstrapping the instance. This is useful when IPv6 networks
      are not routable and/or when Windows instances come up with link-local
      addresses which are not accessible.
    
    * Fix regression in IPv4 detection for Windows2012R2.
    
    This seemts to be the only way to reliably get the IPv4 Address for
    Windows 2012R2.
    rhass committed with swalberg May 12, 2016
Commits on Apr 27, 2016
  1. @swalberg

    tabs to spaces in README

    swalberg committed Apr 27, 2016
  2. @swalberg
Commits on Apr 26, 2016
  1. @swalberg

    Indicate a resource pool can also be a cluster

    See #254. The `--resource_pool` option looks up a pool with `find_pool`
    and it's passed to the API. But it can also be a cluster depending on
    the layout of the object tree.
    
    See
    https://www.vmware.com/support/developer/vc-sdk/visdk2xpubs/ReferenceGuide/vim.vm.RelocateSpec.html
    for API docs
    swalberg committed Apr 26, 2016
  2. @swalberg

    Bump for release

    swalberg committed Apr 26, 2016
Commits on Apr 23, 2016
  1. @swalberg

    Merge pull request #253 from swalberg/get_config

    Let get_config accept a value of false
    swalberg committed Apr 23, 2016
Commits on Apr 22, 2016
  1. @swalberg

    Let get_config accept a value of false

    get_config checks in both the config hash and the Chef::Config hash for
    the given option. Why? I'm not sure, but it's there. It uses the
    traditional `val = a || b`, so that if a is nil then the value of b is
    used. But if a is intentionally false, it still chooses b because both
    are falsey.
    swalberg committed Apr 22, 2016
  2. @swalberg
  3. @swalberg

    Merge pull request #251 from swalberg/winrm_deps

    Update knife-windows version
    swalberg committed Apr 22, 2016
Commits on Apr 21, 2016
  1. @swalberg

    Update knife-windows version

    Bump to use a v1.x and remove manual require for em-winrm, as the latter
    was merged into knife-windows and now this causes a problem for anyone
    using chef-dk (as it has newer gems that conflict)
    swalberg committed Apr 21, 2016
Commits on Apr 14, 2016
  1. @swalberg

    Merge pull request #246 from dliscomb/vmclone_sysprep_integer

    cast String value to an Integer: sysprep-timeout
    swalberg committed Apr 14, 2016
  2. cast String value to an Integer

    Drew Liscomb committed Apr 14, 2016
Commits on Apr 13, 2016
  1. @swalberg

    get_vm returns false, not nil

    Fixes #242, thanks @jeremiahsnapp
    swalberg committed Apr 13, 2016
Commits on Mar 22, 2016
  1. @swalberg

    Bump for release

    swalberg committed Mar 22, 2016
  2. @swalberg

    Merge pull request #238 from swalberg/clone_find_option

    Clone find option
    swalberg committed Mar 22, 2016
  3. @swalberg

    Merge pull request #240 from swalberg/229

    Use the supplied hostname for windows sysprep
    swalberg committed Mar 22, 2016
  4. @swalberg
Commits on Mar 21, 2016
  1. @swalberg

    Make Rubocop happy

    swalberg committed Mar 21, 2016
  2. @swalberg

    Move from config -> get_config

    swalberg committed Mar 21, 2016
  3. @swalberg

    Reimplement #173 h/t tcicone

    Options to dump memory and/or quiesce. Also search for the VM
    swalberg committed Mar 21, 2016
  4. @swalberg

    Update .gitignore

    swalberg committed Mar 21, 2016
Commits on Feb 22, 2016
  1. @swalberg

    Merge pull request #233 from CoreMedia/fix-vm-move-undefined-variable

    fix the vm move command:
    swalberg committed Feb 22, 2016
  2. @mheidenr

    fix the vm move command:

    - the variable vmname was undefined in move_vm
    - add output for successful command execution
    mheidenr committed Feb 22, 2016
Commits on Jan 22, 2016
  1. @swalberg
  2. @swalberg

    Merge pull request #225 from swalberg/start_testing_clone

    Add a spec for clone and clean up others
    swalberg committed Jan 21, 2016
  3. @swalberg
  4. @swalberg
Commits on Jan 12, 2016
  1. @swalberg

    Bump version for release

    swalberg committed Jan 12, 2016
  2. @swalberg

    Merge pull request #219 from swalberg/213_ignore_fault

    Ignore the fault when creating a new directory
    swalberg committed Jan 12, 2016
Commits on Jan 9, 2016
  1. @swalberg

    Ignore the fault when creating a new directory

    See #213. We are seeing that the `#exists?` method returns false even
    though the directory is there. Ignore the fault and provide some
    debugging
    swalberg committed Jan 9, 2016
Commits on Dec 14, 2015
  1. @swalberg

    Merge pull request #214 from CoreMedia/vm_state_reboot

    add reboot option to vm state command
    swalberg committed Dec 14, 2015