From db98e3b17238e3c8c6f4ce888dd4677297dac2f0 Mon Sep 17 00:00:00 2001 From: Francesco Zimbolo Date: Thu, 23 Apr 2026 08:19:06 +0000 Subject: [PATCH] Refactored inventory by using templates and jobs-folders --- .../_template/group_vars/all.yml.example} | 20 +++++++++---------- .../_template/hosts.yml.example} | 0 2 files changed, 10 insertions(+), 10 deletions(-) rename ansible/{group_vars/all.yml => inventories/_template/group_vars/all.yml.example} (59%) rename ansible/{inventory/hosts.yml => inventories/_template/hosts.yml.example} (100%) diff --git a/ansible/group_vars/all.yml b/ansible/inventories/_template/group_vars/all.yml.example similarity index 59% rename from ansible/group_vars/all.yml rename to ansible/inventories/_template/group_vars/all.yml.example index 44b7157..9ccffde 100644 --- a/ansible/group_vars/all.yml +++ b/ansible/inventories/_template/group_vars/all.yml.example @@ -3,35 +3,35 @@ deploy_linstor: false # Set to true to install and configure Linstor/DRBD # Proxmox Cluster Configuration -pve_cluster_name: "prod-cluster" -pve_enterprise_key: "" # Leave empty ("") to use no-subscription, or insert "PVE..." key +pve_cluster_name: "example-cluster" +pve_enterprise_key: "" # Leave empty to use non-subscription repos # High Availability Controller Configuration ha_pool: "fast_pool_1" -ha_vip: "10.191.125.4" +ha_vip: "192.168.2.4" ha_vip_cidr: "29" # Linstor Storage Pools Configuration +# You can add or remove pools as needed + +# TARGET RULES: +# Use raw disk (/dev/sdb) to wipe/create LVM +# Use existing thin-pool path (pve/data) to register safely (data won't be deleted) linstor_storage_pools: - pool_name: "fast_pool_1" rg_name: "fast_pool_1" vg_name: "pve" thin_name: "data" - # TARGET RULES: - # Use raw disk (/dev/sdb) to wipe/create LVM - # Use existing thin-pool path (pve/data) to register safely targets: pve-node-01: "pve/data" pve-node-02: "pve/data" pve-node-03: "pve/data" + - pool_name: "slow_pool_1" rg_name: "slow_pool_1" vg_name: "sp1" thin_name: "data" - # TARGET RULES: - # Use raw disk (/dev/sdb) to wipe/create LVM - # Use existing thin-pool path (pve/data) to register safely targets: pve-node-01: "/dev/sda" pve-node-02: "/dev/sda" - pve-node-03: "/dev/sda" + pve-node-03: "/dev/sda" \ No newline at end of file diff --git a/ansible/inventory/hosts.yml b/ansible/inventories/_template/hosts.yml.example similarity index 100% rename from ansible/inventory/hosts.yml rename to ansible/inventories/_template/hosts.yml.example