Hi Chris,
I was wondering if you have considered converting the
https://github.com/burtyb/clusterhat-image script into an ansible playbook? I can imagine it could make support easier and possibly make the
ClusterHAT open to more Pi OSes.
* You'd no longer need to host OS images. No more 64 & 32 images. And it would save the users on their data caps and personal storage. The instructions would be as easy and same for every Raspberry Pi OS:
- image SD card with your OS and set up like usual:
Users can get their own RPi OS Lite, Desktop, etc. - install git if not installed already.
- install ansible-core # provide instructions
- `git clone https://github.com/burtyb/clusterhat-image-playbook` # as not to stomp on existing repo
- `cd clusterhat-image-playbook`
- `ansible-playbook --extra-vars="type=cnat" clusterhat-install.yml`
# the inventory could be defined as localhost while "type=" could be cnat, cbridge, p1-6.
* A future feature could be an actual script to assist those folks needing the ansible-core & deps in a directory for an offline install.
* Support-wise, folks who might alter settings that break it can just re-run the playbook command for the specific Pi's role and it's restored to your default. If then need to change from a CNAT to a CBRIDGE, just rerun the playbook on the host -- no re-image required.
* You could have a similar that's tuned role for those wishing to NFS boot their Pi Zero's. Maybe after they are comfortable with using SD Cards, they could run the nfs-boot playbook on the host and that's it. nfs-boot not working, re-run to remove nfs-boot on the host (or just use a SD Card on the Pi Zeros.)
* And of course, a playbook that creates a troubleshooting report in json for forum posts -- something like an "sosreport-extralite" just for ClusterHAT
I'm confident the community would contribute. I've thought about starting it but am unfamiliar with all the clusterhat-image files and how they interact with each other.
Personally, I've really grown to enjoy using Alpine - which works for Pi 3's and above (like RPi Zero 2, 3b, & 4b) but doesn't use systemd (golf clap) -- kind of overkill for lean-linux distros. It has all the cluster & container hotness folks want to play with in an uncomplicated way (& without the bloat).
Having a clusterhat-image playbook, it would make it much easier to port the ClusterHAT file to other Raspberry Pi OS flavors (Apline, Arch, Fedora, etc.) as well.
Just some food for thought. Thanks for a great device.
Cheers. M.