diff options
author | Adrian Joian <a.joian@telekom.de> | 2014-01-26 10:43:19 +0100 |
---|---|---|
committer | Adrian Joian <a.joian@telekom.de> | 2014-01-26 10:43:19 +0100 |
commit | e369e9879f82dc455b6cc5c116768f21606fab8b (patch) | |
tree | 6e597bd0d96468b5824a9ff8a912c8ba7b36199b /manifests/server | |
parent | eb089b5b477b08ee1b8c211bb33b6fdf67ca887f (diff) | |
download | puppet-samba-e369e9879f82dc455b6cc5c116768f21606fab8b.tar.gz puppet-samba-e369e9879f82dc455b6cc5c116768f21606fab8b.tar.bz2 |
adding several minor options to server.pp and shares.pp
Diffstat (limited to 'manifests/server')
-rw-r--r-- | manifests/server/share.pp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp index 2233d45..b7d451f 100644 --- a/manifests/server/share.pp +++ b/manifests/server/share.pp @@ -1,4 +1,5 @@ define samba::server::share($ensure = present, + $available = '', $browsable = '', $comment = '', $copy = '', @@ -22,7 +23,7 @@ define samba::server::share($ensure = present, $printable = '', $valid_users = '', ) { - + $incl = $samba::server::incl $context = $samba::server::context $target = "target[. = '${name}']" @@ -41,6 +42,11 @@ define samba::server::share($ensure = present, if $ensure == 'present' { $changes = [ + $available ? { + true => "set \"${target}/available\" yes", + false => "set \"${target}/available\" no", + default => "rm \"${target}/available\"", + }, $browsable ? { true => "set \"${target}/browsable\" yes", false => "set \"${target}/browsable\" no", |