refactor(vars): remove legacy variable inputs

- Require hypervisor as dict input and use hypervisor_cfg/hypervisor_type internally

- Remove vm_* and hypervisor_* compatibility aliases

- Update roles and docs to use system/hypervisor dictionaries only
This commit is contained in:
2026-02-11 05:37:18 +01:00
parent a6b051d9e4
commit 45d3fef4e2
20 changed files with 159 additions and 199 deletions

View File

@@ -119,7 +119,13 @@ partitioning_vm_size_effective: >-
(
partitioning_vm_size
if (partitioning_vm_size is defined and (partitioning_vm_size | float) > 0)
else (vm_size if vm_size is defined else 0)
else (
(
(system_cfg.disks | default([]) | first | default({})).size
if system_cfg is defined
else 0
) | default(0)
)
)
| float
}}
@@ -128,7 +134,10 @@ partitioning_vm_memory_effective: >-
(
partitioning_vm_memory
if (partitioning_vm_memory is defined and (partitioning_vm_memory | float) > 0)
else (vm_memory if vm_memory is defined else 0)
else (
(system_cfg.memory_mb if system_cfg is defined else 0)
| default(0)
)
)
| float
}}