salt.cloud.clouds.rackspace

Rackspace Cloud Module

The Rackspace cloud module. This module uses the preferred means to set up a libcloud based cloud module and should be used as the general template for setting up additional libcloud based modules.

depends:libcloud >= 0.13.2

Please note that the rackspace driver is only intended for 1st gen instances, aka, "the old cloud" at Rackspace. It is required for 1st gen instances, but will not work with OpenStack-based instances. Unless you explicitly have a reason to use it, it is highly recommended that you use the openstack driver instead.

The rackspace cloud module interfaces with the Rackspace public cloud service and requires that two configuration parameters be set for use, user and apikey.

Set up the cloud configuration at /etc/salt/cloud.providers or /etc/salt/cloud.providers.d/rackspace.conf:

my-rackspace-config:
  driver: rackspace
  # The Rackspace login user
  user: fred
  # The Rackspace user's apikey
  apikey: 901d3f579h23c8v73q9
salt.cloud.clouds.rackspace.avail_images(conn=None, call=None)

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

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

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

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

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

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

Create a single VM from a data dict

salt.cloud.clouds.rackspace.destroy(name, conn=None, call=None)

Delete a single VM

salt.cloud.clouds.rackspace.get_configured_provider()

Return the first configured instance.

salt.cloud.clouds.rackspace.get_conn()

Return a conn object for the passed VM data

salt.cloud.clouds.rackspace.get_dependencies()

Warn if dependencies aren't met.

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

Return the image object to use

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

Return the VM's size object

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

Return a list of the VMs that are on the provider

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

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

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

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

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

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

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

Return the script deployment object

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

Show the details from the provider concerning an instance

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

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