adamant-kite-43734
06/24/2024, 7:57 AMacoustic-country-10006
06/25/2024, 8:21 PMuser-data & meta-data files containing cloud-init config into the cloud-init drive that gets attached to VMIs (line 587-588 of cloud-init.go). user-data contains the cloud config that users specify when creating VMs, and meta-data contains instance data generated by Harvester (this is invisible to the user) such as the instance ID and machine name, which is exactly what I’m looking for in this use case. In my testing this meta-data cloud-init “data source” gets consumed correctly by other OSes such as the Tumbleweed cloud image, setting it’s hostname to whatever the VM name is in Harvester, so I thought I could simply point an Elemental derived OS at this config and be fine, except looking at the cd-rom provider in the elemental-toolkit this is hard coded to only look at files called “`user-data`” or “`config`”. I can therefore point to the cloud-init drive attached to the VM, but not the specific file within.
@sticky-tailor-45974 Would there be appetite for adding “meta-data” to this list of strings given this seems to be a standard file name for cloud-init systems, or providing a mechanism for also specifying a path with the cd-rom provider?
Happy to raise a PR for the former or an issue for the latter if sosticky-tailor-45974
06/26/2024, 8:56 AMmany-tiger-3407
06/26/2024, 8:59 AMacoustic-country-10006
06/26/2024, 9:51 AM