Refactored inventory by using templates and jobs-folders
This commit is contained in:
37
ansible/inventories/_template/group_vars/all.yml.example
Normal file
37
ansible/inventories/_template/group_vars/all.yml.example
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
# Deployment Toggles
|
||||
deploy_linstor: false # Set to true to install and configure Linstor/DRBD
|
||||
|
||||
# Proxmox Cluster Configuration
|
||||
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: "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"
|
||||
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"
|
||||
targets:
|
||||
pve-node-01: "/dev/sda"
|
||||
pve-node-02: "/dev/sda"
|
||||
pve-node-03: "/dev/sda"
|
||||
13
ansible/inventories/_template/hosts.yml.example
Normal file
13
ansible/inventories/_template/hosts.yml.example
Normal file
@@ -0,0 +1,13 @@
|
||||
all:
|
||||
children:
|
||||
proxmox:
|
||||
hosts:
|
||||
pve-node-01:
|
||||
ansible_host: 10.191.25.21
|
||||
priv_ip: 10.191.125.1
|
||||
pve-node-02:
|
||||
ansible_host: 10.191.25.22
|
||||
priv_ip: 10.191.125.2
|
||||
pve-node-03:
|
||||
ansible_host: 10.191.25.23
|
||||
priv_ip: 10.191.125.3
|
||||
Reference in New Issue
Block a user