New in version 2015.8.0.
The QingCloud cloud module is used to control access to the QingCloud. http://www.qingcloud.com/
Use of this module requires the access_key_id
, secret_access_key
,
zone
and key_filename
parameter to be set.
Set up the cloud configuration at /etc/salt/cloud.providers
or
/etc/salt/cloud.providers.d/qingcloud.conf
:
my-qingcloud:
driver: qingcloud
access_key_id: AKIDMRTGYONNLTFFRBQJ
secret_access_key: clYwH21U5UOmcov4aNV2V2XocaHCG3JZGcxEczFu
zone: pek2
key_filename: /path/to/your.pem
requests
Return a list of the images that are on the provider.
CLI Examples:
salt-cloud --list-images my-qingcloud
salt-cloud -f avail_images my-qingcloud zone=gd1
Return a dict of all available locations on the provider with relevant data.
CLI Examples:
salt-cloud --list-locations my-qingcloud
Return a list of the instance sizes that are on the provider.
CLI Examples:
salt-cloud --list-sizes my-qingcloud
salt-cloud -f avail_sizes my-qingcloud zone=pek2
Create a single instance from a data dict.
CLI Examples:
salt-cloud -p qingcloud-ubuntu-c1m1 hostname1
salt-cloud -m /path/to/mymap.sls -P
Destroy an instance.
CLI Example:
salt-cloud -a destroy i-2f733r5n
salt-cloud -d i-2f733r5n
Return the first configured instance.
Warn if dependencies aren't met.
Return a list of the instances that are on the provider.
CLI Examples:
salt-cloud -Q my-qingcloud
Return a list of the instances that are on the provider.
CLI Examples:
salt-cloud -F my-qingcloud
Return a list of the instances that are on the provider. Only a list of instances names, and their state, is returned.
CLI Examples:
salt-cloud -f list_nodes_min my-qingcloud
Return a list of the instances that are on the provider, with selected fields.
CLI Examples:
salt-cloud -S my-qingcloud
Make a web call to QingCloud IaaS API.
Reboot an instance.
CLI Examples:
salt-cloud -a reboot i-2f733r5n
Return the script deployment object.
Show the details from QingCloud concerning an image.
CLI Examples:
salt-cloud -f show_image my-qingcloud image=trustysrvx64c
salt-cloud -f show_image my-qingcloud image=trustysrvx64c,coreos4
salt-cloud -f show_image my-qingcloud image=trustysrvx64c zone=ap1
Show the details from QingCloud concerning an instance.
CLI Examples:
salt-cloud -a show_instance i-2f733r5n
Start an instance.
CLI Examples:
salt-cloud -a start i-2f733r5n
Stop an instance.
CLI Examples:
salt-cloud -a stop i-2f733r5n
salt-cloud -a stop i-2f733r5n force=True