1
0

joyent.rst 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. ===========================
  2. Getting Started With Joyent
  3. ===========================
  4. Joyent is a public cloud host that supports SmartOS, Linux, FreeBSD, and
  5. Windows.
  6. Dependencies
  7. ============
  8. This driver requires the Python ``requests`` library to be installed.
  9. Configuration
  10. =============
  11. The Joyent cloud requires three configuration parameters. The user name and
  12. password that are used to log into the Joyent system, and the location of the
  13. private ssh key associated with the Joyent account. The ssh key is needed to
  14. send the provisioning commands up to the freshly created virtual machine.
  15. .. code-block:: yaml
  16. # Note: This example is for /etc/salt/cloud.providers or any file in the
  17. # /etc/salt/cloud.providers.d/ directory.
  18. my-joyent-config:
  19. driver: joyent
  20. user: fred
  21. password: saltybacon
  22. private_key: /root/mykey.pem
  23. keyname: mykey
  24. .. note::
  25. .. versionchanged:: 2015.8.0
  26. The ``provider`` parameter in cloud provider definitions was renamed to ``driver``. This
  27. change was made to avoid confusion with the ``provider`` parameter that is used in cloud profile
  28. definitions. Cloud provider definitions now use ``driver`` to refer to the Salt cloud module that
  29. provides the underlying functionality to connect to a cloud host, while cloud profiles continue
  30. to use ``provider`` to refer to provider configurations that you define.
  31. Profiles
  32. ========
  33. Cloud Profiles
  34. ~~~~~~~~~~~~~~
  35. Set up an initial profile at ``/etc/salt/cloud.profiles`` or in the
  36. ``/etc/salt/cloud.profiles.d/`` directory:
  37. .. code-block:: yaml
  38. joyent_512:
  39. provider: my-joyent-config
  40. size: g4-highcpu-512M
  41. image: ubuntu-16.04
  42. Sizes can be obtained using the ``--list-sizes`` option for the ``salt-cloud``
  43. command:
  44. .. code-block:: bash
  45. # salt-cloud --list-sizes my-joyent-config
  46. my-joyent-config:
  47. ----------
  48. joyent:
  49. ----------
  50. g4-highcpu-512M:
  51. ----------
  52. default:
  53. False
  54. description:
  55. Compute Optimized 512M RAM - 1 vCPU - 10 GB Disk
  56. disk:
  57. 10240
  58. group:
  59. Compute Optimized
  60. id:
  61. 14aea8fc-d0f8-11e5-bfe4-a7458dbc6c99
  62. lwps:
  63. 4000
  64. memory:
  65. 512
  66. name:
  67. g4-highcpu-512M
  68. swap:
  69. 2048
  70. vcpus:
  71. 0
  72. version:
  73. 1.0.3
  74. ...SNIP...
  75. Images can be obtained using the ``--list-images`` option for the ``salt-cloud``
  76. command:
  77. .. code-block:: bash
  78. # salt-cloud --list-images my-joyent-config
  79. my-joyent-config:
  80. ----------
  81. joyent:
  82. ----------
  83. base:
  84. ----------
  85. description:
  86. A 32-bit SmartOS image with just essential packages
  87. installed. Ideal for users who are comfortabl e with
  88. setting up their own environment and tools.
  89. files:
  90. |_
  91. ----------
  92. compression:
  93. gzip
  94. sha1:
  95. b00a77408ddd9aeac85085b68b1cd22a07353956
  96. size:
  97. 106918297
  98. homepage:
  99. http://wiki.joyent.com/jpc2/Base+Instance
  100. id:
  101. 00aec452-6e81-11e4-8474-ebfec9a1a911
  102. name:
  103. base
  104. os:
  105. smartos
  106. owner:
  107. 9dce1460-0c4c-4417-ab8b-25ca478c5a78
  108. public:
  109. True
  110. published_at:
  111. 2014-11-17T17:41:46Z
  112. requirements:
  113. ----------
  114. state:
  115. active
  116. type:
  117. smartmachine
  118. version:
  119. 14.3.0
  120. ...SNIP...
  121. SmartDataCenter
  122. ===============
  123. This driver can also be used with the Joyent SmartDataCenter project. More
  124. details can be found at:
  125. .. _`SmartDataCenter`: https://github.com/joyent/sdc
  126. Using SDC requires that an api_host_suffix is set. The default value for this is
  127. `.api.joyentcloud.com`. All characters, including the leading `.`, should be
  128. included:
  129. .. code-block:: yaml
  130. api_host_suffix: .api.myhostname.com
  131. Miscellaneous Configuration
  132. ===========================
  133. The following configuration items can be set in either ``provider`` or
  134. ``profile`` confuration files.
  135. use_ssl
  136. ~~~~~~~
  137. When set to ``True`` (the default), attach ``https://`` to any URL that does not
  138. already have ``http://`` or ``https://`` included at the beginning. The best
  139. practice is to leave the protocol out of the URL, and use this setting to manage
  140. it.
  141. verify_ssl
  142. ~~~~~~~~~~
  143. When set to ``True`` (the default), the underlying web library will verify the
  144. SSL certificate. This should only be set to ``False`` for debugging.`