1
0

0.8.7.rst 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. ==============================
  2. Salt Cloud 0.8.7 Release Notes
  3. ==============================
  4. Welcome to 0.8.7! This is a landmark release which adds two new cloud providers,
  5. one pseudo cloud provider, and an exciting, flexible new configuration format!
  6. Don't worry, the old config format will still work, and you can wait to migrate
  7. to the new format when you're ready. However, the old and new formats are not
  8. compatible, so don't try and mix them.
  9. We would like to extend a special thanks to the folks at X-Mission for granting
  10. us access to their cloud so that we could develop the Parallels driver! Without
  11. their help, this driver would not exist. Please take a moment to take a look at
  12. their cloud offering:
  13. https://xmission.com/cloud_hosting
  14. We would also like to thank DigitalOcean for their help and resources while
  15. developing the driver for their cloud offering. The folks over there have been
  16. very friendly and helpful! Please take a moment to check them out:
  17. https://www.digitalocean.com/
  18. For more details, read on!
  19. Documentation
  20. =============
  21. The documentation for Salt Cloud can be found on Read the Docs:
  22. https://salt-cloud.readthedocs.io
  23. Download
  24. ========
  25. Salt Cloud can be downloaded and install via pypi:
  26. https://pypi.python.org/packages/source/s/salt-cloud/salt-cloud-0.8.7.tar.gz
  27. Some packages have been made available for salt-cloud and more on their
  28. way. Packages for Arch and FreeBSD are being made available thanks to the
  29. work of Christer Edwards, and packages for RHEL and Fedora are being created
  30. by Clint Savage. The Ubuntu PPA is being managed by Sean Channel. Package
  31. availability will be announced on the salt mailing list.
  32. Added Parallels Support
  33. =======================
  34. As mentioned above, X-Mission was kind enough to lend us the resources to write
  35. a cloud driver for Parallels-based cloud providers. This driver requires only
  36. a ``user``, ``password``, and a ``url``. These can be obtained from your cloud
  37. provider.
  38. * Using the legacy configuration format:
  39. .. code-block:: yaml
  40. PARALLELS.user: myuser
  41. PARALLELS.password: xyzzy
  42. PARALLELS.url: https://api.cloud.xmission.com:4465/paci/v1.0/
  43. Added DigitalOcean Support
  44. ===========================
  45. DigitalOcean has been a highly-requested cloud provider, and we are pleased to
  46. be able to meet the demand. Only a ``client_key`` and an ``api_key`` are
  47. required for DigitalOcean.
  48. * Using the legacy configuration format:
  49. .. code-block:: yaml
  50. DIGITAL_OCEAN.client_key: wFGEwgregeqw3435gDger
  51. DIGITAL_OCEAN.api_key: GDE43t43REGTrkilg43934t34qT43t4dgegerGEgg
  52. Updated Configuration Format
  53. ============================
  54. This is a massive change that we have been wanting for months to add. We would
  55. like to extend special thanks to Pedro Algarvio (s0undt3ch) for his tireless
  56. efforts, which included significant changes to the codebase.
  57. The old configuration format will still function as before, so there is no
  58. pressure just yet to move over. However, the configuration formats are not
  59. compatible with each other, so when you're ready to switch over, make sure to
  60. switch everything over at once.
  61. Luckily, the changes are not difficult to get used to. The old format looked
  62. like the following:
  63. .. code-block:: yaml
  64. SOMEPROVIDER.option1: some_stuff
  65. SOMEPROVIDER.option2: some_other_stuff
  66. The new format for the above would look like:
  67. .. code-block:: yaml
  68. my_provider:
  69. option1: some_stuff
  70. option2: some_other_stuff
  71. provider: someprovider
  72. This update allows for multiple accounts using the same provider. For instance,
  73. if using multiple accounts with Amazon EC2, your configuration may look like:
  74. .. code-block:: yaml
  75. my-first-ec2:
  76. id: HJGRYCILJLKJYG
  77. key: 'kdjgfsgm;woormgl/aserigjksjdhasdfgn'
  78. keyname: test
  79. securitygroup: quick-start
  80. private_key: /root/test.pem
  81. provider: ec2
  82. my-second-ec2:
  83. id: LJLKJYGHJGRYCI
  84. key: 'rigjksjdhasdfgnkdjgfsgm;woormgl/ase'
  85. keyname: test
  86. securitygroup: quick-start
  87. private_key: /root/test.pem
  88. provider: ec2
  89. Profiles are then configured using the name of the configuration block, rather
  90. than the provider name. For instance:
  91. .. code-block:: yaml
  92. rhel-ec2:
  93. provider: my-second-ec2
  94. image: ami-e565ba8c
  95. size: Micro Instance
  96. Likewise, issuing commands will reference the name of the configuration block,
  97. rather than the provider name. For instance:
  98. .. code-block:: bash
  99. salt-cloud --list-sizes my-first-ec2
  100. This is critical for using multiple clouds, which use the same Salt Cloud
  101. driver. For instance, Salt Cloud has been gaining popularity for usage with
  102. private clouds utilizing OpenStack. The following two commands are likely to
  103. return different data:
  104. .. code-block:: bash
  105. salt-cloud --list-images openstack-hp
  106. salt-cloud --list-images openstack-rackspace
  107. Provider Aliases
  108. ================
  109. It is also possible to have multiple providers configured with the same name.
  110. This allows for similar environments across multiple providers to share the same
  111. name. For instance:
  112. .. code-block:: bash
  113. production-config:
  114. - id: HJGRYCILJLKJYG
  115. key: 'kdjgfsgm;woormgl/aserigjksjdhasdfgn'
  116. keyname: test
  117. securitygroup: quick-start
  118. private_key: /root/test.pem
  119. provider: aws
  120. - id: LJLKJYGHJGRYCI
  121. key: 'rigjksjdhasdfgnkdjgfsgm;woormgl/ase'
  122. keyname: test
  123. securitygroup: quick-start
  124. private_key: /root/test.pem
  125. provider: ec2
  126. With this configuration, you can then set up the following profiles:
  127. .. code-block:: bash
  128. development-instances:
  129. provider: production-config:aws
  130. size: Micro Instance
  131. ssh_username: ec2_user
  132. securitygroup: default
  133. staging-instances:
  134. provider: production-config:ec2
  135. size: Micro Instance
  136. ssh_username: ec2_user
  137. securitygroup: default
  138. Keep in mind that if there is only one configured provider with a specific name,
  139. you do not have to specify an alias. But if multiple are set up as above, you
  140. must use the aliased name.
  141. .. code-block:: bash
  142. salt-cloud --list-sizes production-config:ec2
  143. Extending Profiles
  144. ==================
  145. If using the new configuration format, you will have the ability to extend
  146. profile definitions. This can make profile configuration much easier to read and
  147. manage. For instance:
  148. .. code-block:: yaml
  149. development-instances:
  150. provider: my-ec2-config
  151. size: Micro Instance
  152. ssh_username: ec2_user
  153. securitygroup:
  154. - default
  155. deploy: False
  156. Amazon-Linux-AMI-2012.09-64bit:
  157. image: ami-54cf5c3d
  158. extends: development-instances
  159. Fedora-17:
  160. image: ami-08d97e61
  161. extends: development-instances
  162. CentOS-5:
  163. provider: my-aws-config
  164. image: ami-09b61d60
  165. extends: development-instances
  166. In this case, the CentOS-5 profile will in fact look like:
  167. .. code-block:: yaml
  168. CentOS-5:
  169. provider: my-aws-config
  170. size: Micro Instance
  171. ssh_username: ec2_user
  172. securitygroup:
  173. - default
  174. deploy: False
  175. image: ami-09b61d60
  176. Because it copied all of the configuration from ``development-instances``, and
  177. overrode the provider with a new provider.
  178. Extending Providers
  179. ===================
  180. If using the new configuration format, providers can be extended in the same
  181. way. For instance, the following will set up two different providers, each
  182. sharing some of the same configuration:
  183. .. code-block:: yaml
  184. my-develop-envs:
  185. - id: HJGRYCILJLKJYG
  186. key: 'kdjgfsgm;woormgl/aserigjksjdhasdfgn'
  187. keyname: test
  188. securitygroup: quick-start
  189. private_key: /root/test.pem
  190. location: ap-southeast-1
  191. availability_zone: ap-southeast-1b
  192. provider: aws
  193. - user: myuser@mycorp.com
  194. password: mypass
  195. ssh_key_name: mykey
  196. ssh_key_file: '/etc/salt/ibm/mykey.pem'
  197. location: Raleigh
  198. provider: ibmsce
  199. my-productions-envs:
  200. - extends: my-develop-envs:ibmsce
  201. user: my-production-user@mycorp.com
  202. location: us-east-1
  203. availability_zone: us-east-1