Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support arbitrary cloud-init metadata (aka metadata datasource values) #557

Open
diablodale opened this issue Jan 8, 2019 · 0 comments
Open

Comments

@diablodale
Copy link

It would be beneficial to provide an arbitrary metadata dictionary into multipass -- just like today we can pass an arbitrary userdata dictionary.

I would use this during development to simulate parts of my cloud provider's infrastructure, e.g. geographic zones, security tokens, etc.

Today, multipass hardcodes a custom metadata datasource and it provides only two values instance-id and local-hostname
https://github.com/CanonicalLtd/multipass/blob/09335ce5392897a229436b75ea81944757bc3a77/src/daemon/daemon.cpp#L102

Native cloud-init supports 17 datasources for metadata, e.g. Azure, EC2, Digital Ocean, etc. Datasources are read and the dictionaries are passed into the cloud-init pipeline where that dictionary's values are/can be used by the many cloud-init modules.

FYI: Native cloud-init already has a datasource named nocloud which somewhat aligns with this request. nocloud has only three parameters -- the same two instance-id and local-hostname plus a 3rd seedfrom which can take a file or network location.
https://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants