khuedoan-homelab/metal
2021-09-01 04:58:47 +07:00
..
group_vars
roles Improve k3s config template rendering 2021-09-01 04:58:47 +07:00
ansible.cfg
hosts.yml Split metal group into masters and workers 2021-09-01 01:11:15 +07:00
main.yml Add k3s role 2021-09-01 04:19:05 +07:00
Makefile Add linters for metal and infra 2021-06-10 19:28:34 +07:00
README.md
shutdown.yml Use raw command for shutdown task 2021-06-14 00:09:28 +07:00

Bare-metal

  • Ansible renders the configuration file for each bare metal machine (like IP, hostname...) and the PXE server from templates
  • The tools container creates sibling containers to build a PXE server (includes DHCP, TFTP and HTTP server)
  • Ansible wake the machines up using Wake on LAN
  • The machine start the boot process, the OS get installed (through PXE server) and the machine reboots to the new operating system
  • Ansible performs some basic configuration on the machine (like install Docker)
  • Ansible creates a Terraform state backend and generates the configuration file for it