Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #24 from pflarr/master
Browse files Browse the repository at this point in the history
More flexible nfsv4 export naming.
  • Loading branch information
dwerder committed Jun 2, 2015
2 parents 33ddd40 + 8c12314 commit a71496c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/server/export.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
define nfs::server::export (
$v3_export_name = $name,
$v4_export_name = regsubst($name, '.*/(.*)', '\1' ),
# Grab the final directory name in the given path and make it our default nfsv4 export name.
$v4_export_name = regsubst($name, '.*/([^/]+)/?$', '\1' ),
$clients = 'localhost(ro)',
$bind = 'rbind',
# globals for this share
Expand Down

0 comments on commit a71496c

Please sign in to comment.