From 4cd1df6af2eb1d3b5ed126ae5435ed56ca415ff5 Mon Sep 17 00:00:00 2001 From: Alex Kim Date: Thu, 12 Dec 2024 13:17:48 -0500 Subject: [PATCH] add no_root_squash option --- modules/cloud-init/nfs-cloud-init.tftpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cloud-init/nfs-cloud-init.tftpl b/modules/cloud-init/nfs-cloud-init.tftpl index 328c4590..97f12fef 100644 --- a/modules/cloud-init/nfs-cloud-init.tftpl +++ b/modules/cloud-init/nfs-cloud-init.tftpl @@ -16,7 +16,7 @@ runcmd: - echo "/dev/vdb ${nfs_path} ext4 rw,relatime" | tee -a /etc/fstab - chown nobody:nogroup ${nfs_path} - chmod 777 ${nfs_path} -- echo "${nfs_path} ${nfs_ip_range}(rw,async,no_subtree_check)" >> /etc/exports +- echo "${nfs_path} ${nfs_ip_range}(rw,async,no_subtree_check,no_root_squash)" >> /etc/exports - netplan set ethernets.eth0.mtu=${mtu_size} - netplan apply - systemctl restart nfs-kernel-server