Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: Option to Upload A Completely Custom Raspberry Pi Cloud Init File #996

Open
kevinlutzer opened this issue Jan 19, 2025 · 3 comments
Labels
enhancement New feature or request

Comments

@kevinlutzer
Copy link

Is your feature request related to a problem? Please describe.

For both personal use and previous jobs, I have had to flash multiple Raspberry PIs (in a cluster or just single use) and then use a tool like Ansible to initialize them with the Debian packages, network config, and Ubuntu Snaps I needed for their desired purpose. This can be very tedious and it would be nice if the RPi Imager tool could further initialize the OS.

Describe the solution you would like to see implemented

Currently, the Raspberry Pi imager tool allows configuring things like the password, username, hostname, wifi networking setup, and timezone via cloud-init. It would be nice to have the option to upload a completely custom cloud-init config file. During the flashing process, the tool would copy the custom cloud-init file onto the target OS.

This would be a massive workflow improvement for me. Now, I wouldn't have to use different workflow automation tools to install and set up additional system dependencies after the RPi has been booted properly. Note that tools/services like Proxmox, and Azure VM allow you to upload a custom cloud-init file when imaging a VM.

Describe alternatives you've considered

N/A

Additional context

N/A

Version

1.9.2 (Default)

@kevinlutzer kevinlutzer added the enhancement New feature or request label Jan 19, 2025
@maxnet
Copy link
Collaborator

maxnet commented Jan 19, 2025

It is currently not exposed in the GUI, but when starting Imager from the command-line like "rpi-imager --cli https://server/imagefile /dev/sdX" you do have "--cloudinit-userdata customfile" and "--cloudinit-networkconfig customfile" options.

@kevinlutzer
Copy link
Author

Very cool! I didn't realize that. What would it take to build out that feature so it is supported by the GUI? In the OS Customization -> Edit settings pane, would it be possible to add an Advanced Features dropdown that would expose two uploads? One for a user-data file and another for the network-config file?

@lurch
Copy link
Contributor

lurch commented Jan 20, 2025

I hope you don't mind me asking, but why are the CLI options not sufficient for your use-case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants