[one-users] Announcement: econe metadata server

Ricardo Duarte rjtd21 at hotmail.com
Mon Jan 28 15:04:52 PST 2013


Dear All,

I made available a service that implements the EC2 metadata protocol. For more information, please see:

http://docs.aws.amazon.com/AWSEC2/2008-08-08/DeveloperGuide/AESDG-chapter-instancedata.html

The main benefit is that you can get instance meta-data from inside the machine, most notably the user-data and public keys.
And because it is compatible with EC2, you can use cloud-init or other tools without any modification(*).

https://help.ubuntu.com/community/CloudInit

You can find the code and instructions on the following link:

https://bitbucket.org/ricardoduarte/opennebula-metadata

The code reuses the  /var/lib/one/.one/ec2_auth credentials.

Please let me know if you find any bug.
I plan to write a small guide with examples on how to use it with cloud-init.

Regards,
Ricardo

(*) while cloud-init itself does not need any modification, you have to make sure the instance has a valid IP before cloud-init runs, either by having DHCP or by running the context scripts before cloud-init.
One simple way to ensure that, with Ubuntu, is to add the following to /etc/init/one-context.conf

# /etc/init/one-context.conf - opennebula context script
#  contextualizes instance

start on starting cloud-init-nonet

task

exec /etc/init.d/vmcontext

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130128/8b0e0386/attachment.htm>


More information about the Users mailing list