From 03270f1ef8e0802224b64b240b03a01b84024122 Mon Sep 17 00:00:00 2001 From: Francesco Zimbolo Date: Fri, 24 Apr 2026 12:59:06 +0000 Subject: [PATCH] Added Senegal 191/25 Inventory --- .../inventories/senegal/group_vars/all.yml | 54 +++++++++++++++++++ ansible/inventories/senegal/hosts.ini | 25 +++++++++ 2 files changed, 79 insertions(+) create mode 100644 ansible/inventories/senegal/group_vars/all.yml create mode 100644 ansible/inventories/senegal/hosts.ini diff --git a/ansible/inventories/senegal/group_vars/all.yml b/ansible/inventories/senegal/group_vars/all.yml new file mode 100644 index 0000000..fd33c22 --- /dev/null +++ b/ansible/inventories/senegal/group_vars/all.yml @@ -0,0 +1,54 @@ +--- +# ============================================================ +# Proxmox Post-Install - Group Variables (Senegal) +# ============================================================ + +# --- Deployment Toggles --- +standalone_mode: false +deploy_linstor: true +disable_ipv6: false +wipe_linstor_disks: true + +# --- Proxmox Cluster --- +pve_cluster_name: "senegal" +# pve_enterprise_key: "" # Optional: global key (prefer per-host key in hosts.ini) + +# --- Linstor / LINBIT Repository --- +# Auto-calculated as: Debian major version - 4 (e.g. Debian 13 = proxmox-9). +# Override manually if LINBIT publishes a differently-named repo for new Proxmox versions. +# linbit_proxmox_version: 9 + +# --- Linstor HA Controller --- +ha_pool: "fast_pool_1" +ha_vip: "10.191.125.4" +ha_vip_cidr: "29" + +# --- Linstor Storage Pools --- +# Each entry defines one Resource Group, composed of one storage pool per node. +# All pools in the same entry share the same pool_name across nodes. +# +# TARGET RULES: +# - Use a raw block device path (/dev/sdb) to auto-create VG + LVM Thin Pool. +# - Use an existing thin-pool path (vg_name/thin_name, e.g. "pve/data") to register +# an already-existing LVM thin pool WITHOUT touching existing data. +# +# Keys under "targets" must match the Ansible inventory_hostname of each node +# (i.e. the left-hand label in hosts.ini, e.g. "vtmis1-ve"). +linstor_storage_pools: + - pool_name: "fast_pool_1" + rg_name: "fast_pool_1" + vg_name: "pve" + thin_name: "data" + targets: + vtmis1-ve: "pve/data" + vtmis2-ve: "pve/data" + vtmis3-ve: "pve/data" + + - pool_name: "slow_pool_1" + rg_name: "slow_pool_1" + vg_name: "sp1" + thin_name: "data" + targets: + vtmis1-ve: "/dev/sda" + vtmis2-ve: "/dev/sda" + vtmis3-ve: "/dev/sda" diff --git a/ansible/inventories/senegal/hosts.ini b/ansible/inventories/senegal/hosts.ini new file mode 100644 index 0000000..f7672a6 --- /dev/null +++ b/ansible/inventories/senegal/hosts.ini @@ -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: ansible_host= [priv_ip=] [priv_nic_1=] [priv_nic_2=] [pve_enterprise_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. + +vtmis1-ve ansible_host=10.191.25.21 priv_ip=10.191.125.1 priv_nic_1=nic2 priv_nic_2=nic3 +vtmis2-ve ansible_host=10.191.25.22 priv_ip=10.191.125.2 priv_nic_1=nic2 priv_nic_2=nic3 +vtmis3-ve ansible_host=10.191.25.23 priv_ip=10.191.125.3 priv_nic_1=nic2 priv_nic_2=nic3 + +# Single-node example (no cluster, no Linstor): +# pve-standalone ansible_host=10.0.0.50