diff options
author | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:40:51 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:40:51 -0400 |
commit | 1c4badb6ee219badf7d4369db128f9267cb863c0 (patch) | |
tree | 228150d51155bd51980db82792139dae0db4bc81 /manifests/server | |
parent | 9f67b46e97a3e342bf10db51ea91abb4db0af947 (diff) | |
download | puppet-samba-1c4badb6ee219badf7d4369db128f9267cb863c0.tar.gz puppet-samba-1c4badb6ee219badf7d4369db128f9267cb863c0.tar.bz2 |
implement copy config option
Diffstat (limited to 'manifests/server')
-rw-r--r-- | manifests/server/share.pp | 11 |
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 ? { |