New Question
0

Where can I find a list of all commands I can pass to metadata?

asked 2015-05-19 16:05:56 +0200

adamski gravatar image

Hi all, Sorry for the particularly noob question - but I can't seem to find the documentation for cloudbase-init.

Is there something akin to https://cloudinit.readthedocs.org/en/latest/?

I can see on the Github README the names of the plugins that I want to talk to. For example there is cloudbaseinit.plugins.common.sethostname.SetHostNamePlugin - but I can't see what key name I should provide in metadata to set this.
The github page says there's documentation on cloudbase.it - but I can't seem to find it on there! Any help would be much appreciated.

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2015-06-06 15:53:31 +0200

Hi adamski,

Here is an in-development documentation which we are working on: https://review.openstack.org/#/c/188903/ It will be available on readthedocs soon enough, until then, if you want to read it in html form, you can clone the repo from stackforge git and apply the patch or clone the project directly from my repo: https://github.com/cmin764/cloudbase-..., then switch to "doc" branch and after that, run "make html" under the "doc" directory; open your "build/html/index.html" and you're good to go.

It's currently taking care of general aspects of cloudbase-init, but in the near future, there'll be available complete information about the different types of metadata and what is the meaning of every possible key/field. Anything more beyond that, is usually having to do with OpenStack specific use cases, but there will be a FAQ section as well for things like that.

edit flag offensive delete link more

Comments

Thanks very much! I appreciate you getting back to me with this. I will clone this and have a read through.

adamski gravatar imageadamski ( 2015-06-08 12:10:48 +0200 )edit
cmiN gravatar imagecmiN ( 2015-09-02 07:13:48 +0200 )edit
0

answered 2015-05-22 02:15:20 +0200

cpopa gravatar image

Hi. We plan to have a first good documentation on readthedocs in about one week or two. For your current question, probably you're interested in the "hostname" key name. In the mean time, if you have any question, don't hesitate to ask it here.

edit flag offensive delete link more

Comments

Thanks for your comment! That's fantastic to hear that soon there will be some documentation on readthedocs. Do you mean setting "hostname" key inside the "metadata" object? Because when I do this it seems to be ignored in favour of "hostname" provided by the meta service - which I'm unable to set!

adamski gravatar imageadamski ( 2015-05-22 12:33:02 +0200 )edit

I think this might clarify what I mean in my previous comment about what keys I can set [http://pastebin.com/c4kb4ej3]. Related to this, I'm unsure of what certificate I should be passing to this metadata object in order to have my admin pass encoded. At the moment I can't seem to get it to work!

adamski gravatar imageadamski ( 2015-05-22 12:34:35 +0200 )edit

Is there a place I can see the documentation while it's in development? Thanks.

adamski gravatar imageadamski ( 2015-05-22 13:29:05 +0200 )edit

Hi, The certificate passed through admin_cert is not used for encrypting the admin pass, unfortunately, but for having password-less logins. See this article for a more detailed explanation http://www.cloudbase.it/windows-without-passwords-in-openstack/. Regarding your problem with the hostname key, you're right, the metadata options can't be overridden by the user at the moment. Would it help you if we'll add the same operation as a cloud-config plugin (`set_hostname: your_desired_hostname` for instance) or a mechanism for overriding metadata values from the meta subdictionary? We'll try to push the documentation this week on http://review.openstack.org, we'll keep you informed when that will happen.

cpopa gravatar imagecpopa ( 2015-05-25 13:39:10 +0200 )edit

Hi, cpopa. Thanks again! I see. I must've misunderstood how that cert is used! Does this mean I'm unable to inject the password at all? Yes, that would definitely be of help to me if you could set the hostname like that (similar to cloud-config)! Fantastic. Thank you. I'll look out for the doc's.

adamski gravatar imageadamski ( 2015-05-26 11:48:25 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2015-05-19 16:05:56 +0200

Seen: 2,743 times

Last updated: Jun 06 '15