The DigitalOcean cloud module is used to control access to the DigitalOcean VPS system.
Use of this module only requires the personal_access_token
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:
personal_access_token: xxx
provider: digital_ocean
depends: | requests |
---|
salt.cloud.clouds.digital_ocean_v2.
avail_images
(call=None)Return a list of the images that are on the provider
salt.cloud.clouds.digital_ocean_v2.
avail_locations
(call=None)Return a dict of all available VM locations on the cloud provider with relevant data
salt.cloud.clouds.digital_ocean_v2.
avail_sizes
(call=None)Return a list of the image sizes that are on the provider
salt.cloud.clouds.digital_ocean_v2.
create_dns_record
(hostname, ip_address)Creates a DNS record for the given hostname if the domain is managed with DO.
salt.cloud.clouds.digital_ocean_v2.
delete_dns_record
(hostname)Deletes a DNS for the given hostname if the domain is managed with DO.
salt.cloud.clouds.digital_ocean_v2.
destroy
(name, call=None)Destroy a node. Will check termination protection and warn if enabled.
CLI Example:
salt-cloud --destroy mymachine
salt.cloud.clouds.digital_ocean_v2.
list_keypairs
(call=None)Return a dict of all available VM locations on the cloud provider with relevant data
salt.cloud.clouds.digital_ocean_v2.
list_nodes
(call=None)Return a list of the VMs that are on the provider
salt.cloud.clouds.digital_ocean_v2.
list_nodes_full
(call=None, forOutput=True)Return a list of the VMs that are on the provider
salt.cloud.clouds.digital_ocean_v2.
list_nodes_select
(call=None)Return a list of the VMs that are on the provider, with select fields
salt.cloud.clouds.digital_ocean_v2.
query
(method='droplets', droplet_id=None, command=None, args=None, http_method='get')Make a web call to DigitalOcean