File: zstack.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 (36 lines) | stat: -rw-r--r-- 866 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
.. _datasource_zstack:

ZStack
******

ZStack platform provides an AWS EC2 instance metadata service, but with
different datasource identity. More information about ZStack can be found at
`ZStack`_.

Discovery
=========

To determine whether a VM is running on the ZStack platform, ``cloud-init``
checks DMI information via ``dmidecode -s chassis-asset-tag``. If the output
ends with ``.zstack.io``, it's running on the ZStack platform.

Instance Metadata Service
-------------------------

The same way as with EC2, instance-data can be queried at: ::

    GET http://169.254.169.254/2009-04-04/meta-data/
    instance-id
    local-hostname

User-data
---------

The same way as with EC2, instance user-data can be queried at: ::

    GET http://169.254.169.254/2009-04-04/user-data/
    meta_data.json
    user_data
    password

.. _ZStack: https://www.zstack.io