Programmatic use #438

Closed
opened 2024-02-09 12:58:55 +01:00 by mechanical-girl · 2 comments
mechanical-girl commented 2024-02-09 12:58:55 +01:00 (Migrated from github.com)

I am hoping to use KIAUH to roll out Klipper to a double-digits number of 3D printers. However, SSHing into each Pi individually and running KIAUH is a significant time barrier.

Describe the solution you'd like

Command-line args added that allow specification of tasks (i.e. kiauh/kiauh.sh --install=klipper,moonraker,mainsall --instances=1 -y) or checking for a config file (i.e. config.json contains details, possibly generated by KIAUH by “dumping” the current config to a file.)

Describe alternatives you've considered

I have attempted to modify KIAUH myself to add similar functionality, but I’m not a competent shell script user.

Additional information

No response

### Is your feature request related to a problem? Please describe I am hoping to use KIAUH to roll out Klipper to a double-digits number of 3D printers. However, SSHing into each Pi individually and running KIAUH is a significant time barrier. ### Describe the solution you'd like Command-line args added that allow specification of tasks (i.e. `kiauh/kiauh.sh --install=klipper,moonraker,mainsall --instances=1 -y`) or checking for a config file (i.e. `config.json` contains details, possibly generated by KIAUH by “dumping” the current config to a file.) ### Describe alternatives you've considered I have attempted to modify KIAUH myself to add similar functionality, but I’m not a competent shell script user. ### Additional information _No response_
dw-0 commented 2024-02-09 13:23:38 +01:00 (Migrated from github.com)

Currently there is no plan to add non-interactive functionalities to KIAUH.
I know you mentioned it, but you would currently be better off by writing your own, fully non-interactive scripts you can deploy and execute.

Currently there is no plan to add non-interactive functionalities to KIAUH. I know you mentioned it, but you would currently be better off by writing your own, fully non-interactive scripts you can deploy and execute.
farnasirim commented 2024-02-25 21:47:06 +01:00 (Migrated from github.com)

@mechanical-girl What if you create some automation around 1~2 steps towards the end and somehow skip the earlier steps if you prefer not maintiain a script "API"? For example manually configure one pi, create backup and restore from that backup everywhere else, then change hostname. Or even a "dumb" backup with something like dd if=/dev/configured_sdcard of=backup and then duplicate that image to your other cards, saving package install, git clone, etc. time as well.

@mechanical-girl What if you create some automation around 1~2 steps towards the end and somehow skip the earlier steps if you prefer not maintiain a script "API"? For example manually configure one pi, create backup and restore from that backup everywhere else, then change hostname. Or even a "dumb" backup with something like `dd if=/dev/configured_sdcard of=backup` and then duplicate that image to your other cards, saving package install, git clone, etc. time as well.
Sign in to join this conversation.