0.8.6.rst 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. ==============================
  2. Salt Cloud 0.8.6 Release Notes
  3. ==============================
  4. Welcome to 0.8.6! This is an exciting release, especially for EC2 users. To see
  5. what new features are available, read on.
  6. Documentation
  7. =============
  8. The documentation for Salt Cloud can be found on Read the Docs:
  9. https://salt-cloud.readthedocs.io
  10. Download
  11. ========
  12. Salt Cloud can be downloaded and install via pypi:
  13. https://pypi.python.org/packages/source/s/salt-cloud/salt-cloud-0.8.6.tar.gz
  14. Some packages have been made available for salt-cloud and more on their
  15. way. Packages for Arch and FreeBSD are being made available thanks to the
  16. work of Christer Edwards, and packages for RHEL and Fedora are being created
  17. by Clint Savage. The Ubuntu PPA is being managed by Sean Channel. Package
  18. availability will be announced on the salt mailing list.
  19. Updated libcloud
  20. ================
  21. This version of Salt Cloud now depends upon libcloud version 0.12.1. Be sure to
  22. update your packages accordingly.
  23. Salt Outputter
  24. ==============
  25. Previously, output from Salt Cloud was a mix of log output and print
  26. statements, while the Salt outputter system has grown into a beautiful,
  27. configurable tool. This release of Salt Cloud now takes advantage of the Salt
  28. outputter system, making the output from the salt-cloud command much more
  29. beautiful, easy to read, and usable from other scripts.
  30. Experimental EC2 Driver
  31. =======================
  32. A new driver has been introduced for Amazon EC2, to potentially replace the
  33. existing AWS driver. This driver contains several optimizations which have been
  34. found to greatly improve instance creation and deployment. They also allow for
  35. extra functionality to be added, which is not currently available in the AWS
  36. driver. However, it should be noted that the EC2 driver is currently considered
  37. to be experiemental. While existing AWS usage should not currently differ, it
  38. should be expected to change between versions until it is declared stable.
  39. Many of the features of this release are specific to the EC2 driver. Please
  40. check the AWS documentation for configuration and usage of the EC2 driver.
  41. AWS/EC2 Rename on Destroy
  42. =========================
  43. When instances on AWS are destroyed, there will be a lag between the time that
  44. the action is sent, and the time that Amazon cleans up the instance. During this
  45. time, the instance still retails a Name tag, which will cause a collision if the
  46. creation of an instance with the same name is attempted before the cleanup
  47. occurs. In order to avoid such collisions, Salt Cloud can be configured to
  48. rename instances when they are destroyed. The new name will look something like:
  49. .. code-block:: bash
  50. myinstance-DEL20f5b8ad4eb64ed88f2c428df80a1a0c
  51. In order to enable this, add AWS.rename_on_destroy line to the main
  52. configuration file:
  53. .. code-block:: yaml
  54. AWS.rename_on_destroy: True
  55. New Action: show_instance
  56. =========================
  57. This action is a thin wrapper around --full-query, which displays details on a
  58. single instance only. In an environment with several machines, this will save a
  59. user from having to sort through all instance data, just to examine a single
  60. instance.
  61. .. code-block:: bash
  62. $ salt-cloud -a show_instance myinstance
  63. Actions vs Functions
  64. ====================
  65. Salt Cloud 0.8.3 introduced the concept of provider-specific actions. However,
  66. these actions were designed to operate on specific instances within a provider.
  67. In order to perform calls on a provider, but not on specific instances,
  68. functions have been added. Currently, only EC2 takes advantage of these.
  69. New Function: show_image
  70. ========================
  71. This is a function that describes an AMI on EC2. This will give insight as to
  72. the defaults that will be applied to an instance using a particular AMI.
  73. .. code-block:: bash
  74. $ salt-cloud -f show_image ec2 image=ami-fd20ad94
  75. EC2: delvol_on_destroy
  76. ======================
  77. This argument overrides the default DeleteOnTermination setting in the AMI for
  78. the root EBS volume for an instance. Many AMIs contain 'false' as a default,
  79. resulting in orphaned volumes in the EC2 account, which may unknowingly be
  80. charged to the account. This setting can be added to the profile or map file
  81. for an instance.
  82. .. code-block:: yaml
  83. delvol_on_destroy: True
  84. This can also be set as a global setting in the EC2 cloud configuration:
  85. .. code-block:: yaml
  86. EC2.delvol_on_destroy: True
  87. The setting for this may be changed on an existing instance using one of the
  88. following commands:
  89. .. code-block:: bash
  90. salt-cloud -a delvol_on_destroy myinstance
  91. salt-cloud -a keepvol_on_destroy myinstance
  92. EC2 Termination Protection
  93. ==========================
  94. AWS allows the user to enable and disable termination protection on a specific
  95. instance. An instance with this protection enabled cannot be destroyed. The EC2
  96. driver adds a show_term_protect action to the regular AWS functionality.
  97. .. code-block:: bash
  98. salt-cloud -a show_term_protect mymachine
  99. salt-cloud -a enable_term_protect mymachine
  100. salt-cloud -a disable_term_protect mymachine
  101. EC2 Alternate Endpoint
  102. ======================
  103. Normally, ec2 endpoints are build using the region and the service_url. The
  104. resulting endpoint would follow this pattern:
  105. .. code-block:: yaml
  106. ec2.<region>.<service_url>
  107. This results in an endpoint that looks like:
  108. .. code-block:: yaml
  109. ec2.us-east-1.amazonaws.com
  110. There are other projects that support an EC2 compatibility layer, which this
  111. scheme does not account for. This can be overridden by specifying the endpoint
  112. directly in the main cloud configuration file:
  113. .. code-block:: yaml
  114. EC2.endpoint: myendpoint.example.com:1138/services/Cloud
  115. EC2 Volume Management
  116. =====================
  117. The EC2 driver has several functions and actions for management of EBS volumes.
  118. Creating Volumes
  119. ----------------
  120. A volume may be created, independent of an instance. A zone must be specified.
  121. A size or a snapshot may be specified (in GiB). If neither is given, a default
  122. size of 10 GiB will be used. If a snapshot is given, the size of the snapshot
  123. will be used.
  124. .. code-block:: bash
  125. salt-cloud -f create_volume ec2 zone=us-east-1b
  126. salt-cloud -f create_volume ec2 zone=us-east-1b size=10
  127. salt-cloud -f create_volume ec2 zone=us-east-1b snapshot=snap12345678
  128. Attaching Volumes
  129. -----------------
  130. Unattached volumes may be attached to an instance. The following values are
  131. required: name or instance_id, volume_id, and device.
  132. .. code-block:: bash
  133. salt-cloud -a attach_volume myinstance volume_id=vol-12345 device=/dev/sdb1
  134. Show a Volume
  135. -------------
  136. The details about an existing volume may be retrieved.
  137. .. code-block:: bash
  138. salt-cloud -a show_volume myinstance volume_id=vol-12345
  139. salt-cloud -f show_volume ec2 volume_id=vol-12345
  140. Detaching Volumes
  141. -----------------
  142. An existing volume may be detached from an instance.
  143. .. code-block:: bash
  144. salt-cloud -a detach_volume myinstance volume_id=vol-12345
  145. Deleting Volumes
  146. ----------------
  147. A volume that is not attached to an instance may be deleted.
  148. .. code-block:: bash
  149. salt-cloud -f delete_volume ec2 volume_id=vol-12345
  150. Managing Key Pairs on EC2
  151. =========================
  152. The EC2 driver has the ability to manage key pairs.
  153. Creating a Key Pair
  154. -------------------
  155. A key pair is required in order to create an instance. When creating a key pair
  156. with this function, the return data will contain a copy of the private key.
  157. This private key is not stored by Amazon, and will not be obtainable past this
  158. point, and should be stored immediately.
  159. .. code-block:: bash
  160. salt-cloud -f create_keypair ec2 keyname=mykeypair
  161. Show a Key Pair
  162. ---------------
  163. This function will show the details related to a key pair, not including the
  164. private key itself (which is not stored by Amazon).
  165. .. code-block:: bash
  166. salt-cloud -f delete_keypair ec2 keyname=mykeypair
  167. Delete a Key Pair
  168. -----------------
  169. This function removes the key pair from Amazon.
  170. .. code-block:: bash
  171. salt-cloud -f delete_keypair ec2 keyname=mykeypair