The DigitalOcean cloud module is used to control access to the DigitalOcean VPS system.
Note
Due to Digital Ocean deprecating its original API, this salt-cloud driver for Digital Ocean will be deprecated in Salt Beryllium. The digital_ocean_v2 driver that is currently available on all 2015.5.x releases will be used instead. Starting in Beryllium, the digital_ocean_v2.py driver will be renamed to digital_ocean.py and this driver will be removed. Please convert any original digital_ocean provider configs to use the new digital_ocean_v2 provider configs.
Use of this module only requires the api_key parameter to be set. Set up the cloud configuration at /etc/salt/cloud.providers or /etc/salt/cloud.providers.d/digital_ocean.conf:
my-digital-ocean-config:
# DigitalOcean account keys
client_key: wFGEwgregeqw3435gDger
api_key: GDE43t43REGTrkilg43934t34qT43t4dgegerGEgg
provider: digital_ocean
depends: | requests |
---|
Return a list of the images that are on the provider
Return a dict of all available VM locations on the cloud provider with relevant data
Return a list of the image sizes that are on the provider
Create a single VM from a data dict
Create a node
Destroy a node. Will check termination protection and warn if enabled.
CLI Example:
salt-cloud --destroy mymachine
Return the first configured instance.
Return the image object to use
Return the ID of the keyname
Return the VM's location
Return the VM's size. Used by create_node().
Return a dict of all available VM locations on the cloud provider with relevant data
Return a list of the VMs that are on the provider
Return a list of the VMs that are on the provider
Return a list of the VMs that are on the provider, with select fields
Make a web call to DigitalOcean
Return the script deployment object
Show the details from DigitalOcean concerning a droplet
Show the details of an SSH keypair
Docs for previous releases are available on readthedocs.org.
Latest Salt release: 2015.5.1