diff options
author | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:31:00 -0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2012-08-24 14:31:00 -0400 |
commit | 4eb0354cf15068a02eb3f873d3fc241e55f75fc5 (patch) | |
tree | d6f3cfab7d6aeb24c4505aedd2f58ea6c4555360 /manifests | |
parent | b678ff0a00c3c78925accec9de6e135c6e1c0db0 (diff) | |
download | puppet-samba-4eb0354cf15068a02eb3f873d3fc241e55f75fc5.tar.gz puppet-samba-4eb0354cf15068a02eb3f873d3fc241e55f75fc5.tar.bz2 |
provision create mask
Diffstat (limited to 'manifests')
-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 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 ? { |