aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server/share.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index d35adfb..48a4723 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -4,6 +4,7 @@ define samba::server::share($ensure = present,
$browsable = '',
$copy = '',
$create_mask = '',
+ $directory_mask = '',
$guest_ok = '',
$read_only = '') {
@@ -72,6 +73,16 @@ define samba::server::share($ensure = present,
notify => Class["samba::server::service"]
}
+ augeas { "${name}-directory_mask":
+ context => $context,
+ changes => $directory_mask ? {
+ default => "set \"${target}/directory mask\" '${directory_mask}'",
+ '' => "rm \"${target}/directory mask\"",
+ },
+ require => Augeas["${name}-section"],
+ notify => Class["samba::server::service"]
+ }
+
augeas { "${name}-guest_ok":
context => $context,
changes => $guest_ok ? {