diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-14 21:33:41 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-14 21:33:41 +0200 |
commit | 3e462c69e5cc515e519dc2622ef151bb8d1ad386 (patch) | |
tree | 0aa926fdf24f2b783d2ae311bfbed6b465cf9277 /roles/apps | |
parent | docker/containerd/kubelet: more flexible handling of zfs properties (diff) |
nextcloud/etherpad-lite imrpoved zfs property handling
Diffstat (limited to 'roles/apps')
-rw-r--r-- | roles/apps/etherpad-lite/defaults/main.yml | 6 | ||||
-rw-r--r-- | roles/apps/etherpad-lite/tasks/main.yml | 8 | ||||
-rw-r--r-- | roles/apps/nextcloud/defaults/main.yml | 6 | ||||
-rw-r--r-- | roles/apps/nextcloud/tasks/main.yml | 8 |
4 files changed, 14 insertions, 14 deletions
diff --git a/roles/apps/etherpad-lite/defaults/main.yml b/roles/apps/etherpad-lite/defaults/main.yml index 5281c739..0fa2df2d 100644 --- a/roles/apps/etherpad-lite/defaults/main.yml +++ b/roles/apps/etherpad-lite/defaults/main.yml @@ -10,7 +10,8 @@ etherpad_lite_db_gid: "941" # etherpad_lite_zfs: # pool: storage # name: etherpad_lite -# size: 20G +# properties: +# compression: lz4 # etherpad_lite_instances: # example: @@ -18,7 +19,8 @@ etherpad_lite_db_gid: "941" # port: 8300 # hostnames: # - pad.example.com -# quota: 40G +# zfs_properties: +# quota: 5G # settings: # .... # credentials: diff --git a/roles/apps/etherpad-lite/tasks/main.yml b/roles/apps/etherpad-lite/tasks/main.yml index 6d4551db..0beeb1e1 100644 --- a/roles/apps/etherpad-lite/tasks/main.yml +++ b/roles/apps/etherpad-lite/tasks/main.yml @@ -6,18 +6,16 @@ zfs: name: "{{ etherpad_lite_zfs.pool }}/{{ etherpad_lite_zfs.name }}" state: present - extra_zfs_properties: - quota: "{{ etherpad_lite_zfs.size }}" + extra_zfs_properties: "{{ etherpad_lite_zfs.properties | default(omit) }}" - name: create zfs volumes for instances loop: "{{ etherpad_lite_instances | dict2items }}" loop_control: - label: "{{ item.key }} ({{ item.value.quota }})" + label: "{{ item.key }} ({{ (item.value.zfs_properties | default({})).items() | map('join', '=') | join(', ') }})" zfs: name: "{{ etherpad_lite_zfs.pool }}/{{ etherpad_lite_zfs.name }}/{{ item.key }}" state: present - extra_zfs_properties: - quota: "{{ item.value.quota }}" + extra_zfs_properties: "{{ item.value.zfs_properties | default(omit) }}" - name: configure etherpad_lite base bath set_fact: diff --git a/roles/apps/nextcloud/defaults/main.yml b/roles/apps/nextcloud/defaults/main.yml index 261f4fa6..f028713f 100644 --- a/roles/apps/nextcloud/defaults/main.yml +++ b/roles/apps/nextcloud/defaults/main.yml @@ -10,7 +10,8 @@ nextcloud_db_gid: "951" # nextcloud_zfs: # pool: storage # name: nextcloud -# size: 500G +# properties: +# compression: lz4 # nextcloud_instances: # example: @@ -20,7 +21,8 @@ nextcloud_db_gid: "951" # hostnames: # - wolke.example.com # - cloud.example.com -# quota: 100G +# zfs_properties: +# quota: 100G # database: # type: mariadb # version: 10.4.8 diff --git a/roles/apps/nextcloud/tasks/main.yml b/roles/apps/nextcloud/tasks/main.yml index 1a17bb55..b08ce2d0 100644 --- a/roles/apps/nextcloud/tasks/main.yml +++ b/roles/apps/nextcloud/tasks/main.yml @@ -6,18 +6,16 @@ zfs: name: "{{ nextcloud_zfs.pool }}/{{ nextcloud_zfs.name }}" state: present - extra_zfs_properties: - quota: "{{ nextcloud_zfs.size }}" + extra_zfs_properties: "{{ nextcloud_zfs.properties | default(omit) }}" - name: create zfs volumes for instances loop: "{{ nextcloud_instances | dict2items }}" loop_control: - label: "{{ item.key }} ({{ item.value.quota | default('-') }})" + label: "{{ item.key }} ({{ (item.value.zfs_properties | default({})).items() | map('join', '=') | join(', ') }})" zfs: name: "{{ nextcloud_zfs.pool }}/{{ nextcloud_zfs.name }}/{{ item.key }}" state: present - extra_zfs_properties: - quota: "{{ item.value.quota }}" + extra_zfs_properties: "{{ item.value.zfs_properties | default(omit) }}" - name: configure nextcloud base bath set_fact: |