1
0

scaleway.rst 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. =============================
  2. Getting Started With Scaleway
  3. =============================
  4. Scaleway is the first IaaS host worldwide to offer an ARM based cloud. It’s the ideal platform for horizontal scaling with BareMetal SSD servers. The solution provides on demand resources: it comes with on-demand SSD storage, movable IPs , images, security group and an Object Storage solution. https://scaleway.com
  5. Configuration
  6. =============
  7. Using Salt for Scaleway, requires an ``access key`` and an ``API token``. ``API tokens`` are unique identifiers associated with your Scaleway account.
  8. To retrieve your ``access key`` and ``API token``, log-in to the Scaleway control panel, open the pull-down menu on your account name and click on "My Credentials" link.
  9. If you do not have API token you can create one by clicking the "Create New Token" button on the right corner.
  10. .. code-block:: yaml
  11. # Note: This example is for /etc/salt/cloud.providers or any file in the
  12. # /etc/salt/cloud.providers.d/ directory.
  13. my-scaleway-config:
  14. access_key: 15cf404d-4560-41b1-9a0c-21c3d5c4ff1f
  15. token: a7347ec8-5de1-4024-a5e3-24b77d1ba91d
  16. driver: scaleway
  17. .. note::
  18. .. versionchanged:: 2015.8.0
  19. The ``provider`` parameter in cloud provider definitions was renamed to ``driver``. This
  20. change was made to avoid confusion with the ``provider`` parameter that is used in cloud profile
  21. definitions. Cloud provider definitions now use ``driver`` to refer to the Salt cloud module that
  22. provides the underlying functionality to connect to a cloud host, while cloud profiles continue
  23. to use ``provider`` to refer to provider configurations that you define.
  24. Profiles
  25. ========
  26. Cloud Profiles
  27. ~~~~~~~~~~~~~~
  28. Set up an initial profile at /etc/salt/cloud.profiles or in the /etc/salt/cloud.profiles.d/ directory:
  29. .. code-block:: yaml
  30. scaleway-ubuntu:
  31. provider: my-scaleway-config
  32. image: Ubuntu Trusty (14.04 LTS)
  33. Images can be obtained using the ``--list-images`` option for the ``salt-cloud`` command:
  34. .. code-block:: console
  35. #salt-cloud --list-images my-scaleway-config
  36. my-scaleway-config:
  37. ----------
  38. scaleway:
  39. ----------
  40. 069fd876-eb04-44ab-a9cd-47e2fa3e5309:
  41. ----------
  42. arch:
  43. arm
  44. creation_date:
  45. 2015-03-12T09:35:45.764477+00:00
  46. default_bootscript:
  47. {u'kernel': {u'dtb': u'', u'title': u'Pimouss 3.2.34-30-std', u'id': u'cfda4308-cd6f-4e51-9744-905fc0da370f', u'path': u'kernel/pimouss-uImage-3.2.34-30-std'}, u'title': u'3.2.34-std #30 (stable)', u'id': u'c5af0215-2516-4316-befc-5da1cfad609c', u'initrd': {u'path': u'initrd/c1-uInitrd', u'id': u'1be14b1b-e24c-48e5-b0b6-7ba452e42b92', u'title': u'C1 initrd'}, u'bootcmdargs': {u'id': u'd22c4dde-e5a4-47ad-abb9-d23b54d542ff', u'value': u'ip=dhcp boot=local root=/dev/nbd0 USE_XNBD=1 nbd.max_parts=8'}, u'organization': u'11111111-1111-4111-8111-111111111111', u'public': True}
  48. extra_volumes:
  49. []
  50. id:
  51. 069fd876-eb04-44ab-a9cd-47e2fa3e5309
  52. modification_date:
  53. 2015-04-24T12:02:16.820256+00:00
  54. name:
  55. Ubuntu Vivid (15.04)
  56. organization:
  57. a283af0b-d13e-42e1-a43f-855ffbf281ab
  58. public:
  59. True
  60. root_volume:
  61. {u'name': u'distrib-ubuntu-vivid-2015-03-12_10:32-snapshot', u'id': u'a6d02e63-8dee-4bce-b627-b21730f35a05', u'volume_type': u'l_ssd', u'size': 50000000000L}
  62. ...
  63. Execute a query and return all information about the nodes running on configured cloud providers using the ``-Q`` option for the ``salt-cloud`` command:
  64. .. code-block:: console
  65. # salt-cloud -F
  66. [INFO ] salt-cloud starting
  67. [INFO ] Starting new HTTPS connection (1): api.scaleway.com
  68. my-scaleway-config:
  69. ----------
  70. scaleway:
  71. ----------
  72. salt-manager:
  73. ----------
  74. creation_date:
  75. 2015-06-03T08:17:38.818068+00:00
  76. hostname:
  77. salt-manager
  78. ...
  79. .. note::
  80. Additional documentation about Scaleway can be found at `<https://www.scaleway.com/docs>`_.