51 lines
700 B
YAML
51 lines
700 B
YAML
- id: os
|
|
type: vg
|
|
contains:
|
|
- id: swap
|
|
- id: root
|
|
|
|
- id: root
|
|
type: lv
|
|
size: 5000
|
|
mount: /
|
|
fs_type: ext4
|
|
|
|
- id: swap
|
|
type: lv
|
|
size: |
|
|
yaql=let(ram => $.get(ram, 1024)) ->
|
|
selectCase(
|
|
$ram <= 2048,
|
|
$ram > 2048 and $ram < 8192,
|
|
$ram > 8192 and $ram < 65536).
|
|
switchCase(
|
|
$ram * 2,
|
|
$ram,
|
|
$ram / 2,
|
|
4096)
|
|
best_with_disks: |
|
|
yaql=$.disks.where($.type = "ssd")
|
|
fs_type: swap
|
|
|
|
- id: logs
|
|
type: vg
|
|
contains:
|
|
- id: log
|
|
|
|
- id: log
|
|
type: lv
|
|
mount: /var/log
|
|
fs_type: ext4
|
|
size: 1000
|
|
|
|
- id: data
|
|
type: vg
|
|
contains:
|
|
- id: data_var_lib
|
|
|
|
- id: data_var
|
|
type: lv
|
|
fs_type: ext4
|
|
min: 1000
|
|
mount: /var
|