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 | |
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')
-rw-r--r-- | manifests/server.pp | 14 | ||||
-rw-r--r-- | manifests/server/share.pp | 8 |
2 files changed, 21 insertions, 1 deletions
diff --git a/manifests/server.pp b/manifests/server.pp index 7003057..31589e0 100644 --- a/manifests/server.pp +++ b/manifests/server.pp @@ -3,6 +3,13 @@ class samba::server($interfaces = '', $server_string = '', $unix_password_sync = '', $workgroup = '', + $socket_options = '', + $deadtime = '', + $keepalive = '', + $load_printers = '', + $printing = '', + $printcap_name = '', + $disable_spoolss = '', $bind_interfaces_only = 'yes',) { include samba::server::install @@ -29,6 +36,13 @@ class samba::server($interfaces = '', 'server string': value => $server_string; 'unix password sync': value => $unix_password_sync; 'workgroup': value => $workgroup; + 'socket_options': value => $socket_options; + 'deadtime': value => $deadtime; + 'keepalive': value => $keepalive; + 'load_printers': value => $load_printers; + 'printing': value => $printing; + 'printcap_name': value => $printcap_name; + 'disable_spoolss': value => $disable_spoolss; } file {'check_samba_user': 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", |