Repository is archived
No commit activity in last 3 years
No release in over 3 years
Tool to launch and configure vCloud networks. Uses vcloud-core.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 12
>= 3.6
~> 0.49.1
~> 0.14.1

Runtime

~> 1.6.8.1
~> 2.1.1
 Project Readme

vCloud Net Launcher

A tool that takes a YAML configuration file describing vCloud networks and configures each of them.

Installation

Add this line to your application's Gemfile:

gem 'vcloud-net_launcher'

And then execute:

$ bundle

Or install it yourself as:

$ gem install vcloud-net_launcher

Usage

The form to run the command is vcloud-net-launch networks.yaml

Credentials

Please see the vcloud-tools usage documentation.

##Supports

  • Configuration of multiple networks
  • Supports natRouted and isolated network types
  • Accepts multiple ip address ranges
  • Defaults
    • IsShared : false
    • IpScope -> IsEnabled : true
    • IpScope -> IsInherited : false

Limitations

  • Not currently reentrant - if the process errors part of the way through, the previously applied network config will need to be removed from the file before it is corrected and run again.

  • No support for deleting networks. If you need to reconfigure a network, delete it first using the vCloud Director GUI and re-run vcloud-net-launch.

Contributing

Please see the contributing guidelines.

Other settings

vCloud Net 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.

The vCloud API

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

Debugging

export EXCON_DEBUG=true - this will print out the API requests and responses.

Testing

Run the default suite of tests (e.g. lint, unit, features):

bundle exec rake

There are also integration tests. These are slower and require a real environment. See the vCloud Tools website for details of how to set up and run the integration tests.

The parameters required to run the vCloud Net Launcher integration tests are:

default: # This is the fog credential that refers to your testing environment, e.g. `test_credential`
  vdc_1_name: # The name of a VDC
  edge_gateway: # The name of the edge gateway