From e5bea510003dd77683ac991e808b6983281dde44 Mon Sep 17 00:00:00 2001 From: John Hodrien Date: Wed, 9 Mar 2016 16:45:24 +0000 Subject: Add msdfs_root paramter to share --- manifests/server/share.pp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'manifests') 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": -- cgit v1.2.3