Add examples with schema and disks
This commit is contained in:
parent
2beeddb512
commit
b475a0f730
42
etc/bareon-dynamic-allocator/common_schema.yaml
Normal file
42
etc/bareon-dynamic-allocator/common_schema.yaml
Normal file
@ -0,0 +1,42 @@
|
||||
- id: os
|
||||
type: vg
|
||||
contains:
|
||||
- id: swap
|
||||
- id: root
|
||||
|
||||
- id: root
|
||||
type: lv
|
||||
max_size: 10000
|
||||
min_size: 5000
|
||||
mount: /
|
||||
fs_type: ext4
|
||||
|
||||
- id: swap
|
||||
type: lv
|
||||
# TODO: Should be calculated based on RAM
|
||||
size: 2000
|
||||
fs_type: swap
|
||||
|
||||
- id: logs
|
||||
type: vg
|
||||
contains:
|
||||
- id: log
|
||||
|
||||
- id: log
|
||||
type: lv
|
||||
mount: /var/log
|
||||
fs_type: ext4
|
||||
min_size: 1000
|
||||
max_size: 10000
|
||||
|
||||
- id: dynamic_data
|
||||
type: vg
|
||||
contains:
|
||||
- id: dynamic_data_var_lib
|
||||
- id: dynamic_data_var_www
|
||||
|
||||
- id: dynamic_data_var_lib
|
||||
type: lv
|
||||
fs_type: ext4
|
||||
min: 1000
|
||||
mount: /var/lib
|
14
etc/bareon-dynamic-allocator/example_2_disks.yaml
Normal file
14
etc/bareon-dynamic-allocator/example_2_disks.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
disks:
|
||||
- id: /dev/disk/by-id/id-for-sda
|
||||
path: /dev/disk/by-path/path-for-sda
|
||||
dev: /dev/sda
|
||||
type: hdd
|
||||
vendor: Hitachi
|
||||
size: 30
|
||||
|
||||
- id: /dev/disk/by-id/id-for-sdb
|
||||
path: /dev/disk/by-path/path-for-sdb
|
||||
dev: /dev/sdb
|
||||
type: hdd
|
||||
vendor: Samsung
|
||||
size: 40
|
19
etc/bareon-dynamic-allocator/simple_schema.yaml
Normal file
19
etc/bareon-dynamic-allocator/simple_schema.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
- id: root
|
||||
type: lv
|
||||
min_size: 5000
|
||||
mount: /
|
||||
fs_type: ext4
|
||||
weight: 1
|
||||
|
||||
- id: test
|
||||
type: lv
|
||||
min_size: 5000
|
||||
mount: /test
|
||||
fs_type: ext4
|
||||
weight: 0.5
|
||||
|
||||
- id: swap
|
||||
type: lv
|
||||
# TODO: Should be calculated based on RAM
|
||||
size: 2000
|
||||
fs_type: swap
|
Loading…
Reference in New Issue
Block a user