New in version 2014.7.0.
The Aliyun cloud module is used to control access to the aliyun ECS. http://www.aliyun.com/
Use of this module requires the id
and key
parameter to be set.
Set up the cloud configuration at /etc/salt/cloud.providers
or
/etc/salt/cloud.providers.d/aliyun.conf
:
my-aliyun-config:
# aliyun Access Key ID
id: wFGEwgregeqw3435gDger
# aliyun Access Key Secret
key: GDE43t43REGTrkilg43934t34qT43t4dgegerGEgg
location: cn-qingdao
driver: aliyun
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
Convenience function to make the rest api call for node creation.
Destroy a node.
CLI Example:
salt-cloud -a destroy myinstance
salt-cloud -d myinstance
Return the first configured instance.
Warn if dependencies aren't met.
Return the image object to use
CLI parameter
VM parameter
Cloud profile setting
Return the security group
Return the VM's size. Used by create_node().
List all availability zones in the current region
Get monitor data of the instance. If instance name is missing, will show all the instance monitor data on the region.
CLI Examples:
salt-cloud -f list_monitor_data aliyun
salt-cloud -f list_monitor_data aliyun name=AY14051311071990225bd
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. Only a list of VM names, and their state, is returned. This is the minimum amount of information needed to check for existing VMs.
Return a list of the VMs that are on the provider, with select fields
Return a list of security group
Make a web call to aliyun ECS REST API
Reboot a node
CLI Examples:
salt-cloud -a reboot myinstance
Return the script deployment object
Show the disk details of the instance
CLI Examples:
salt-cloud -a show_disk aliyun myinstance
Show the details from aliyun image
Show the details from aliyun instance
Start a node
CLI Examples:
salt-cloud -a start myinstance
Stop a node
CLI Examples:
salt-cloud -a stop myinstance
salt-cloud -a stop myinstance force=True