Skip to content

Commit 60828ea

Browse files
committed
nfsd: Don't provision LVM if nfsd_export_fs is tmpfs
tmpfs exports don't use any kind of persistent storage, so there is no need to set up a logical volume for them. In the cloud, this enables the nfsd target node to avoid provisioning potentially costly extra block storage devices. Signed-off-by: Chuck Lever <[email protected]>
1 parent 3404f94 commit 60828ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

playbooks/roles/nfsd/tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
tasks_from: add_initiator
2929
when:
3030
- nfsd_export_storage_iscsi|bool
31+
- nfsd_export_fstype != "tmpfs"
3132

3233
- name: Build string of devices to use as PVs
3334
set_fact:
@@ -47,6 +48,7 @@
4748
pvs: "{{ nfsd_lvm_pvs | join(',') }}"
4849
when:
4950
- nfsd_export_storage_local|bool
51+
- nfsd_export_fstype != "tmpfs"
5052

5153
- name: Create {{ nfsd_export_path }}
5254
become: yes

0 commit comments

Comments
 (0)