A tool that takes a YAML or JSON configuration file describing a vDC, and provisions the vApps and VMs contained within.
- Configuration of multiple vApps/VMs with:
- multiple NICs
- custom CPU and memory size
- multiple additional disks
- custom VM metadata
- Basic idempotent operation - vApps that already exist are skipped.
- Source vApp Template must contain a single VM. This is VMware's recommended 'simple' method of vApp creation. Complex multi-VM vApps are not supported.
- Org vDC Networks must be precreated.
- IP addresses are assigned manually (recommended) or via DHCP. VM IP pools are not supported.
- vCloud has some interesting ideas about the size of potential 'guest customisation scripts' (aka preambles). You may need to use an external minify tool to reduce the size, or speak to your provider to up the limit. 2048 bytes seems to be a practical default maximum.
Add this line to your application's Gemfile:
gem 'vcloud-launcher'
And then execute:
$ bundle
Or install it yourself as:
$ gem install vcloud-launcher
vcloud-launch node.yaml
Configuration schemas can be found in lib/vcloud/launcher/schema/
.
Please see the vcloud-tools usage documentation.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
vCloud Launcher uses vCloud Core. If you want to use the latest version of vCloud Core, or a local version, you can export some variables. See the Gemfile for details.
vCloud Tools currently use version 5.1 of the vCloud API. Version 5.5 may work but is not currently supported. You should be able to access the 5.1 API in a 5.5 environment, and this is currently supported.
The default version is defined in Fog.
If you want to be sure you are pinning to 5.1, or use 5.5, you can set the API version to use in your fog file, e.g.
vcloud_director_api_version: 5.1
export EXCON_DEBUG=true
- this will print out the API requests and responses.
export DEBUG=true
- this will show you the stack trace when there is an exception instead of just the message.
Run the default suite of tests (e.g. lint, unit, features):
bundle exec rake
Run the integration tests (slower and requires a real environment):
bundle exec rake integration
Run the integration tests minus some that are very slow:
bundle exec rake integration:quick
You need access to a suitable vCloud Director organization to run the integration tests. See the integration tests README for further details.