salt.cloud.clouds.dimensiondata

Dimension Data Cloud Module

This is a cloud module for the Dimension Data Cloud, using the existing Libcloud driver for Dimension Data.

# Note: This example is for /etc/salt/cloud.providers
# or any file in the
# /etc/salt/cloud.providers.d/ directory.

my-dimensiondata-config:
  user_id: my_username
  key: myPassword!
  region: dd-na
  driver: dimensiondata
maintainer

Anthony Shaw <anthonyshaw@apache.org>

depends

libcloud >= 1.2.1

salt.cloud.clouds.dimensiondata.avail_images(conn=None, call=None)

Return a dict of all available VM images on the cloud provider with relevant data

salt.cloud.clouds.dimensiondata.avail_locations(conn=None, call=None)

Return a dict of all available VM locations on the cloud provider with relevant data

salt.cloud.clouds.dimensiondata.avail_sizes(conn=None, call=None)

Return a dict of all available VM images on the cloud provider with relevant data

salt.cloud.clouds.dimensiondata.create(vm_)

Create a single VM from a data dict

salt.cloud.clouds.dimensiondata.create_lb(kwargs=None, call=None)

Create a load-balancer configuration.

CLI Example:

salt-cloud -f create_lb dimensiondata \
    name=dev-lb port=80 protocol=http \
    members=w1,w2,w3 algorithm=ROUND_ROBIN
salt.cloud.clouds.dimensiondata.destroy(name, conn=None, call=None)

Delete a single VM

salt.cloud.clouds.dimensiondata.get_configured_provider()

Return the first configured instance.

salt.cloud.clouds.dimensiondata.get_conn()

Return a conn object for the passed VM data

salt.cloud.clouds.dimensiondata.get_dependencies()

Warn if dependencies aren't met.

salt.cloud.clouds.dimensiondata.get_image(conn, vm_)

Return the image object to use

salt.cloud.clouds.dimensiondata.get_lb_conn(dd_driver=None)

Return a load-balancer conn object

salt.cloud.clouds.dimensiondata.get_node(conn, name)

Return a libcloud node for the named VM

salt.cloud.clouds.dimensiondata.get_size(conn, vm_)

Return the VM's size object

salt.cloud.clouds.dimensiondata.list_nodes(conn=None, call=None)

Return a list of the VMs that are on the provider

salt.cloud.clouds.dimensiondata.list_nodes_full(conn=None, call=None)

Return a list of the VMs that are on the provider, with all fields

salt.cloud.clouds.dimensiondata.list_nodes_select(conn=None, call=None)

Return a list of the VMs that are on the provider, with select fields

salt.cloud.clouds.dimensiondata.preferred_ip(vm_, ips)

Return the preferred Internet protocol. Either 'ipv4' (default) or 'ipv6'.

salt.cloud.clouds.dimensiondata.reboot(name, conn=None)

Reboot a single VM

salt.cloud.clouds.dimensiondata.script(vm_)

Return the script deployment object

salt.cloud.clouds.dimensiondata.show_instance(name, call=None)

Show the details from the provider concerning an instance

salt.cloud.clouds.dimensiondata.ssh_interface(vm_)

Return the ssh_interface type to connect to. Either 'public_ips' (default) or 'private_ips'.

salt.cloud.clouds.dimensiondata.start(name, call=None)

Stop a VM in DimensionData.

Parameters

name (str) -- The name of the VM to stop.

CLI Example:

salt-cloud -a stop vm_name
salt.cloud.clouds.dimensiondata.stop(name, call=None)

Stop a VM in DimensionData.

name:

The name of the VM to stop.

CLI Example:

salt-cloud -a stop vm_name