aboutsummaryrefslogtreecommitdiff
path: root/manifests/server
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 14:49:06 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 14:49:06 -0400
commit43573ff80748bc28f39c6cf00295b38e63fa9e81 (patch)
treedb1827ce393301594a58070f269ee3b6c0d1334c /manifests/server
parent7e40de9d4489d6721e1d01abc95c8bb3bc9e355a (diff)
downloadpuppet-samba-43573ff80748bc28f39c6cf00295b38e63fa9e81.tar.gz
puppet-samba-43573ff80748bc28f39c6cf00295b38e63fa9e81.tar.bz2
implement directory mask config option
Diffstat (limited to 'manifests/server')
-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 ? {