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
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: .. code-block:: bash

salt-cloud -f create_lb dimensiondata name=dev-lb port=80 protocol=http members=w1,w2,w3 algorithm=ROUND_ROBIN
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_lb_conn(dd_driver=None)

Return a load-balancer conn object

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

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

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. name

The name of the VM to stop.

CLI Example: .. code-block:: bash

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: .. code-block:: bash

salt-cloud -a stop vm_name