The OpenNebula cloud module is used to control access to an OpenNebula cloud.
Use of this module requires the xml_rpc
, user
and
password
parameter to be set. Set up the cloud configuration
at /etc/salt/cloud.providers
or
/etc/salt/cloud.providers.d/opennebula.conf
:
my-opennebula-config:
xml_rpc: http://localhost:2633/RPC2
user: oneadmin
password: JHGhgsayu32jsa
provider: opennebula
salt.cloud.clouds.opennebula.
avail_images
(call=None)¶Return a list of the templates that are on the provider
salt.cloud.clouds.opennebula.
avail_locations
(call=None)¶Return a dict of all available VM locations on the cloud provider with relevant data
salt.cloud.clouds.opennebula.
avail_sizes
(call=None)¶Because sizes are built into templates with OpenNebula, there will be no sizes to return here
salt.cloud.clouds.opennebula.
create
(vm_)¶Create a single VM from a data dict
salt.cloud.clouds.opennebula.
destroy
(name, call=None)¶Destroy a node. Will check termination protection and warn if enabled.
CLI Example:
salt-cloud --destroy mymachine
salt.cloud.clouds.opennebula.
get_configured_provider
()¶Return the first configured instance.
salt.cloud.clouds.opennebula.
get_image
(vm_)¶Return the image object to use
salt.cloud.clouds.opennebula.
get_location
(vm_)¶Return the VM's location
salt.cloud.clouds.opennebula.
list_nodes
(call=None)¶Return a list of the VMs that are on the provider
salt.cloud.clouds.opennebula.
list_nodes_full
(call=None)¶Return a list of the VMs that are on the provider
salt.cloud.clouds.opennebula.
list_nodes_select
(call=None)¶Return a list of the VMs that are on the provider, with select fields
salt.cloud.clouds.opennebula.
script
(vm_)¶Return the script deployment object
salt.cloud.clouds.opennebula.
show_instance
(name, call=None)¶Show the details from OpenNebula concerning a VM