docs: remove apt repo fixes and rely on proxmox helper script

This commit is contained in:
Tibo De Peuter 2026-08-18 20:25:55 +02:00
parent 7bdc32828c
commit 0f0bcce6d2
2 changed files with 8 additions and 11 deletions

View file

@ -6,14 +6,18 @@ This repository is designed to be fully automated once bootstrapped. We separate
## 1. Apply the Host Layer
The `host-layer` automatically configures hardware-specific requirements on your fresh Proxmox install (such as setting up the ZFS pool, disabling NIC offloading for stability, and fixing apt repositories).
Before deploying VMs, you need to prepare the Proxmox host.
1. Clone this repository to your laptop.
2. Run the host-layer apply script using Docker (requires Docker installed):
1. **Run Proxmox Post-Install Script**: Log into your fresh Proxmox node's shell and run the community `proxmox-ve-helper` post-install script to fix the APT repositories and remove the nag screen:
```bash
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh)"
```
2. Clone this repository to your laptop.
3. Run the host-layer apply script using Docker (requires Docker installed). The script will automatically configure the remaining hardware-specific requirements (like the ZFS pool, NIC offloading for stability, and the laptop lid switch):
```bash
./scripts/apply-host-layer.sh
```
3. OpenTofu will prompt you for variables like the target `node_ip`, your `ssh_user`, and the `data_disk_id` (e.g. `nvme-eui...`) to format as ZFS.
4. OpenTofu will prompt you for variables like the target `node_ip`, your `ssh_user`, and the `data_disk_id` (e.g. `nvme-eui...`) to format as ZFS.
## 2. Prepare the Golden Image

View file

@ -22,13 +22,6 @@ resource "null_resource" "bare_metal_setup" {
inline = [
"set -euo pipefail",
"echo '==> Applying post-pve-install fixes (fixing repos)...'",
"rm -f /etc/apt/sources.list.d/pve-enterprise.list",
"echo 'deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription' > /etc/apt/sources.list.d/pve-no-subscription.list",
"echo '==> Disabling the No Valid Subscription nag screen...'",
"sed -i.bak \"s/data.status !== 'Active'/false/g\" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js",
"systemctl restart pveproxy",
"echo '==> Setting laptop lid switch to ignore (prevents sleeping when closed)...'",
"sed -i 's/^#\\?HandleLidSwitch=.*/HandleLidSwitch=ignore/' /etc/systemd/logind.conf",