owned this note changed 7 years ago
Linked with GitHub

cloud-init platform identification

platform cloud_name subplatform? vendor followup
openstack onmetal configdrive () ??
openstack unknown metadata
openstack unknown seed-dir ??
openstack ovh # metadata
ec2 aws metadata amazon
ec2 aliyun metadata aliyun
ec2 brightbox metadata
nocloud unknown seed-dir
nocloud bobs-cloud2 config-disk ??
lxd unknown config-disk (/dev/sd0)
lxd unknown seed-dir (/var/lib/cloud/seed/no-cloud)
ovf unknown vmware
ovf unknown ovf

notes:

  • I don't love 'seed-dir', generally people wont see this. only
    common in the lxd case.

  • I'd like to properly identify 'lxd' and make its "subplatform"cloud_name:

cloud_name:
This is an attempt to identify the specific cloud platform
instance that the system is running on. For example a system
running on Amazon Web Services will have cloud_name='aws' and
platform_type='ec2'.

If a specific name is not provided by the platform or cannot
be obtained, then the platform_type will be used.

This should say 'unknown-openstack' for either openstack-configdrive or
openstack-metadata. If we could properly identify OVF (an openstack-md
cloud), then it should say 'ovh'.

be nocloud thoughts? Ultimately we expect an 'lxd' with subplatform
of 'dev-lxd'.

Cloud Regions Default Type Description
aws 15 us-east-1 ec2 Amazon Web Services
aws-china 1 cn-north-1 ec2 Amazon China
aws-gov 1 us-gov-west-1 ec2 Amazon (USA Government)
azure 26 centralus azure Microsoft Azure
azure-china 2 chinaeast azure Microsoft Azure China
cloudsigma 5 hnl cloudsigma CloudSigma Cloud
google 13 us-east1 gce Google Cloud Platform
joyent 6 eu-ams-1 joyent Joyent Cloud
oracle 5 uscom-central-1 oracle Oracle Cloud
rackspace 6 dfw rackspace Rackspace Cloud
localhost 1 localhost lxd LXD Container Hypervisor
Select a repo