aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 14:31:00 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 14:31:00 -0400
commit4eb0354cf15068a02eb3f873d3fc241e55f75fc5 (patch)
treed6f3cfab7d6aeb24c4505aedd2f58ea6c4555360
parentb678ff0a00c3c78925accec9de6e135c6e1c0db0 (diff)
downloadpuppet-samba-4eb0354cf15068a02eb3f873d3fc241e55f75fc5.tar.gz
puppet-samba-4eb0354cf15068a02eb3f873d3fc241e55f75fc5.tar.bz2
provision create mask
-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 d9791cb..330a0b0 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -2,6 +2,7 @@ define samba::server::share($ensure = present,
$description = '',
$path = '',
$browsable = '',
+ $create_mask = '',
$guest_ok = '',
$read_only = '') {
@@ -50,6 +51,16 @@ define samba::server::share($ensure = present,
notify => Class["samba::server::service"]
}
+ augeas { "${name}-create_mask":
+ context => $context,
+ changes => $create_mask ? {
+ default => "set \"${target}/create mask\" yes",
+ '' => "rm \"${target}/create mask\"",
+ },
+ require => Augeas["${name}-section"],
+ notify => Class["samba::server::service"]
+ }
+
augeas { "${name}-guest_ok":
context => $context,
changes => $guest_ok ? {