summaryrefslogtreecommitdiff
path: root/roles/storage/lvm/base/defaults/main.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-01-22 21:19:39 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-01-22 21:19:39 +0100
commitc01d0e10681f45ed292a9c5ef5a10bf2d97f72ae (patch)
tree83b10001ea969a40b0ca8af1dfad1883b37c879a /roles/storage/lvm/base/defaults/main.yml
parentfix greenbone role (diff)
storage/lvm: simplify by moving thinpool handling to base role
Diffstat (limited to 'roles/storage/lvm/base/defaults/main.yml')
-rw-r--r--roles/storage/lvm/base/defaults/main.yml21
1 files changed, 12 insertions, 9 deletions
diff --git a/roles/storage/lvm/base/defaults/main.yml b/roles/storage/lvm/base/defaults/main.yml
index f85e2c80..bc57a43d 100644
--- a/roles/storage/lvm/base/defaults/main.yml
+++ b/roles/storage/lvm/base/defaults/main.yml
@@ -7,6 +7,14 @@ lvm_groups: {}
# - /dev/sdb
# - /dev/sdc
+lvm_thinpools: {}
+
+# lvm_thinpools:
+# foo/test:
+# vg: foo
+# lv: test
+# size: 4G
+
lvm_devices: {}
# lvm_devices:
@@ -14,17 +22,12 @@ lvm_devices: {}
# vg: "{{ host_name }}"
# lv: dev-test
# size: 1G
-# foo/test: &_lvm_thinpool_foo_test_
-# vg: foo
-# lv: test
-# thinpool: true
-# size: 4G
# foo/blub:
-# parent: *_lvm_thinpool_foo_test_
+# parent: "{{ lvm_thinpools['foo/test'] }}"
# lv: blub
# size: 3G
# foo/hugo:
-# parent: *_lvm_thinpool_foo_test_
+# parent: "{{ lvm_thinpools['foo/test'] }}"
# lv: hugo
# size: 2G
@@ -38,13 +41,13 @@ lvm_volumes: {}
# fs: ext4
# dest: /srv/test
# foo/app1:
-# parent: *_lvm_thinpool_foo_test_
+# parent: "{{ lvm_thinpools['foo/test'] }}"
# lv: app1
# size: 3G
# fs: ext4
# dest: /srv/app1
# foo/app2:
-# parent: *_lvm_thinpool_foo_test_
+# parent: "{{ lvm_thinpools['foo/test'] }}"
# lv: app2
# size: 2G
# fs: ext4