35
submitted 10 months ago by randomaside@lemmy.dbzer0.com to c/linux@lemmy.ml

I've recently been investigating doing some automated zero touch deployment stuff in my lab.

I have PXE boot in my lab but I feel like I'm under utilizing it. I was thinking about exploring using ansible with netbox as right now I only use netbox as a glorified wiki.

I'm just curious if anyone here has zero touch deployment and has any interesting takes on what it is good for and what it isn't good for (I would really like to hear about some edge cases).

Thanks!

top 6 comments
sorted by: hot top controversial new old
[-] netburnr@lemmy.world 3 points 10 months ago

Base os install ad a template in your hypervisor. Ansible playbook with a task to spin up the VM, another task to setup network and required packages. Then other playbooks for the software/services setup.

[-] humanplayer2@lemmy.ml 3 points 10 months ago

At work, we use Racetrack, if that counts. It works quite well.

[-] Toribor@corndog.social 3 points 10 months ago* (last edited 10 months ago)

I use Ansible for all my deployments and just got a PXE boot set up with a preseed file to automate the install process and get the host ready to run playbooks.

I've been really pleased with this strategy overall. I think that Ansible works really well for programmatically generating config files which in turn makes moving applications between servers effortless. I control docker volume mounts with ansible variables and encrypt secrets with ansible vault so I can do everything all in one place.

Troubleshooting issues is a lot easier and recovering from a backup is faster and a requires less effort since I can just pull down the Ansible config from git and redeploy.

[-] Atemu@lemmy.ml 3 points 10 months ago

I use NixOS but I don't bother with automatic deployment or even automatic formatting. I don't feel it's necessary in a homelab setting as hardware failure rarely happens at such small scale and the manual steps left aren't that significant.

[-] andruid@lemmy.ml 2 points 10 months ago

Setup a good kickstart script (even if it's just enough for Ansible to Configure it the rest of the way). It's awesome when messing with a system to be able to reboot select the reinstall PXE boot option and get a fresh install to tinker on.

[-] andruid@lemmy.ml 1 points 10 months ago

On a similar note, I want to try boot2container as my PXE target next personally

this post was submitted on 18 Nov 2023
35 points (94.9% liked)

Linux

47293 readers
757 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS