File: exoscale.rst

package info (click to toggle)
cloud-init 25.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,412 kB
  • sloc: python: 135,894; sh: 3,883; makefile: 141; javascript: 30; xml: 22
file content (83 lines) | stat: -rw-r--r-- 2,483 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
.. _datasource_exoscale:

Exoscale
********

This datasource supports reading from the instance metadata server (IMDS) used
on the `Exoscale platform`_. Use of the Exoscale datasource is recommended to
benefit from new features of the Exoscale platform.

The datasource relies on the availability of a compatible IMDS
(``http://169.254.169.254`` is used by default) and its companion password
server, reachable at the same address (by default on port 8080).

Crawling the datasource
=======================

The IMDS and password server are crawled slightly differently:

* The IMDS is crawled every boot.
* The password server is also crawled every boot (the Exoscale datasource
  forces the password module to run with "frequency always").

In the password server case, the following rules apply in order to enable the
"restore instance password" functionality:

* If a password is returned by the password server, it is then marked "saved"
  by the ``cloud-init`` datasource. Subsequent boots will skip setting the
  password (the password server will return ``saved_password``).
* When the instance password is reset (via the Exoscale UI), the password
  server will return the non-empty password at next boot, therefore causing
  ``cloud-init`` to reset the instance's password.

Configuration
=============

Users of this datasource are discouraged from changing the default settings
unless instructed to by Exoscale support.

The following settings are available and can be set for the
:ref:`datasource base configuration<base_config-Datasource>`
(in :file:`/etc/cloud/cloud.cfg.d/`).

The settings available are:

* ``metadata_url``: The URL for the IMDS.

  Defaults to ``http://169.254.169.254``.

* ``api_version``: The API version path on which to query the instance
  metadata.

  Defaults to ``1.0``.

* ``password_server_port``: The port (on the IMDS) on which the
  password server listens.

  Defaults to ``8080``.

* ``timeout``: The timeout value provided to ``urlopen`` for each individual
  http request.

  Defaults to ``10``.

* ``retries``: The number of retries that should be done for a http request.

  Defaults to ``6``.

Example
-------

An example configuration with the default values is provided below:

.. code-block:: yaml

    datasource:
      Exoscale:
        metadata_url: "http://169.254.169.254"
        api_version: "1.0"
        password_server_port: 8080
        timeout: 10
        retries: 6

.. _Exoscale platform: https://exoscale.com