1.5 KiB
1.5 KiB
02 - Configuring the Cluster
Cluster configurations are segmented per project/customer using Ansible inventories. Do not edit variables in the root directory.
1. Create the Environment
Copy the template directory for your specific project:
cp -r inventories/_template inventories/<customer_name>
mv inventories/<customer_name>/hosts.yml.example inventories/<customer_name>/hosts.yml
mv inventories/<customer_name>/group_vars/all.yml.example inventories/<customer_name>/group_vars/all.yml
2. Configure hosts.yml
Define the target PVE nodes. Ansible defaults to the ansible_host IP for Corosync and DRBD replication. If a dedicated backend network is available, define priv_ip. Ansible uses conditional fallback logic automatically.
all:
children:
proxmox:
hosts:
pve-node-01:
ansible_host: 192.168.1.11
priv_ip: 10.0.0.11
3. Configure group_vars/all.yml
- Deployment Toggles: Set
deploy_linstor: truefor HCI setups, orfalsefor traditional SAN integration. - Enterprise Licensing: Supply a key in
pve_enterprise_key. If empty (""), the playbook applies thepve-no-subscriptionrepository. - HA Controller: Define
ha_pool,ha_vip(Virtual IP), and the CIDR prefix for the Linstor DB promoter. - Storage Pools:
- If mapping a raw disk (
/dev/sda), the playbook invokescommunity.general.lvgto create the VG/Thin Pool. - If mapping an existing path (
pve/data), LVM tasks are skipped, and the target is registered directly in Linstor.
- If mapping a raw disk (