refactor(vars): remove legacy variable inputs
This commit is contained in:
@@ -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
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user