summaryrefslogtreecommitdiff
path: root/roles/containerd
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-14 16:26:00 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-14 16:26:00 +0200
commitbbb9f4e09ba78eaf518d8e66caf5a437ebc6439b (patch)
treec24b6d52ec11cb545d95f7f233555147ad0801c3 /roles/containerd
parentinstall fzf on ch-equinox-ws (diff)
docker/containerd/kubelet: more flexible handling of zfs properties
Diffstat (limited to 'roles/containerd')
-rw-r--r--roles/containerd/tasks/zfs.yml10
1 files changed, 7 insertions, 3 deletions
diff --git a/roles/containerd/tasks/zfs.yml b/roles/containerd/tasks/zfs.yml
index 60c6f3fd..2ebcae3c 100644
--- a/roles/containerd/tasks/zfs.yml
+++ b/roles/containerd/tasks/zfs.yml
@@ -1,12 +1,16 @@
---
## containerd from ubuntu doesn't support zfs directly
-## we need to create a volume create an ext4 fs on top of that...
+## we need to create a volume and an ext4 fs on top of that...
+- name: verify that the zfs volsize property is set
+ assert:
+ msg: "contained does not support zfs directly - please set the volsize property to make it a volume"
+ that: "'volsize' in containerd_zfs.properties"
+
- name: create zfs volume
zfs:
name: "{{ containerd_zfs.pool }}/{{ containerd_zfs.name }}"
state: present
- extra_zfs_properties:
- volsize: "{{ containerd_zfs.size }}"
+ extra_zfs_properties: "{{ containerd_zfs.properties }}"
- name: create and ext4 filesystem on the zfs volume
filesystem: