cloud-init instance (meta) data
-
Hello,
I've been using cloud-init (both cloud & network configs) successfully for a couple years now in XO, but one thing that has always annoyed me is during first boot instances first register their DNS hostname as localhost after which they quickly register with the proper hostname. This will occassionally casuse issues with reverse DNS lookups, but can easily be remedied manually. I was recently digging into this when refactoring my network config from v1 to v2, and I have a hypothesis that it is because the cloud_init_modules set_hostname & update_hostname that are part of the network boot stage run after DHCP which I believe is running as part of the local boot stage [1]. In order to test this hypothesis I'd like to be able to inject instance (meta) data [2] and I've searched, but haven't found a way to do that.
Does anybody know if this is possible?
- https://cloudinit.readthedocs.io/en/latest/explanation/boot.html#local
- https://cloudinit.readthedocs.io/en/latest/explanation/instancedata.html
EDIT: fixed a typo
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login