aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 14:40:51 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 14:40:51 -0400
commit1c4badb6ee219badf7d4369db128f9267cb863c0 (patch)
tree228150d51155bd51980db82792139dae0db4bc81 /manifests
parent9f67b46e97a3e342bf10db51ea91abb4db0af947 (diff)
downloadpuppet-samba-1c4badb6ee219badf7d4369db128f9267cb863c0.tar.gz
puppet-samba-1c4badb6ee219badf7d4369db128f9267cb863c0.tar.bz2
implement copy config option
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 1c3888e..eb86168 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -2,6 +2,7 @@ define samba::server::share($ensure = present,
$comment = '',
$path = '',
$browsable = '',
+ $copy = '',
$create_mask = '',
$guest_ok = '',
$read_only = '') {
@@ -51,6 +52,16 @@ define samba::server::share($ensure = present,
notify => Class["samba::server::service"]
}
+ augeas { "${name}-copy":
+ context => $context,
+ changes => $copy ? {
+ default => "set ${target}/copy '${copy}'",
+ '' => "rm ${target}/copy",
+ },
+ require => Augeas["${name}-section"],
+ notify => Class["samba::server::service"]
+ }
+
augeas { "${name}-create_mask":
context => $context,
changes => $create_mask ? {