Reputation: 938
I have a question about using cloud init for per device configurations. I am wanting to use this with a fleet of Raspberry Pi CM5s. Right now I can download a distro for the RaspberryPi (e.g., ubuntu-24.04.1-preinstalled-server-arm64+raspi.img) and I can mount that image on my Mac and edits the user-data file in the system-boot volume. I can then flash that changed image to a CM5 and I am off and running. But if I need to make a change that is unique to each CM5, I need to open the user-data file, make my changes, and the flash that new version. Rinse and repeat for each CM5. Now, if you are doing this for a few CM5s, something like 1-10, that is doable. But I have a much larger need. I know I can setup a source so that it will pull the user-data configuration file from an HTTP server. But what I do not know how to do is to hand out specific changes per CM5. Is there a way to use some sort of token to say, the config file X goes to CM5.1 and config file Y goes to CM5.2. Or is this not possible?
Upvotes: 0
Views: 16