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