diff options
author | Scott Moser <smoser@ubuntu.com> | 2010-08-12 01:56:12 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2010-08-12 01:56:12 -0400 |
commit | 54346d35221fd405423dd33a2b06202f10e2aa22 (patch) | |
tree | 71b636d2967abbb53cdb4d3c70061524e2add7ff /doc/examples | |
parent | a43357425d32b53aa58e226613e7fa2dd0714102 (diff) | |
download | vyos-cloud-init-54346d35221fd405423dd33a2b06202f10e2aa22.tar.gz vyos-cloud-init-54346d35221fd405423dd33a2b06202f10e2aa22.zip |
initial dump of "sans-cloud" code (DataSourceNoCloud)
The new classes 'DataSourceNoCloud' and 'DataSourceNoCloudNet'
implement a way to get data from the filesystem, or (very minimal)
data from the kernel command line. This allows the user to seed data to
these sources.
There are now 2 "cloud-init" jobs, cloud-init-local that runs on
mounted MOUNTPOINT=/
and 'cloud-init' that runs on
start on (mounted MOUNTPOINT=/ and net-device-up IFACE=eth0 and
stopped cloud-init-local )
The idea is that cloud-init-local can actually function without network.
The last thing in this commit is "uncloud-init".
This tool can be invoked as 'init=/usr/lib/cloud-init/uncloud-init'
It will "uncloudify" things in the image, generally making it easier
to use for a simpler environment, and then it will exec /sbin/init.
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/preseed-metadata.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/examples/preseed-metadata.txt b/doc/examples/preseed-metadata.txt new file mode 100644 index 00000000..62156826 --- /dev/null +++ b/doc/examples/preseed-metadata.txt @@ -0,0 +1,24 @@ +# this is yaml formated data +# it is expected to be roughly what you would get from running the following +# on an ec2 instance: +# python -c 'import boto.utils, yaml; print(yaml.dump(boto.utils.get_instance_metadata()))' +ami-id: ami-fd4aa494 +ami-launch-index: '0' +ami-manifest-path: ubuntu-images-us/ubuntu-lucid-10.04-amd64-server-20100427.1.manifest.xml +block-device-mapping: {ami: sda1, ephemeral0: sdb, ephemeral1: sdc, root: /dev/sda1} +hostname: domU-12-31-38-07-19-44.compute-1.internal +instance-action: none +instance-id: i-87018aed +instance-type: m1.large +kernel-id: aki-c8b258a1 +local-hostname: domU-12-31-38-07-19-44.compute-1.internal +local-ipv4: 10.223.26.178 +placement: {availability-zone: us-east-1d} +public-hostname: ec2-184-72-174-120.compute-1.amazonaws.com +public-ipv4: 184.72.174.120 +public-keys: + ec2-keypair.us-east-1: [ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCD9dlT00vOUC8Ttq6YH8RzUCVqPQl6HaSfWSTKYnZiVCpTBj1CaRZPLRLmkSB9Nziy4aRJa/LZMbBHXytQKnB1psvNknqC2UNlrXXMk+Vx5S4vg21MXYYimK4uZEY0Qz29QUiTyNsx18jpAaF4ocUpTpRhxPEBCcSCDmMbc27MU2XuTbasM2NjW/w0bBF3ZFhdH68dZICXdTxS2jUrtrCnc1D/QXVZ5kQO3jsmSyJg8E0nE+6Onpx2YRoVRSwjpGzVZ+BlXPnN5xBREBG8XxzhNFHJbek+RgK5TfL+k4yD4XhnVZuZu53cBAFhj+xPKhtisSd+YmaEq+Jt9uS0Ekd5 + ec2-keypair.us-east-1, ''] +reservation-id: r-e2225889 +security-groups: default + |