feat: target official Raspberry Pi OS Lite
Homelab Main / validate (push) Has been cancelled Details
Homelab Main / running-update (push) Has been cancelled Details
Homelab Main / debian-ops (push) Has been cancelled Details

This commit is contained in:
juvenal.diaz 2026-10-24 08:38:53 -06:00
parent a90594c8d9
commit ff006691bf
1 changed files with 8 additions and 1 deletions

View File

@ -36,7 +36,7 @@ plan_homelab() {
host_bootstrap_manage() { host_bootstrap_manage() {
local host_target="${1:-}" local host_target="${1:-}"
local action="${2:-plan}" local action="${2:-plan}"
local rpi_host rpi_user rpi_key local rpi_host rpi_user rpi_key rpi_os_image rpi_os_url
if [[ "${host_target}" != "rpi4" ]]; then if [[ "${host_target}" != "rpi4" ]]; then
echo "Usage: ./jeannie host-bootstrap rpi4 [status|plan|apply --yes]" >&2 echo "Usage: ./jeannie host-bootstrap rpi4 [status|plan|apply --yes]" >&2
@ -49,6 +49,8 @@ host_bootstrap_manage() {
rpi_host="${LAB_RPI_HOST:-${LAB_RASPBERRY_HOST:-192.168.100.89}}" rpi_host="${LAB_RPI_HOST:-${LAB_RASPBERRY_HOST:-192.168.100.89}}"
rpi_user="${LAB_RPI_USER:-${LAB_RASPBERRY_USER:-jv}}" rpi_user="${LAB_RPI_USER:-${LAB_RASPBERRY_USER:-jv}}"
rpi_key="${LAB_RPI_SSH_KEY_PATH:-${LAB_RASPBERRY_SSH_KEY_PATH:-${HOME}/.ssh/id_ed25519}}" rpi_key="${LAB_RPI_SSH_KEY_PATH:-${LAB_RASPBERRY_SSH_KEY_PATH:-${HOME}/.ssh/id_ed25519}}"
rpi_os_image="${LAB_RPI4_OS_IMAGE_NAME:-Raspberry Pi OS Lite (64-bit)}"
rpi_os_url="${LAB_RPI4_OS_IMAGE_URL:-https://downloads.raspberrypi.com/raspios_lite_arm64_latest}"
case "${action}" in case "${action}" in
status) status)
@ -67,12 +69,16 @@ host_bootstrap_manage() {
RPi4 host bootstrap plan RPi4 host bootstrap plan
======================== ========================
target: ${rpi_user}@${rpi_host} target: ${rpi_user}@${rpi_host}
image: ${rpi_os_image}
image_url: ${rpi_os_url}
headless: true (no desktop packages)
1. Provision the Raspberry Pi OS image through the configured network-boot or imaging provider. 1. Provision the Raspberry Pi OS image through the configured network-boot or imaging provider.
2. Wait for SSH using ${rpi_key}. 2. Wait for SSH using ${rpi_key}.
3. Run the idempotent RPi host bootstrap and deploy Pi-hole, Unbound, and Uptime Kuma. 3. Run the idempotent RPi host bootstrap and deploy Pi-hole, Unbound, and Uptime Kuma.
4. Continue the independent edge, cluster, platform, and application stages. 4. Continue the independent edge, cluster, platform, and application stages.
The selected image is the official Raspberry Pi OS Lite 64-bit channel for Raspberry Pi 4.
The existing PXE stack provisions Pimox ARM64 VMs; it does not reimage a physical RPi4. The existing PXE stack provisions Pimox ARM64 VMs; it does not reimage a physical RPi4.
Set LAB_RPI4_OS_PROVISIONER_COMMAND to a reviewed, site-specific imaging/netboot command before using apply. Set LAB_RPI4_OS_PROVISIONER_COMMAND to a reviewed, site-specific imaging/netboot command before using apply.
No disk or OS changes are made by this plan. No disk or OS changes are made by this plan.
@ -88,6 +94,7 @@ EOF
return 2 return 2
fi fi
echo "Running the configured RPi4 OS provisioner..." echo "Running the configured RPi4 OS provisioner..."
export LAB_RPI4_OS_IMAGE_NAME="${rpi_os_image}" LAB_RPI4_OS_IMAGE_URL="${rpi_os_url}"
bash -lc "${LAB_RPI4_OS_PROVISIONER_COMMAND}" bash -lc "${LAB_RPI4_OS_PROVISIONER_COMMAND}"
check_rpi_ssh check_rpi_ssh
deploy_rpi_services deploy_rpi_services