Location of cloud-init user-data.yml file

828 Views Asked by At

I want to bootstrap some raspi nodes with cloud-init. As of now I am testing this with a vagrantbox running ubuntu/jammy64.

My question now is: Where do I put my user-data.yml file so that cloud-init picks it up automatically omn the first startup? Or do I have to tell cloud-init where my user-data.yml is?

1

There are 1 best solutions below

2
On

You probably want to use the NoCloud Datasource, which uses a vfat or iso9660 filesystem for the cloud-config. Alternatively, if Vagrant allows passing command line arguments to the kernel (qemu does), that would work as well.