Sebastian Sommerfeld
Sebastian Sommerfeld

Reputation: 919

Location of cloud-init user-data.yml file

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?

Upvotes: 4

Views: 1249

Answers (1)

Brett Holman
Brett Holman

Reputation: 857

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.

Upvotes: 1

Related Questions