aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/server')
-rw-r--r--manifests/server/share.pp6
1 files changed, 6 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index bb70753..86cbb13 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -38,6 +38,7 @@ define samba::server::share($ensure = present,
$inherit_acls = '',
$delete_readonly = '',
$printer_name = '',
+ $msdfs_root = '',
) {
$incl = $samba::server::incl
@@ -228,6 +229,11 @@ define samba::server::share($ensure = present,
'' => "rm \"${target}/printer name\"",
default => "set \"${target}/printer name\" '${printer_name}'",
},
+ $msdfs_root ? {
+ true => "set \"${target}/msdfs root\" yes",
+ false => "set \"${target}/msdfs root\" no",
+ default => "rm \"${target}/msdfs root\"",
+ },
]
augeas { "${name}-changes":