aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2016-07-08 10:37:36 -0400
committerGitHub <noreply@github.com>2016-07-08 10:37:36 -0400
commit98e7b92963b8288de0a700b1acd7bc7abdd717f2 (patch)
tree6940cc2f0c328bcfe76f951551071955da05631f /manifests/server
parent660ef675107a60de16c6daeaccce6731a5139658 (diff)
parente92eee3eece276daa4d115bca7d7af71c5838005 (diff)
downloadpuppet-samba-98e7b92963b8288de0a700b1acd7bc7abdd717f2.tar.gz
puppet-samba-98e7b92963b8288de0a700b1acd7bc7abdd717f2.tar.bz2
Merge pull request #63 from powerhome/feature/root_preexec
Adding the option for setting root preexec on a share
Diffstat (limited to 'manifests/server')
-rwxr-xr-xmanifests/server/share.pp15
1 files changed, 10 insertions, 5 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index b0690bb..be4ee1e 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
@@ -159,23 +160,23 @@ define samba::server::share($ensure = present,
default => "rm \"${target}/strict allocate\"",
},
$valid_users ? {
- '' => "rm \"${target}/valid users\"",
+ '' => "rm \"${target}/valid users\"",
default => "set \"${target}/valid users\" '${valid_users}'",
},
$op_locks ? {
- '' => "rm \"${target}/oplocks\"",
+ '' => "rm \"${target}/oplocks\"",
default => "set \"${target}/oplocks\" '${op_locks}'",
},
$level2_oplocks ? {
- '' => "rm \"${target}/level2 oplocks\"",
+ '' => "rm \"${target}/level2 oplocks\"",
default => "set \"${target}/level2 oplocks\" '${level2_oplocks}'",
},
$veto_oplock_files ? {
- '' => "rm \"${target}/veto oplock files\"",
+ '' => "rm \"${target}/veto oplock files\"",
default => "set \"${target}/veto oplock files\" '${veto_oplock_files}'",
},
$write_list ? {
- '' => "rm \"${target}/write list\"",
+ '' => "rm \"${target}/write list\"",
default => "set \"${target}/write list\" '${write_list}'",
},
$hide_dot_files ? {
@@ -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":