Skip to content

Commit

Permalink
add no_root_squash option
Browse files Browse the repository at this point in the history
  • Loading branch information
alex000kim committed Dec 12, 2024
1 parent 5e5640d commit 4cd1df6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cloud-init/nfs-cloud-init.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4cd1df6

Please sign in to comment.