summaryrefslogtreecommitdiff
path: root/roles/storage/zfs/base/defaults/main.yml
blob: 80e4803d9faf72c8080c7bf3f5410533bed39ebd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
zfs_use_systemd_mount_generator: yes
#zfs_arc_size:
#  min: 512MB
#  max: 8GB

zfs_pool_default_properties:
  ashift: 12

# zfs_pools:
#   storage:
#     mountpoint: /srv/storage
#     create_vdevs: mirror /dev/sda /dev/sdb  mirror /dev/sdc /dev/sdd  log mirror /dev/nvme0n1p3 /dev/nvme1n1p3  cache /dev/nvme0n1p4 /dev/nvme1n1p4
#   test:
#     mountpoint: /srv/test
#     create_vdevs: raidz /dev/sda /dev/sdb /dev/sdc /dev/sdd
#     properties:
#       ashift: 12
#       prop: value

zfs_volumes: {}

# zfs_volumes:
#   storage:
#     test:
#       properties:
#         quota: 1G
#     bar:
#       properties:
#         quota: 4G
#       children:
#         blub:
#           properties:
#             quota: 3G
#             xattr: sa
#             acltype: posix
#         hugo:
#           properties:
#             mountpoint: /var/lib/hugo
#             quota: 2G
#           children:
#             ben: {}
#     vms:
#       properties:
#         canmount: no
#         mountpoint: none
#   test:
#     sub1:
#       properties:
#         quota: 512M

zfs_devices: []

# zfs_devices:
#   - pool: storage
#     name: vms/host1
#     size: 1g
#     properties:
#       compression: lz4
#   - pool: storage
#     name: vms/host2
#     size: 2g