The GoGrid cloud module. This module interfaces with the gogrid public cloud service. To use Salt Cloud with GoGrid log into the GoGrid web interface and create an api key. Do this by clicking on "My Account" and then going to the API Keys tab.
depends: | libcloud >= 0.13.2 |
---|
Set up the cloud configuration at /etc/salt/cloud.providers
or
/etc/salt/cloud.providers.d/gogrid.conf
:
my-gogrid-config:
# The generated api key to use
apikey: asdff7896asdh789
# The apikey's shared secret
sharedsecret: saltybacon
provider: gogrid
Note
A Note about using Map files with GoGrid:
Due to limitations in the GoGrid API, instances cannot be provisioned in parallel
with the GoGrid driver. Map files will work with GoGrid, but the -P
argument should not be used on maps referencing GoGrid instances.
salt.cloud.clouds.gogrid.
avail_images
(conn=None, call=None)¶Return a dict of all available VM images on the cloud provider with relevant data
salt.cloud.clouds.gogrid.
avail_locations
(conn=None, call=None)¶Return a dict of all available VM locations on the cloud provider with relevant data
salt.cloud.clouds.gogrid.
avail_sizes
(conn=None, call=None)¶Return a dict of all available VM images on the cloud provider with relevant data
salt.cloud.clouds.gogrid.
create
(vm_)¶Create a single VM from a data dict
salt.cloud.clouds.gogrid.
destroy
(name, conn=None, call=None)¶Delete a single VM
salt.cloud.clouds.gogrid.
get_configured_provider
()¶Return the first configured instance.
salt.cloud.clouds.gogrid.
get_conn
()¶Return a conn object for the passed VM data
salt.cloud.clouds.gogrid.
get_image
(conn, vm_)¶Return the image object to use
salt.cloud.clouds.gogrid.
get_node
(conn, name)¶Return a libcloud node for the named VM
salt.cloud.clouds.gogrid.
get_salt_interface
(vm_)¶Return the salt_interface type to connect to. Either 'public_ips' (default) or 'private_ips'.
salt.cloud.clouds.gogrid.
get_size
(conn, vm_)¶Return the VM's size object
salt.cloud.clouds.gogrid.
list_nodes
(conn=None, call=None)¶Return a list of the VMs that are on the provider
salt.cloud.clouds.gogrid.
list_nodes_full
(conn=None, call=None)¶Return a list of the VMs that are on the provider, with all fields
salt.cloud.clouds.gogrid.
list_nodes_select
(conn=None, call=None)¶Return a list of the VMs that are on the provider, with select fields
salt.cloud.clouds.gogrid.
reboot
(name, conn=None)¶Reboot a single VM
salt.cloud.clouds.gogrid.
script
(vm_)¶Return the script deployment object
salt.cloud.clouds.gogrid.
show_instance
(name, call=None)¶Show the details from the provider concerning an instance