The CloudStack cloud module is used to control access to a CloudStack based Public Cloud.
depends: | libcloud |
---|
Use of this module requires the apikey
, secretkey
, host
and
path
parameters.
my-cloudstack-cloud-config:
apikey: <your api key >
secretkey: <your secret key >
host: localhost
path: /client/api
driver: cloudstack
salt.cloud.clouds.cloudstack.
avail_images
(conn=None, call=None)Return a dict of all available VM images on the cloud provider with relevant data
salt.cloud.clouds.cloudstack.
avail_sizes
(conn=None, call=None)Return a dict of all available VM images on the cloud provider with relevant data
salt.cloud.clouds.cloudstack.
block_device_mappings
(vm_)Return the block device mapping:
[{'DeviceName': '/dev/sdb', 'VirtualName': 'ephemeral0'},
{'DeviceName': '/dev/sdc', 'VirtualName': 'ephemeral1'}]
salt.cloud.clouds.cloudstack.
destroy
(name, conn=None, call=None)Delete a single VM, and all of its volumes
salt.cloud.clouds.cloudstack.
get_ip
(data)Return the IP address of the VM If the VM has public IP as defined by libcloud module then use it Otherwise try to extract the private IP and use that one.
salt.cloud.clouds.cloudstack.
get_networkid
(vm_)Return the networkid to use, only valid for Advanced Zone
salt.cloud.clouds.cloudstack.
list_nodes
(conn=None, call=None)Return a list of the VMs that are on the provider
salt.cloud.clouds.cloudstack.
list_nodes_full
(conn=None, call=None)Return a list of the VMs that are on the provider, with all fields