Files
homelab-infra/infrastructure/proxmox/ansible/inventory/hosts.yml
T
panxiao81 2e05b1a96a
yaml / yaml (pull_request) Failing after 25s
terraform / validate (pull_request) Successful in 51s
ansible / collection-test (pull_request) Successful in 1m27s
ansible / lint (pull_request) Successful in 3m45s
声明式管理 Proxmox API 对象与 Samba DNS 上游
2026-09-17 13:22:50 +00:00

51 lines
1.8 KiB
YAML

---
# 3-node Proxmox VE 9.2 cluster "homelab". All were netboot auto-installed on
# 2026-07-25 (see ../pxe/ and the project memory for the PXE recipe).
#
# IPs are all BELOW the router's DHCP pool (192.168.10.10-250) on purpose.
# .5 = samba AD DC (dc1, libvirt VM on the laptop), .8 = reserved for OpenBao,
# .127 = laptop ("core" node: NFS + netboot.xyz + k3s + smtp-relay).
all:
children:
pve:
hosts:
pve1:
ansible_host: 192.168.10.4
# Intel NUC i3-6100, 16G. Most RAM of the three -> LINSTOR controller.
# Its UEFI cannot unpack a large initramfs, so it needs the special
# PXE path in ../pxe/ if it is ever rebuilt.
pve_install_disk: sdb
pve_bulk_disk: sda
pve2:
ansible_host: 192.168.10.7
# ThinkCentre, Ryzen 2400GE (Raven Ridge), 8G.
pve_install_disk: nvme0n1
pve_bulk_disk: sda
pve3:
ansible_host: 192.168.10.9
# ThinkCentre, Ryzen 2400GE (Raven Ridge), 8G.
pve_install_disk: nvme0n1
pve_bulk_disk: sda
# Network devices driven over network_cli (NOT ssh/python) — they have no
# Python interpreter, so normal modules do not apply.
network:
hosts:
vyos-rtr:
ansible_host: 192.168.10.2
ansible_user: vyos
ansible_connection: ansible.netcommon.network_cli
ansible_network_os: vyos.vyos.vyos
# Key auth; the vyos password is in ../vyos/credentials.yml (gitignored).
ansible_ssh_private_key_file: ~/.ssh/id_ed25519
# Lab VMs on the cluster (normal ssh/python hosts, unlike the `network` group).
labvms:
hosts:
retrolab:
ansible_host: 10.60.0.10
ansible_user: panxiao81
ansible_become: true