by mverwijs · 11y ago · 0 comments
* boot a custom live cd (a la Knoppix) over PXE
* Live CD places node into database if it doesn't exist yet,
using dmidecode to find serialnumbers and such
* Live Cd keeps querying database for instructions
* Engineer adds a profile to the node in the database
* Live Cd slices up disk to match the profile
* Live Cd fetches a tarball of the base OS from an URL
and throws it on the metal. Runs grub setup. Reboots.
Tumblr did something like this with http://tumblr.github.io/collins/.PS - Hi Marty, unknown nick here but I'm sure you can figure out who I am. :D
Collins - asset management
Phil - ipxe booting based on Collins state
Genesis - base hardware configuration (firmware, bios, raid, etc), burnin, kickstart
Configrr - state / config management
https://github.com/cobbler/cobbler
What is interesting in this article in particular are the auto-firmware upgrade state transitions, which seem pretty neat.
The chat bot is I guess neat, but if a lot of people are using the cloud that could be a hard way to get status.
When you want to automate your complete infra, including rolling out hardware, you need hardware to develop and test on. Entropy of life will ensure that exactly that moment you need to reinstall that PostgreSQL slave from scratch, the PXE server is unreachable, or the server has a different diskcontroller, or an iLO certificate expired. Or something stupid.
Test your code. And for Ops this means: machines that are solely for the testing pleasure of Ops. No other function.
I've got systems PXE booting to CoreOS where everything else runs in Docker containers (even the odd KVM VM).