diff options
author | John Hodrien <J.H.Hodrien@leeds.ac.uk> | 2016-03-09 16:45:24 +0000 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2016-07-10 15:00:26 -0400 |
commit | e5bea510003dd77683ac991e808b6983281dde44 (patch) | |
tree | f88f96034c0ae9ceb535513e940f0b0036612610 | |
parent | 4a6e4fb559d2c9c7bbda33c0afb6af5a2172e745 (diff) | |
download | puppet-samba-e5bea510003dd77683ac991e808b6983281dde44.tar.gz puppet-samba-e5bea510003dd77683ac991e808b6983281dde44.tar.bz2 |
Add msdfs_root paramter to share
-rw-r--r-- | manifests/server/share.pp | 6 |
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": |