aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostclass/nfs_server
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hostclass/nfs_server')
-rw-r--r--scripts/hostclass/nfs_server3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/hostclass/nfs_server b/scripts/hostclass/nfs_server
index ec06bfe..a775859 100644
--- a/scripts/hostclass/nfs_server
+++ b/scripts/hostclass/nfs_server
@@ -13,6 +13,9 @@ nfs_dataset="${state_dataset}/nfs"
# Create ZFS dataset for NFS share.
create_dataset -o "mountpoint=${nfs_root}" "${nfs_dataset}"
+# Allow NFSv4 ACLs to propagate.
+zfs set aclinherit=passthrough aclmode=passthrough "$nfs_dataset"
+
# Create nfs service principal and keytab.
add_principal -nokey -x "containerdn=${services_basedn}" "nfs/${fqdn}"
ktadd -k "${keytab_dir}/host.keytab" "nfs/${fqdn}"