mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Typo and formatting fixes.
This commit is contained in:
parent
249b5456aa
commit
f925ff7fd4
8 changed files with 264 additions and 251 deletions
|
@ -90,9 +90,9 @@
|
||||||
|
|
||||||
#my-tencentcloud-config:
|
#my-tencentcloud-config:
|
||||||
# driver: tencentcloud
|
# driver: tencentcloud
|
||||||
# TencentCloud Secret Id
|
# Tencent Cloud Secret Id
|
||||||
# id: AKIDA64pOio9BMemkApzevX0HS169S4b750A
|
# id: AKIDA64pOio9BMemkApzevX0HS169S4b750A
|
||||||
# TencentCloud Secret Key
|
# Tencent Cloud Secret Key
|
||||||
# key: 8r2xmPn0C5FDvRAlmcJimiTZKVRsk260
|
# key: 8r2xmPn0C5FDvRAlmcJimiTZKVRsk260
|
||||||
# TencentCloud Region
|
# Tencent Cloud Region
|
||||||
# location: ap-guangzhou
|
# location: ap-guangzhou
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#my-tencentcloud-config:
|
#my-tencentcloud-config:
|
||||||
# driver: tencentcloud
|
# driver: tencentcloud
|
||||||
# TencentCloud Secret Id
|
# Tencent Cloud Secret Id
|
||||||
# id: AKIDA64pOio9BMemkApzevX0HS169S4b750A
|
# id: AKIDA64pOio9BMemkApzevX0HS169S4b750A
|
||||||
# TencentCloud Secret Key
|
# Tencent Cloud Secret Key
|
||||||
# key: 8r2xmPn0C5FDvRAlmcJimiTZKVRsk260
|
# key: 8r2xmPn0C5FDvRAlmcJimiTZKVRsk260
|
||||||
# TencentCloud Region
|
# Tencent Cloud Region
|
||||||
# location: ap-guangzhou
|
# location: ap-guangzhou
|
||||||
|
|
|
@ -38,26 +38,26 @@ These are features that are available for almost every cloud host.
|
||||||
|
|
||||||
.. container:: scrollable
|
.. container:: scrollable
|
||||||
|
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
| |AWS |CloudStack|Digital|EC2|GoGrid|JoyEnt|Linode|OpenStack|Parallels|Rackspace|Saltify|Vagrant|Softlayer|Softlayer|Aliyun|
|
| |AWS |CloudStack|Digital|EC2|GoGrid|JoyEnt|Linode|OpenStack|Parallels|Rackspace|Saltify|Vagrant|Softlayer|Softlayer|Aliyun|Tencent Cloud|
|
||||||
| |(Legacy)| |Ocean | | | | | | |(Legacy) | | | |Hardware | |
|
| |(Legacy)| |Ocean | | | | | | |(Legacy) | | | |Hardware | | |
|
||||||
+=======================+========+==========+=======+===+======+======+======+=========+=========+=========+=======+=======+=========+=========+======+
|
+=======================+========+==========+=======+===+======+======+======+=========+=========+=========+=======+=======+=========+=========+======+============+
|
||||||
|Query |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[1] |[1] |Yes |Yes |Yes |
|
|Query |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[1] |[1] |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
|Full Query |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[1] |[1] |Yes |Yes |Yes |
|
|Full Query |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[1] |[1] |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
|Selective Query |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[1] |[1] |Yes |Yes |Yes |
|
|Selective Query |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[1] |[1] |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
|List Sizes |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[2] |[2] |Yes |Yes |Yes |
|
|List Sizes |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[2] |[2] |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
|List Images |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |
|
|List Images |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
|List Locations |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[2] |[2] |Yes |Yes |Yes |
|
|List Locations |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[2] |[2] |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
|create |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |[1] |Yes |Yes |Yes |
|
|create |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |[1] |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
|destroy |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[1] |[1] |Yes |Yes |Yes |
|
|destroy |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |[1] |[1] |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+-------+-------+---------+---------+------+------------+
|
||||||
|
|
||||||
[1] Yes, if salt-api is enabled.
|
[1] Yes, if salt-api is enabled.
|
||||||
|
|
||||||
|
@ -74,46 +74,46 @@ instance name to be passed in. For example:
|
||||||
|
|
||||||
.. container:: scrollable
|
.. container:: scrollable
|
||||||
|
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|Actions |AWS |CloudStack|Digital|EC2|GoGrid|JoyEnt|Linode|OpenStack|Parallels|Rackspace|Saltify&|Softlayer|Softlayer|Aliyun|
|
|Actions |AWS |CloudStack|Digital|EC2|GoGrid|JoyEnt|Linode|OpenStack|Parallels|Rackspace|Saltify&|Softlayer|Softlayer|Aliyun|Tencent Cloud|
|
||||||
| |(Legacy)| |Ocean | | | | | | |(Legacy) | Vagrant| |Hardware | |
|
| |(Legacy)| |Ocean | | | | | | |(Legacy) | Vagrant| |Hardware | | |
|
||||||
+=======================+========+==========+=======+===+======+======+======+=========+=========+=========+========+=========+=========+======+
|
+=======================+========+==========+=======+===+======+======+======+=========+=========+=========+========+=========+=========+======+============+
|
||||||
|attach_volume | | | |Yes| | | | | | | | | | |
|
|attach_volume | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|create_attach_volumes |Yes | | |Yes| | | | | | | | | | |
|
|create_attach_volumes |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|del_tags |Yes | | |Yes| | | | | | | | | | |
|
|del_tags |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|delvol_on_destroy | | | |Yes| | | | | | | | | | |
|
|delvol_on_destroy | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|detach_volume | | | |Yes| | | | | | | | | | |
|
|detach_volume | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|disable_term_protect |Yes | | |Yes| | | | | | | | | | |
|
|disable_term_protect |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|enable_term_protect |Yes | | |Yes| | | | | | | | | | |
|
|enable_term_protect |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_tags |Yes | | |Yes| | | | | | | | | | |
|
|get_tags |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|keepvol_on_destroy | | | |Yes| | | | | | | | | | |
|
|keepvol_on_destroy | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|list_keypairs | | |Yes | | | | | | | | | | | |
|
|list_keypairs | | |Yes | | | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|rename |Yes | | |Yes| | | | | | | | | | |
|
|rename |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|set_tags |Yes | | |Yes| | | | | | | | | | |
|
|set_tags |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|show_delvol_on_destroy | | | |Yes| | | | | | | | | | |
|
|show_delvol_on_destroy | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|show_instance | | |Yes |Yes| | |Yes | |Yes | | |Yes |Yes |Yes |
|
|show_instance | | |Yes |Yes| | |Yes | |Yes | | |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|show_term_protect | | | |Yes| | | | | | | | | | |
|
|show_term_protect | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|start |Yes | | |Yes| |Yes |Yes | |Yes | | | | |Yes |
|
|start |Yes | | |Yes| |Yes |Yes | |Yes | | | | |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|stop |Yes | | |Yes| |Yes |Yes | |Yes | | | | |Yes |
|
|stop |Yes | | |Yes| |Yes |Yes | |Yes | | | | |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|take_action | | | | | |Yes | | | | | | | | |
|
|take_action | | | | | |Yes | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|
|
||||||
Functions
|
Functions
|
||||||
=========
|
=========
|
||||||
|
@ -126,83 +126,83 @@ require the name of the provider to be passed in. For example:
|
||||||
|
|
||||||
.. container:: scrollable
|
.. container:: scrollable
|
||||||
|
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|Functions |AWS |CloudStack|Digital|EC2|GoGrid|JoyEnt|Linode|OpenStack|Parallels|Rackspace|Saltify&|Softlayer|Softlayer|Aliyun|
|
|Functions |AWS |CloudStack|Digital|EC2|GoGrid|JoyEnt|Linode|OpenStack|Parallels|Rackspace|Saltify&|Softlayer|Softlayer|Aliyun|Tencent Cloud|
|
||||||
| |(Legacy)| |Ocean | | | | | | |(Legacy) | Vagrant| |Hardware | |
|
| |(Legacy)| |Ocean | | | | | | |(Legacy) | Vagrant| |Hardware | | |
|
||||||
+=======================+========+==========+=======+===+======+======+======+=========+=========+=========+========+=========+=========+======+
|
+=======================+========+==========+=======+===+======+======+======+=========+=========+=========+========+=========+=========+======+============+
|
||||||
|block_device_mappings |Yes | | | | | | | | | | | | | |
|
|block_device_mappings |Yes | | | | | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|create_keypair | | | |Yes| | | | | | | | | | |
|
|create_keypair | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|create_volume | | | |Yes| | | | | | | | | | |
|
|create_volume | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|delete_key | | | | | |Yes | | | | | | | | |
|
|delete_key | | | | | |Yes | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|delete_keypair | | | |Yes| | | | | | | | | | |
|
|delete_keypair | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|delete_volume | | | |Yes| | | | | | | | | | |
|
|delete_volume | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_image | | |Yes | | |Yes | | |Yes | | | | |Yes |
|
|get_image | | |Yes | | |Yes | | |Yes | | | | |Yes | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_ip | |Yes | | | | | | | | | | | | |
|
|get_ip | |Yes | | | | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_key | |Yes | | | | | | | | | | | | |
|
|get_key | |Yes | | | | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_keyid | | |Yes | | | | | | | | | | | |
|
|get_keyid | | |Yes | | | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_keypair | |Yes | | | | | | | | | | | | |
|
|get_keypair | |Yes | | | | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_networkid | |Yes | | | | | | | | | | | | |
|
|get_networkid | |Yes | | | | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_node | | | | | |Yes | | | | | | | | |
|
|get_node | | | | | |Yes | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_password | |Yes | | | | | | | | | | | | |
|
|get_password | |Yes | | | | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_size | | |Yes | | |Yes | | | | | | | |Yes |
|
|get_size | | |Yes | | |Yes | | | | | | | |Yes | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_spot_config | | | |Yes| | | | | | | | | | |
|
|get_spot_config | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|get_subnetid | | | |Yes| | | | | | | | | | |
|
|get_subnetid | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|iam_profile |Yes | | |Yes| | | | | | | | | |Yes |
|
|iam_profile |Yes | | |Yes| | | | | | | | | |Yes | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|import_key | | | | | |Yes | | | | | | | | |
|
|import_key | | | | | |Yes | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|key_list | | | | | |Yes | | | | | | | | |
|
|key_list | | | | | |Yes | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|keyname |Yes | | |Yes| | | | | | | | | | |
|
|keyname |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|list_availability_zones| | | |Yes| | | | | | | | | |Yes |
|
|list_availability_zones| | | |Yes| | | | | | | | | |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|list_custom_images | | | | | | | | | | | |Yes | | |
|
|list_custom_images | | | | | | | | | | | |Yes | | |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|list_keys | | | | | |Yes | | | | | | | | |
|
|list_keys | | | | | |Yes | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|list_nodes |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |
|
|list_nodes |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|list_nodes_full |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |
|
|list_nodes_full |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|list_nodes_select |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |
|
|list_nodes_select |Yes |Yes |Yes |Yes|Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|list_vlans | | | | | | | | | | | |Yes |Yes | |
|
|list_vlans | | | | | | | | | | | |Yes |Yes | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|rackconnect | | | | | | | |Yes | | | | | | |
|
|rackconnect | | | | | | | |Yes | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|reboot | | | |Yes| |Yes | | | | |[1] | | |Yes |
|
|reboot | | | |Yes| |Yes | | | | |[1] | | |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|reformat_node | | | | | |Yes | | | | | | | | |
|
|reformat_node | | | | | |Yes | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|securitygroup |Yes | | |Yes| | | | | | | | | | |
|
|securitygroup |Yes | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|securitygroupid | | | |Yes| | | | | | | | | |Yes |
|
|securitygroupid | | | |Yes| | | | | | | | | |Yes | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|show_image | | | |Yes| | | | |Yes | | | | |Yes |
|
|show_image | | | |Yes| | | | |Yes | | | | |Yes |Yes |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|show_key | | | | | |Yes | | | | | | | | |
|
|show_key | | | | | |Yes | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|show_keypair | | |Yes |Yes| | | | | | | | | | |
|
|show_keypair | | |Yes |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|show_volume | | | |Yes| | | | | | | | | |Yes |
|
|show_volume | | | |Yes| | | | | | | | | | | |
|
||||||
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+
|
+-----------------------+--------+----------+-------+---+------+------+------+---------+---------+---------+--------+---------+---------+------+------------+
|
||||||
|
|
||||||
[1] Yes, if salt-api is enabled.
|
[1] Yes, if salt-api is enabled.
|
||||||
|
|
|
@ -128,6 +128,7 @@ Cloud Provider Specifics
|
||||||
Getting Started With Scaleway <scaleway>
|
Getting Started With Scaleway <scaleway>
|
||||||
Getting Started With Saltify <saltify>
|
Getting Started With Saltify <saltify>
|
||||||
Getting Started With SoftLayer <softlayer>
|
Getting Started With SoftLayer <softlayer>
|
||||||
|
Getting Started With Tencent Cloud <tencentcloud>
|
||||||
Getting Started With Vagrant <vagrant>
|
Getting Started With Vagrant <vagrant>
|
||||||
Getting Started With Vexxhost <vexxhost>
|
Getting Started With Vexxhost <vexxhost>
|
||||||
Getting Started With Virtualbox <virtualbox>
|
Getting Started With Virtualbox <virtualbox>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
=================================
|
==================================
|
||||||
Getting Started With TencentCloud
|
Getting Started With Tencent Cloud
|
||||||
=================================
|
==================================
|
||||||
|
|
||||||
Tencent Cloud is a secure, reliable and high-performance cloud compute service
|
Tencent Cloud is a secure, reliable and high-performance cloud compute service
|
||||||
provided by Tencent. It is the 2nd largest Cloud Provider in China.
|
provided by Tencent. It is the 2nd largest Cloud Provider in China.
|
||||||
|
@ -8,7 +8,7 @@ provided by Tencent. It is the 2nd largest Cloud Provider in China.
|
||||||
|
|
||||||
Dependencies
|
Dependencies
|
||||||
============
|
============
|
||||||
The TencentCloud driver for Salt Cloud requires the tencentcloud-sdk-python package,
|
The Tencent Cloud driver for Salt Cloud requires the ``tencentcloud-sdk-python`` package,
|
||||||
which is available at PyPI:
|
which is available at PyPI:
|
||||||
|
|
||||||
https://pypi.org/project/tencentcloud-sdk-python/
|
https://pypi.org/project/tencentcloud-sdk-python/
|
||||||
|
@ -30,11 +30,11 @@ To use this module, set up the cloud configuration at
|
||||||
|
|
||||||
my-tencentcloud-config:
|
my-tencentcloud-config:
|
||||||
driver: tencentcloud
|
driver: tencentcloud
|
||||||
# TencentCloud Secret Id
|
# Tencent Cloud Secret Id
|
||||||
id: AKIDA64pOio9BMemkApzevX0HS169S4b750A
|
id: AKIDA64pOio9BMemkApzevX0HS169S4b750A
|
||||||
# TencentCloud Secret Key
|
# Tencent Cloud Secret Key
|
||||||
key: 8r2xmPn0C5FDvRAlmcJimiTZKVRsk260
|
key: 8r2xmPn0C5FDvRAlmcJimiTZKVRsk260
|
||||||
# TencentCloud Region
|
# Tencent Cloud Region
|
||||||
location: ap-guangzhou
|
location: ap-guangzhou
|
||||||
|
|
||||||
Configuration Parameters
|
Configuration Parameters
|
||||||
|
@ -42,20 +42,20 @@ Configuration Parameters
|
||||||
|
|
||||||
driver
|
driver
|
||||||
------
|
------
|
||||||
Required, Please use ``tencentcloud`` always with this module.
|
**Required**. ``tencentcloud`` to use this module.
|
||||||
|
|
||||||
id
|
id
|
||||||
--
|
--
|
||||||
Required, The TencentCloud secret id.
|
**Required**. Your Tencent Cloud secret id.
|
||||||
|
|
||||||
key
|
key
|
||||||
---
|
---
|
||||||
Required, The TencentCloud secret key.
|
**Required**. Your Tencent Cloud secret key.
|
||||||
|
|
||||||
location
|
location
|
||||||
--------
|
--------
|
||||||
Optional, If this value is not specified, the default is ``ap-guangzhou``.
|
**Optional**. If this value is not specified, the default is ``ap-guangzhou``.
|
||||||
Location to be configured can be found using the ``--list-locations`` option:
|
Available locations can be found using the ``--list-locations`` option:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ Location to be configured can be found using the ``--list-locations`` option:
|
||||||
Profile Configuration
|
Profile Configuration
|
||||||
=====================
|
=====================
|
||||||
|
|
||||||
TencentCloud profiles require a ``provider``, ``availability_zone``, ``image`` and ``size``.
|
Tencent Cloud profiles require a ``provider``, ``availability_zone``, ``image`` and ``size``.
|
||||||
Set up an initial profile at ``/etc/salt/cloud.profiles`` or ``/etc/salt/cloud.profiles.d/*.conf``:
|
Set up an initial profile at ``/etc/salt/cloud.profiles`` or ``/etc/salt/cloud.profiles.d/*.conf``:
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
@ -86,12 +86,12 @@ Configuration Parameters
|
||||||
|
|
||||||
provider
|
provider
|
||||||
--------
|
--------
|
||||||
Required, Name of entry in ``salt/cloud.providers.d/???`` file.
|
**Required**. Name of entry in ``salt/cloud.providers.d/???`` file.
|
||||||
|
|
||||||
availability_zone
|
availability_zone
|
||||||
-----------------
|
-----------------
|
||||||
Required, The available zone that the instance locates at.
|
**Required**. The availability zone that the instance is located in.
|
||||||
Available zones to build an instance can be found using the ``list_availability_zones`` function:
|
Available zones can be found using the ``list_availability_zones`` function:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -99,8 +99,8 @@ Available zones to build an instance can be found using the ``list_availability_
|
||||||
|
|
||||||
image
|
image
|
||||||
-----
|
-----
|
||||||
Required, The image id to use for the instance.
|
**Required**. The image id to use for the instance.
|
||||||
Images to build an instance can be found using the ``--list-images`` option:
|
Available images can be found using the ``--list-images`` option:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ Images to build an instance can be found using the ``--list-images`` option:
|
||||||
|
|
||||||
size
|
size
|
||||||
----
|
----
|
||||||
Required, Instance type for instance can be found using the ``--list-sizes`` option.
|
**Required**. Instance type for instance can be found using the ``--list-sizes`` option.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -116,14 +116,14 @@ Required, Instance type for instance can be found using the ``--list-sizes`` opt
|
||||||
|
|
||||||
securitygroups
|
securitygroups
|
||||||
--------------
|
--------------
|
||||||
Optional, A list of security group ids to associate with.
|
**Optional**. A list of security group ids to associate with.
|
||||||
Security group ids to build an instance can be found using the ``list_securitygroups`` function:
|
Available security group ids can be found using the ``list_securitygroups`` function:
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
# salt-cloud -f list_securitygroups my-tencentcloud-config
|
# salt-cloud -f list_securitygroups my-tencentcloud-config
|
||||||
|
|
||||||
Multiple security group is supported.
|
Multiple security groups are supported:
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
@ -134,87 +134,93 @@ Multiple security group is supported.
|
||||||
|
|
||||||
hostname
|
hostname
|
||||||
--------
|
--------
|
||||||
Optional, The hostname of instance.
|
**Optional**. The hostname of the instance.
|
||||||
|
|
||||||
instance_charge_type
|
instance_charge_type
|
||||||
--------------------
|
--------------------
|
||||||
Optional, The charge type of instance. Valid values are ``PREPAID``,
|
**Optional**. The charge type of the instance. Valid values are ``PREPAID``,
|
||||||
``POSTPAID_BY_HOUR`` and ``SPOTPAID``, The default is ``POSTPAID_BY_HOUR``.
|
``POSTPAID_BY_HOUR`` and ``SPOTPAID``. The default is ``POSTPAID_BY_HOUR``.
|
||||||
|
|
||||||
instance_charge_type_prepaid_renew_flag
|
instance_charge_type_prepaid_renew_flag
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
Optional, When enabled, the instance will be renew automatically
|
**Optional**. When enabled, the instance will be renew automatically
|
||||||
when it reach the end of the prepaid tenancy.
|
when it reaches the end of the prepaid tenancy.
|
||||||
Valid values are ``NOTIFY_AND_AUTO_RENEW``, ``NOTIFY_AND_MANUAL_RENEW`` and ``DISABLE_NOTIFY_AND_MANUAL_RENEW``.
|
Valid values are ``NOTIFY_AND_AUTO_RENEW``, ``NOTIFY_AND_MANUAL_RENEW`` and ``DISABLE_NOTIFY_AND_MANUAL_RENEW``.
|
||||||
NOTE: it only works when ``instance_charge_type`` is set to ``PREPAID``.
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This value is only used when ``instance_charge_type`` is set to ``PREPAID``.
|
||||||
|
|
||||||
instance_charge_type_prepaid_period
|
instance_charge_type_prepaid_period
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
Optional, The tenancy (time unit is month) of the prepaid instance,
|
**Optional**. The tenancy time in months of the prepaid instance,
|
||||||
Valid values are ``1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36``.
|
Valid values are ``1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36``.
|
||||||
NOTE: it only works when ``instance_charge_type`` is set to ``PREPAID``.
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This value is only used when ``instance_charge_type`` is set to ``PREPAID``.
|
||||||
|
|
||||||
allocate_public_ip
|
allocate_public_ip
|
||||||
------------------
|
------------------
|
||||||
Optional, Associate a public ip address with an instance
|
**Optional**. Associate a public ip address with an instance
|
||||||
in a VPC or Classic. Boolean value, Default is ``false``.
|
in a VPC or Classic. Boolean value, default is ``false``.
|
||||||
|
|
||||||
internet_max_bandwidth_out
|
internet_max_bandwidth_out
|
||||||
--------------------------
|
--------------------------
|
||||||
Optional, Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bit per second).
|
**Optional**. Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second).
|
||||||
Value range: ``[0, 100]``, If this value is not specified, then automatically sets it to ``0 Mbps``.
|
Value range: ``[0, 100]``. If this value is not specified, the default is ``0`` Mbps.
|
||||||
|
|
||||||
internet_charge_type
|
internet_charge_type
|
||||||
--------------------
|
--------------------
|
||||||
Optional, Internet charge type of the instance, Valid values are ``BANDWIDTH_PREPAID``,
|
**Optional**. Internet charge type of the instance. Valid values are ``BANDWIDTH_PREPAID``,
|
||||||
``TRAFFIC_POSTPAID_BY_HOUR``, ``BANDWIDTH_POSTPAID_BY_HOUR`` and ``BANDWIDTH_PACKAGE``.
|
``TRAFFIC_POSTPAID_BY_HOUR``, ``BANDWIDTH_POSTPAID_BY_HOUR`` and ``BANDWIDTH_PACKAGE``.
|
||||||
The default is ``TRAFFIC_POSTPAID_BY_HOUR``.
|
The default is ``TRAFFIC_POSTPAID_BY_HOUR``.
|
||||||
|
|
||||||
key_name
|
key_name
|
||||||
--------
|
--------
|
||||||
Optional, The key pair to use for the instance, it looks like ``skey-16jig7tx``.
|
**Optional**. The key pair to use for the instance, for example ``skey-16jig7tx``.
|
||||||
|
|
||||||
password
|
password
|
||||||
--------
|
--------
|
||||||
Optional, Password to an instance.
|
**Optional**. Login password for the instance.
|
||||||
|
|
||||||
private_ip
|
private_ip
|
||||||
----------
|
----------
|
||||||
Optional, The private ip to be assigned to this instance,
|
**Optional**. The private ip to be assigned to this instance,
|
||||||
must be in the provided subnet and available.
|
must be in the provided subnet and available.
|
||||||
|
|
||||||
project_id
|
project_id
|
||||||
----------
|
----------
|
||||||
Optional, The project instance belongs to, default to ``0``.
|
**Optional**. The project this instance belongs to, defaults to ``0``.
|
||||||
|
|
||||||
vpc_id
|
vpc_id
|
||||||
------
|
------
|
||||||
Optional, The id of a VPC network.
|
**Optional**. The id of a VPC network.
|
||||||
If you want to create instances in VPC network, this parameter must be set.
|
If you want to create instances in a VPC network, this parameter must be set.
|
||||||
|
|
||||||
subnet_id
|
subnet_id
|
||||||
---------
|
---------
|
||||||
Optional, The id of a VPC subnetwork.
|
**Optional**. The id of a VPC subnet.
|
||||||
If you want to create instances in VPC network, this parameter must be set.
|
If you want to create instances in VPC network, this parameter must be set.
|
||||||
|
|
||||||
system_disk_size
|
system_disk_size
|
||||||
----------------
|
----------------
|
||||||
Optional, Size of the system disk.
|
**Optional**. Size of the system disk.
|
||||||
Value range: ``[50, 1000]``, and unit is ``GB``. Default is ``50 GB``.
|
Value range: ``[50, 1000]``, and unit is ``GB``. Default is ``50`` GB.
|
||||||
|
|
||||||
system_disk_type
|
system_disk_type
|
||||||
----------------
|
----------------
|
||||||
Optional, Type of the system disk.
|
**Optional**. Type of the system disk.
|
||||||
Valid values are ``CLOUD_BASIC``, ``CLOUD_SSD`` and ``CLOUD_PREMIUM``, default value is ``CLOUD_BASIC``.
|
Valid values are ``CLOUD_BASIC``, ``CLOUD_SSD`` and ``CLOUD_PREMIUM``, default value is ``CLOUD_BASIC``.
|
||||||
|
|
||||||
|
|
||||||
Actions
|
Actions
|
||||||
=======
|
=======
|
||||||
The following actions are currently supported by the TencentCloud Salt Cloud driver.
|
The following actions are supported by the Tencent Cloud Salt Cloud driver.
|
||||||
|
|
||||||
show_instance
|
show_instance
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
This action is a thin wrapper around `--full-query`, which displays details on a
|
This action is a thin wrapper around ``--full-query``, which displays details on a
|
||||||
single instance only. In an environment with several machines, this will save a
|
single instance only. In an environment with several machines, this will save a
|
||||||
user from having to sort through all instance data, just to examine a single
|
user from having to sort through all instance data, just to examine a single
|
||||||
instance.
|
instance.
|
||||||
|
@ -225,7 +231,7 @@ instance.
|
||||||
|
|
||||||
show_disk
|
show_disk
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
Return details about a specific instance.
|
Return disk details about a specific instance.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -233,7 +239,7 @@ Return details about a specific instance.
|
||||||
|
|
||||||
destroy
|
destroy
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
Destroy a TencentCloud instance.
|
Destroy a Tencent Cloud instance.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -241,7 +247,7 @@ Destroy a TencentCloud instance.
|
||||||
|
|
||||||
start
|
start
|
||||||
~~~~~
|
~~~~~
|
||||||
Start a TencentCloud instance.
|
Start a Tencent Cloud instance.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -249,7 +255,7 @@ Start a TencentCloud instance.
|
||||||
|
|
||||||
stop
|
stop
|
||||||
~~~~
|
~~~~
|
||||||
Stop a TencentCloud instance.
|
Stop a Tencent Cloud instance.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -257,7 +263,7 @@ Stop a TencentCloud instance.
|
||||||
|
|
||||||
reboot
|
reboot
|
||||||
~~~~~~
|
~~~~~~
|
||||||
Reboot a TencentCloud instance.
|
Reboot a Tencent Cloud instance.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -266,11 +272,11 @@ Reboot a TencentCloud instance.
|
||||||
|
|
||||||
Functions
|
Functions
|
||||||
=========
|
=========
|
||||||
The following functions are currently supported by the TencentCloud Salt Cloud driver.
|
The following functions are currently supported by the Tencent Cloud Salt Cloud driver.
|
||||||
|
|
||||||
list_securitygroups
|
list_securitygroups
|
||||||
~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~
|
||||||
This function return all TencentCloud security groups in current region.
|
Lists all Tencent Cloud security groups in current region.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -278,7 +284,7 @@ This function return all TencentCloud security groups in current region.
|
||||||
|
|
||||||
list_availability_zones
|
list_availability_zones
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
This function return all TencentCloud availability zones in current region.
|
Lists all Tencent Cloud availability zones in current region.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
@ -286,7 +292,7 @@ This function return all TencentCloud availability zones in current region.
|
||||||
|
|
||||||
list_custom_images
|
list_custom_images
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
This function lists any custom images associated with the account, that can
|
Lists any custom images associated with the account. These images can
|
||||||
be used to create a new instance.
|
be used to create a new instance.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
@ -295,8 +301,8 @@ be used to create a new instance.
|
||||||
|
|
||||||
show_image
|
show_image
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
Return details about a specific image, that can
|
Return details about a specific image. This image can be used
|
||||||
be used to create a new instance.
|
to create a new instance.
|
||||||
|
|
||||||
.. code-block:: bash
|
.. code-block:: bash
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
'''
|
'''
|
||||||
TencentCloud Cloud Module
|
Tencent Cloud Cloud Module
|
||||||
=============================
|
=============================
|
||||||
|
|
||||||
.. versionadded:: 2019.09.01
|
.. versionadded:: 2019.09.01
|
||||||
|
|
||||||
The TencentCloud Cloud Module is used to control access to the TencentCloud instance.
|
The Tencent Cloud Cloud Module is used to control access to the Tencent Cloud instance.
|
||||||
https://intl.cloud.tencent.com/
|
https://intl.cloud.tencent.com/
|
||||||
|
|
||||||
To use this module, set up the cloud configuration at
|
To use this module, set up the cloud configuration at
|
||||||
|
@ -16,11 +16,11 @@ To use this module, set up the cloud configuration at
|
||||||
|
|
||||||
my-tencentcloud-config:
|
my-tencentcloud-config:
|
||||||
driver: tencentcloud
|
driver: tencentcloud
|
||||||
# TencentCloud Secret Id
|
# Tencent Cloud Secret Id
|
||||||
id: AKIDA64pOio9BMemkApzevX0HS169S4b750A
|
id: AKIDA64pOio9BMemkApzevX0HS169S4b750A
|
||||||
# TencentCloud Secret Key
|
# Tencent Cloud Secret Key
|
||||||
key: 8r2xmPn0C5FDvRAlmcJimiTZKVRsk260
|
key: 8r2xmPn0C5FDvRAlmcJimiTZKVRsk260
|
||||||
# TencentCloud Region
|
# Tencent Cloud Region
|
||||||
location: ap-guangzhou
|
location: ap-guangzhou
|
||||||
|
|
||||||
:depends: tencentcloud-sdk-python
|
:depends: tencentcloud-sdk-python
|
||||||
|
@ -68,13 +68,13 @@ log = logging.getLogger(__name__)
|
||||||
# The default region
|
# The default region
|
||||||
DEFAULT_REGION = 'ap-guangzhou'
|
DEFAULT_REGION = 'ap-guangzhou'
|
||||||
|
|
||||||
# The TencentCloud
|
# The Tencent Cloud
|
||||||
__virtualname__ = 'tencentcloud'
|
__virtualname__ = 'tencentcloud'
|
||||||
|
|
||||||
|
|
||||||
def __virtual__():
|
def __virtual__():
|
||||||
'''
|
'''
|
||||||
Only load in this module if the TencentCloud configurations are in place
|
Only load in this module if the Tencent Cloud configurations are in place
|
||||||
'''
|
'''
|
||||||
if get_configured_provider() is False:
|
if get_configured_provider() is False:
|
||||||
return False
|
return False
|
||||||
|
@ -134,7 +134,7 @@ def get_provider_client(name=None):
|
||||||
|
|
||||||
def avail_locations(call=None):
|
def avail_locations(call=None):
|
||||||
'''
|
'''
|
||||||
Return TencentCloud available region
|
Return Tencent Cloud available region
|
||||||
|
|
||||||
CLI Example:
|
CLI Example:
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ def avail_locations(call=None):
|
||||||
|
|
||||||
def avail_images(call=None):
|
def avail_images(call=None):
|
||||||
'''
|
'''
|
||||||
Return TencentCloud available image
|
Return Tencent Cloud available image
|
||||||
|
|
||||||
CLI Example:
|
CLI Example:
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ def avail_images(call=None):
|
||||||
|
|
||||||
def avail_sizes(call=None):
|
def avail_sizes(call=None):
|
||||||
'''
|
'''
|
||||||
Return TencentCloud available instance type
|
Return Tencent Cloud available instance type
|
||||||
|
|
||||||
CLI Example:
|
CLI Example:
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ def avail_sizes(call=None):
|
||||||
|
|
||||||
def list_securitygroups(call=None):
|
def list_securitygroups(call=None):
|
||||||
'''
|
'''
|
||||||
Return all TencentCloud security groups in current region
|
Return all Tencent Cloud security groups in current region
|
||||||
|
|
||||||
CLI Example:
|
CLI Example:
|
||||||
|
|
||||||
|
@ -254,7 +254,7 @@ def list_securitygroups(call=None):
|
||||||
|
|
||||||
def list_custom_images(call=None):
|
def list_custom_images(call=None):
|
||||||
'''
|
'''
|
||||||
Return all TencentCloud images in current region
|
Return all Tencent Cloud images in current region
|
||||||
|
|
||||||
CLI Example:
|
CLI Example:
|
||||||
|
|
||||||
|
@ -272,7 +272,7 @@ def list_custom_images(call=None):
|
||||||
|
|
||||||
def list_availability_zones(call=None):
|
def list_availability_zones(call=None):
|
||||||
'''
|
'''
|
||||||
Return all TencentCloud availability zones in current region
|
Return all Tencent Cloud availability zones in current region
|
||||||
|
|
||||||
CLI Example:
|
CLI Example:
|
||||||
|
|
||||||
|
@ -407,9 +407,9 @@ def list_nodes_min(call=None):
|
||||||
|
|
||||||
def create(vm_):
|
def create(vm_):
|
||||||
'''
|
'''
|
||||||
Create a single TencentCloud instance from a data dict.
|
Create a single Tencent Cloud instance from a data dict.
|
||||||
|
|
||||||
TencentCloud profiles require a ``provider``, ``availability_zone``, ``image`` and ``size``.
|
Tencent Cloud profiles require a ``provider``, ``availability_zone``, ``image`` and ``size``.
|
||||||
Set up profile at ``/etc/salt/cloud.profiles`` or ``/etc/salt/cloud.profiles.d/*.conf``:
|
Set up profile at ``/etc/salt/cloud.profiles`` or ``/etc/salt/cloud.profiles.d/*.conf``:
|
||||||
|
|
||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
@ -610,7 +610,7 @@ def create(vm_):
|
||||||
|
|
||||||
def start(name, call=None):
|
def start(name, call=None):
|
||||||
'''
|
'''
|
||||||
Start a TencentCloud instance
|
Start a Tencent Cloud instance
|
||||||
Notice: the instance state must be stopped
|
Notice: the instance state must be stopped
|
||||||
|
|
||||||
CLI Examples:
|
CLI Examples:
|
||||||
|
@ -636,7 +636,7 @@ def start(name, call=None):
|
||||||
|
|
||||||
def stop(name, force=False, call=None):
|
def stop(name, force=False, call=None):
|
||||||
'''
|
'''
|
||||||
Stop a TencentCloud running instance
|
Stop a Tencent Cloud running instance
|
||||||
Note: use `force=True` to make force stop
|
Note: use `force=True` to make force stop
|
||||||
|
|
||||||
CLI Examples:
|
CLI Examples:
|
||||||
|
@ -665,7 +665,7 @@ def stop(name, force=False, call=None):
|
||||||
|
|
||||||
def reboot(name, call=None):
|
def reboot(name, call=None):
|
||||||
'''
|
'''
|
||||||
Reboot a TencentCloud instance
|
Reboot a Tencent Cloud instance
|
||||||
|
|
||||||
CLI Examples:
|
CLI Examples:
|
||||||
|
|
||||||
|
@ -690,7 +690,7 @@ def reboot(name, call=None):
|
||||||
|
|
||||||
def destroy(name, call=None):
|
def destroy(name, call=None):
|
||||||
'''
|
'''
|
||||||
Destroy a TencentCloud instance
|
Destroy a Tencent Cloud instance
|
||||||
|
|
||||||
CLI Example:
|
CLI Example:
|
||||||
|
|
||||||
|
@ -748,7 +748,7 @@ def script(vm_):
|
||||||
|
|
||||||
def show_image(kwargs, call=None):
|
def show_image(kwargs, call=None):
|
||||||
'''
|
'''
|
||||||
Show the details of TencentCloud image
|
Show the details of Tencent Cloud image
|
||||||
|
|
||||||
CLI Examples:
|
CLI Examples:
|
||||||
|
|
||||||
|
@ -796,7 +796,7 @@ def show_image(kwargs, call=None):
|
||||||
|
|
||||||
def show_instance(name, call=None):
|
def show_instance(name, call=None):
|
||||||
'''
|
'''
|
||||||
Show the details of TencentCloud instance
|
Show the details of Tencent Cloud instance
|
||||||
|
|
||||||
CLI Examples:
|
CLI Examples:
|
||||||
|
|
||||||
|
@ -820,7 +820,7 @@ def show_instance(name, call=None):
|
||||||
|
|
||||||
def show_disk(name, call=None):
|
def show_disk(name, call=None):
|
||||||
'''
|
'''
|
||||||
Show the disk details of TencentCloud instance
|
Show the disk details of Tencent Cloud instance
|
||||||
|
|
||||||
CLI Examples:
|
CLI Examples:
|
||||||
|
|
||||||
|
@ -859,7 +859,7 @@ def show_disk(name, call=None):
|
||||||
|
|
||||||
def _get_node(name):
|
def _get_node(name):
|
||||||
'''
|
'''
|
||||||
Return TencentCloud instance detail by name
|
Return Tencent Cloud instance detail by name
|
||||||
'''
|
'''
|
||||||
attempts = 5
|
attempts = 5
|
||||||
while attempts >= 0:
|
while attempts >= 0:
|
||||||
|
@ -883,7 +883,7 @@ def _get_node(name):
|
||||||
|
|
||||||
def _get_nodes():
|
def _get_nodes():
|
||||||
'''
|
'''
|
||||||
Return all list of TencentCloud instances
|
Return all list of Tencent Cloud instances
|
||||||
'''
|
'''
|
||||||
ret = []
|
ret = []
|
||||||
offset = 0
|
offset = 0
|
||||||
|
@ -906,7 +906,7 @@ def _get_nodes():
|
||||||
|
|
||||||
def _get_images(image_type):
|
def _get_images(image_type):
|
||||||
'''
|
'''
|
||||||
Return all list of TencentCloud images
|
Return all list of Tencent Cloud images
|
||||||
'''
|
'''
|
||||||
client = get_provider_client("cvm_client")
|
client = get_provider_client("cvm_client")
|
||||||
req = cvm_models.DescribeImagesRequest()
|
req = cvm_models.DescribeImagesRequest()
|
||||||
|
@ -1007,7 +1007,7 @@ def __get_availability_zone(vm_):
|
||||||
|
|
||||||
def __get_location(vm_):
|
def __get_location(vm_):
|
||||||
'''
|
'''
|
||||||
Return the TencentCloud region to use, in this order:
|
Return the Tencent Cloud region to use, in this order:
|
||||||
- CLI parameter
|
- CLI parameter
|
||||||
- VM parameter
|
- VM parameter
|
||||||
- Cloud profile setting
|
- Cloud profile setting
|
||||||
|
|
|
@ -24,7 +24,7 @@ PROVIDER_NAME = 'tencentcloud'
|
||||||
@expensiveTest
|
@expensiveTest
|
||||||
class TencentCloudTest(ShellCase):
|
class TencentCloudTest(ShellCase):
|
||||||
'''
|
'''
|
||||||
Integration tests for the TencentCloud cloud provider in Salt-Cloud
|
Integration tests for the Tencent Cloud cloud provider in Salt-Cloud
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
@ -66,7 +66,7 @@ class TencentCloudTest(ShellCase):
|
||||||
|
|
||||||
def test_instance(self):
|
def test_instance(self):
|
||||||
'''
|
'''
|
||||||
Test creating an instance on TencentCloud
|
Test creating an instance on Tencent Cloud
|
||||||
'''
|
'''
|
||||||
# check if instance with salt installed returned
|
# check if instance with salt installed returned
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -1209,8 +1209,9 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
'id': 'a-tencentcloud-id',
|
'id': 'a-tencentcloud-id',
|
||||||
'key': 'a-tencentcloud-key',
|
'key': 'a-tencentcloud-key',
|
||||||
'location': 'ap-guangzhou',
|
'location': 'ap-guangzhou',
|
||||||
'driver': 'tencentcloud'
|
'driver': 'tencentcloud',
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
'conf_file': PATH
|
'conf_file': PATH
|
||||||
}
|
}
|
||||||
ret = {
|
ret = {
|
||||||
|
@ -1236,7 +1237,7 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
'key': 'a-tencentcloud-key',
|
'key': 'a-tencentcloud-key',
|
||||||
'location': 'ap-guangzhou',
|
'location': 'ap-guangzhou',
|
||||||
'profiles': {},
|
'profiles': {},
|
||||||
'driver': 'tencentcloud'
|
'driver': 'tencentcloud',
|
||||||
},
|
},
|
||||||
'ec2': {
|
'ec2': {
|
||||||
'profiles': {},
|
'profiles': {},
|
||||||
|
@ -1244,9 +1245,9 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
'key': 'supersecretkeysupersecretkey',
|
'key': 'supersecretkeysupersecretkey',
|
||||||
'driver': 'ec2',
|
'driver': 'ec2',
|
||||||
'id': 'ABCDEFGHIJKLMNOP',
|
'id': 'ABCDEFGHIJKLMNOP',
|
||||||
'user': 'user@mycorp.com'
|
'user': 'user@mycorp.com',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
self.assertEqual(ret,
|
self.assertEqual(ret,
|
||||||
salt.config.apply_cloud_providers_config(
|
salt.config.apply_cloud_providers_config(
|
||||||
|
@ -1270,8 +1271,9 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
'extends': 'my-dev-envs:tencentcloud',
|
'extends': 'my-dev-envs:tencentcloud',
|
||||||
'id': 'new-id',
|
'id': 'new-id',
|
||||||
'key': 'new-key',
|
'key': 'new-key',
|
||||||
'location': 'ap-beijing'
|
'location': 'ap-beijing',
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
'my-dev-envs': [{
|
'my-dev-envs': [{
|
||||||
'id': 'ABCDEFGHIJKLMNOP',
|
'id': 'ABCDEFGHIJKLMNOP',
|
||||||
'user': 'user@mycorp.com',
|
'user': 'user@mycorp.com',
|
||||||
|
@ -1286,8 +1288,9 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
'id': 'the-tencentcloud-id',
|
'id': 'the-tencentcloud-id',
|
||||||
'location': 'ap-beijing',
|
'location': 'ap-beijing',
|
||||||
'key': 'the-tencentcloud-key',
|
'key': 'the-tencentcloud-key',
|
||||||
'driver': 'tencentcloud'
|
'driver': 'tencentcloud',
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
'conf_file': PATH}
|
'conf_file': PATH}
|
||||||
ret = {
|
ret = {
|
||||||
'my-production-envs': {
|
'my-production-envs': {
|
||||||
|
@ -1311,8 +1314,8 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
'key': 'new-key',
|
'key': 'new-key',
|
||||||
'location': 'ap-beijing',
|
'location': 'ap-beijing',
|
||||||
'profiles': {},
|
'profiles': {},
|
||||||
'driver': 'tencentcloud'
|
'driver': 'tencentcloud',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
'my-dev-envs': {
|
'my-dev-envs': {
|
||||||
'linode': {
|
'linode': {
|
||||||
|
@ -1334,9 +1337,9 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
'key': 'the-tencentcloud-key',
|
'key': 'the-tencentcloud-key',
|
||||||
'location': 'ap-beijing',
|
'location': 'ap-beijing',
|
||||||
'profiles': {},
|
'profiles': {},
|
||||||
'driver': 'tencentcloud'
|
'driver': 'tencentcloud',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
self.assertEqual(ret, salt.config.apply_cloud_providers_config(
|
self.assertEqual(ret, salt.config.apply_cloud_providers_config(
|
||||||
>>>>>>> de3fd871dc... add tencentcloud testing
|
>>>>>>> de3fd871dc... add tencentcloud testing
|
||||||
|
@ -1378,8 +1381,9 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
}, {
|
}, {
|
||||||
'extends': 'my-dev-envs:tencentcloud',
|
'extends': 'my-dev-envs:tencentcloud',
|
||||||
'location': 'ap-shanghai',
|
'location': 'ap-shanghai',
|
||||||
'id': 'the-tencentcloud-id'
|
'id': 'the-tencentcloud-id',
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
'my-dev-envs': [{
|
'my-dev-envs': [{
|
||||||
'id': 'ABCDEFGHIJKLMNOP',
|
'id': 'ABCDEFGHIJKLMNOP',
|
||||||
'user': 'user@mycorp.com',
|
'user': 'user@mycorp.com',
|
||||||
|
@ -1405,8 +1409,9 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
}, {
|
}, {
|
||||||
'extends': 'my-dev-envs:tencentcloud',
|
'extends': 'my-dev-envs:tencentcloud',
|
||||||
'location': 'ap-shanghai',
|
'location': 'ap-shanghai',
|
||||||
'id': 'the-tencentcloud-id'
|
'id': 'the-tencentcloud-id',
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
'my-dev-envs': [{
|
'my-dev-envs': [{
|
||||||
'id': 'ABCDEFGHIJKLMNOP',
|
'id': 'ABCDEFGHIJKLMNOP',
|
||||||
'user': 'user@mycorp.com',
|
'user': 'user@mycorp.com',
|
||||||
|
@ -1440,8 +1445,9 @@ class ConfigTestCase(TestCase, AdaptedConfigurationTestCaseMixin):
|
||||||
'id': 'a-tencentcloud-id',
|
'id': 'a-tencentcloud-id',
|
||||||
'key': 'a-tencentcloud-key',
|
'key': 'a-tencentcloud-key',
|
||||||
'location': 'ap-guangzhou',
|
'location': 'ap-guangzhou',
|
||||||
'driver': 'tencentcloud'
|
'driver': 'tencentcloud',
|
||||||
}],
|
},
|
||||||
|
],
|
||||||
'conf_file': PATH}
|
'conf_file': PATH}
|
||||||
self.assertRaises(SaltCloudConfigError,
|
self.assertRaises(SaltCloudConfigError,
|
||||||
salt.config.apply_cloud_providers_config,
|
salt.config.apply_cloud_providers_config,
|
||||||
|
|
Loading…
Add table
Reference in a new issue