Sha256: 1ab564ff4edf74f088d30d587fa6129f5abb883fee59d9ee493ca0245a9f8804

Contents?: true

Size: 1.81 KB

Versions: 44

Compression:

Stored size: 1.81 KB

Contents

The harness can use vms and snapshots that live within vSphere as well.
To do this create a `~/.fog` file with your vSphere credentials:

### example .fog file ###

    :default:
      :vsphere_server: 'vsphere.example.com'
      :vsphere_username: 'joe'
      :vsphere_password: 'MyP@$$w0rd'
      :vmpooler_token: 'randomtokentext'

The vmpooler_token can be used with https://github.com/puppetlabs/vmpooler. Users with Puppet Labs credentials can follow directions for getting and using tokens at https://confluence.puppetlabs.com/display/QE/Generating+and+using+vmpooler+tokens.

These follow the conventions used by Cloud Provisioner and Fog.

There are two possible `hypervisor` hypervisor-types to use for vSphere testing, `vsphere` and `vcloud`.

### `hypervisor: vsphere`
This option locates an existing static VM, optionally reverts it to a pre-existing snapshot, and runs tests on it.

### `hypervisor: vcloud`
This option clones a new VM from a pre-existing template, runs tests on the newly-provisioned clone, then deletes the clone once testing completes.

The `vcloud` option requires a slightly-modified test configuration file, specifying both the target template as well as three additional parameters in the 'CONFIG' section ('datastore', 'resourcepool', and 'folder').

#### example vcloud hosts file ###
    HOSTS:
      master-vm:
        roles:
          - master
          - agent
          - dashboard
        platform: ubuntu-10.04-amd64
        template: ubuntu-1004-x86_64
        hypervisor: vcloud
      agent-vm:
        roles:
          - agent
        platform: ubuntu-10.04-i386
        template: ubuntu-1004-i386
        hypervisor: vcloud
    CONFIG:
      consoleport: 443
      datastore: instance0
      resourcepool: Delivery/Quality Assurance/FOSS/Dynamic
      folder: delivery/Quality Assurance/FOSS/Dynamic

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
beaker-3.12.0 docs/how_to/hypervisors/vsphere.md
beaker-3.11.0 docs/how_to/hypervisors/vsphere.md
beaker-3.10.0 docs/how_to/hypervisors/vsphere.md
beaker-3.9.0 docs/how_to/hypervisors/vsphere.md
beaker-3.8.0 docs/how_to/hypervisors/vsphere.md
beaker-3.7.0 docs/how_to/hypervisors/vsphere.md
beaker-3.6.0 docs/how_to/hypervisors/vsphere.md
beaker-2.52.0 docs/how_to/hypervisors/vsphere.md
beaker-3.5.0 docs/how_to/hypervisors/vsphere.md
beaker-3.4.0 docs/how_to/hypervisors/vsphere.md
beaker-3.3.0 docs/how_to/hypervisors/vsphere.md
beaker-3.2.0 docs/how_to/hypervisors/vsphere.md
beaker-3.1.0 docs/how_to/hypervisors/vsphere.md
beaker-3.0.0 docs/how_to/hypervisors/vsphere.md
beaker-2.51.0 docs/how_to/hypervisors/vsphere.md
beaker-2.50.0 docs/how_to/hypervisors/vsphere.md
beaker-2.49.0 docs/how_to/hypervisors/vsphere.md
beaker-2.48.1 docs/how_to/hypervisors/vsphere.md
beaker-2.48.0 docs/how_to/hypervisors/vsphere.md
beaker-2.47.1 docs/hypervisors/vsphere.md