bareon-allocator/etc/bareon-dynamic-allocator/simple_schema.yaml
2015-12-29 21:15:06 +03:00

48 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- id: root
type: lv
min_size: 10
max_size: 20
mount: /
fs_type: ext4
- id: swap
type: lv
# Calc swap size according to RAM.
#
# | RAM | Recommended swap space |
# |--------------+-----------------------------|
# | <= 2GB | 2 times the amount of RAM |
# | > 2GB 8GB | Equal to the amount of RAM |
# | > 8GB 64GB | 0.5 times the amount of RAM |
# | > 64GB | 4GB of swap space |
#
# Source https://access.redhat.com/site/documentation/en-US/
# Red_Hat_Enterprise_Linux/6/html/Installation_Guide/
# s2-diskpartrecommend-ppc.html#id4394007
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)
fs_type: swap
- id: test
type: lv
min_size: 0
mount: /test
fs_type: ext4
best_with_disks: |
yaql=$.disks.where($.type = "ssd")
- id: partition
type: partition
min_size: 0
fs_type: ext4
mount: /var/www