Skip to content

Commit

Permalink
Adding the option for setting root preexec on a share
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Brown committed Jul 1, 2016
1 parent 660ef67 commit ac7073b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions manifests/server/share.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
$store_dos_attributes = '',
$strict_allocate = '',
$hide_dot_files = '',
$root_preexec = '',
) {

$incl = $samba::server::incl
Expand Down Expand Up @@ -183,6 +184,10 @@
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":
Expand Down

0 comments on commit ac7073b

Please sign in to comment.