diff options
author | Pete Brown <pete@abstractit.com.au> | 2016-06-28 23:42:10 +1000 |
---|---|---|
committer | Pete Brown <pete@abstractit.com.au> | 2016-07-02 04:26:44 +1000 |
commit | ac7073b8633b361788cc6a2d08f42a8cc532593f (patch) | |
tree | 81bb1bb33ce6ad63d33c6cdd3dddce415873ad7e | |
parent | 660ef675107a60de16c6daeaccce6731a5139658 (diff) | |
download | puppet-samba-ac7073b8633b361788cc6a2d08f42a8cc532593f.tar.gz puppet-samba-ac7073b8633b361788cc6a2d08f42a8cc532593f.tar.bz2 |
Adding the option for setting root preexec on a share
-rwxr-xr-x | manifests/server/share.pp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp index b0690bb..d93cc0b 100755 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -30,6 +30,7 @@ define samba::server::share($ensure = present, $store_dos_attributes = '', $strict_allocate = '', $hide_dot_files = '', + $root_preexec = '', ) { $incl = $samba::server::incl @@ -183,6 +184,10 @@ define samba::server::share($ensure = present, false => "set \"${target}/hide dot files\" no", default => "rm \"${target}/hide dot files\"", }, + $root_preexec ? { + '' => "rm \"${target}/root preexec\"", + default => "set \"${target}/root preexec\" '${root_preexec}'", + }, ] augeas { "${name}-changes": |