cloudius-systems / capstan

Capstan, a tool for packaging and running your application on OSv. http://osv.io/capstan
Other
367 stars 82 forks source link

A local Cloud-Init server #74

Open tzach opened 10 years ago

tzach commented 10 years ago

cloudinit is a mechanism to inject information to OSv init process In particular, it is useful when running an instance on EC2/GCE/open-stack/other which can use it to inject information to an instance as part of the init process. One example for such information is API or CLI user/pass word.

To help user/dev test and work with cloudinit, it will be useful to have similar functionality locally. For that, we need a local server which OSv can use to fetch user define information. Ideally, it will provide the same interface as EC2[1], so OSv itself can use it with no additional functionality.

[1] http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html

tzach commented 10 years ago

EC2 make user data for cloud init available at http://169.254.169.254/latest/user-data (where latest can be replace with version) Capstan should use the same URI for local instances. Remote instance, for example on GCE, should use the GCE user-data.