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/nextcloud | |
parent | docker/containerd/kubelet: more flexible handling of zfs properties (diff) |
nextcloud/etherpad-lite imrpoved zfs property handling
Diffstat (limited to 'roles/apps/nextcloud')
-rw-r--r-- | roles/apps/nextcloud/defaults/main.yml | 6 | ||||
-rw-r--r-- | roles/apps/nextcloud/tasks/main.yml | 8 |
2 files changed, 7 insertions, 7 deletions
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: |