Refactoring + final touches

This commit is contained in:
Francesco Zimbolo
2026-04-24 12:58:56 +00:00
parent 6f6cc10aae
commit d8b60d10e0
16 changed files with 369 additions and 106 deletions

View File

@@ -0,0 +1,25 @@
# ============================================================
# Proxmox Cluster Inventory - INI Format
# Copy this file to your inventory folder as "hosts.ini"
# and adjust IPs, hostnames, and optional keys.
# ============================================================
[proxmox]
# Format: <inventory_alias> ansible_host=<management_ip> [priv_ip=<cluster_ip>] [priv_nic_1=<nic>] [priv_nic_2=<nic>] [pve_enterprise_key=<key>]
#
# - inventory_alias : Arbitrary label used by Ansible. Does NOT need to match the real hostname.
# The real system hostname (ansible_hostname) is used for Proxmox & Linstor nodes.
# - ansible_host : IP used by Ansible to SSH into the node (management/public IP).
# - priv_ip : IP used for Corosync cluster traffic and Linstor replication (private/dedicated NIC).
# If omitted, ansible_host is used as fallback.
# - priv_nic_1/2 : (Optional) The two NICs forming the full-mesh p2p bridge (named "p2p").
# Required only when running network.yml to configure the private bridge.
# NIC names differ per node — check with: ip link show
# - pve_enterprise_key : (Optional) Per-node Proxmox enterprise subscription key.
pve-node-01 ansible_host=192.168.1.1 priv_ip=192.168.2.1 priv_nic_1=enp2s0 priv_nic_2=enp3s0
pve-node-02 ansible_host=192.168.1.2 priv_ip=192.168.2.2 priv_nic_1=enp2s0 priv_nic_2=enp3s0
pve-node-03 ansible_host=192.168.1.3 priv_ip=192.168.2.3 priv_nic_1=enp2s0 priv_nic_2=enp3s0
# Single-node example (no cluster, no Linstor):
# pve-standalone ansible_host=10.0.0.50