diff options
author | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:49:06 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:49:06 -0400 |
commit | 43573ff80748bc28f39c6cf00295b38e63fa9e81 (patch) | |
tree | db1827ce393301594a58070f269ee3b6c0d1334c /manifests/server | |
parent | 7e40de9d4489d6721e1d01abc95c8bb3bc9e355a (diff) | |
download | puppet-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.pp | 11 |
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 ? { |