dataset/seed/systemd/extras/machine/10_systemd.yml

58 lines
1,008 B
YAML
Raw Permalink Normal View History

2024-10-01 13:18:45 +02:00
---
version: 1.1
var_size:
description: Variable directory size
hidden: true
default: 1024
add_tmp:
type: boolean
description: Add a temporary directory
hidden: true
var_tmp_size:
description: Temporary directory size
hidden: true
default: 1024
disabled:
variable: machine.add_tmp
when: false
add_srv:
type: boolean
description: Add a persistent directory
hidden: true
srv_size:
description: Persistent directory size
hidden: true
default: 1024
disabled:
variable: machine.add_srv
when: false
add_swap:
type: boolean
description: Add a SWAP partition
hidden: true
swap_size:
description: SWAP size
hidden: true
default: 512
disabled:
variable: machine.add_swap
when: false
data_disk_size:
redefine: true
default:
jinja: >-
{% set total = machine.var_size +
machine.var_tmp_size +
machine.srv_size +
machine.swap_size + 16
%}
{{ total }}