aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorAdam Jahn <ajjahn@gmail.com>2012-08-24 15:27:11 -0400
committerAdam Jahn <ajjahn@gmail.com>2012-08-24 15:27:11 -0400
commitd7bc114c20bb69914717d903ee913bae0879c5a6 (patch)
treea09d0f4e7273e0076b55b4e9119a63d92c9126d9 /manifests
parent117c73ee3eee4eda23bcb7c5625337db12b7caad (diff)
downloadpuppet-samba-d7bc114c20bb69914717d903ee913bae0879c5a6.tar.gz
puppet-samba-d7bc114c20bb69914717d903ee913bae0879c5a6.tar.bz2
implement guest account config option
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server/share.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/server/share.pp b/manifests/server/share.pp
index 64f4d82..22686b5 100644
--- a/manifests/server/share.pp
+++ b/manifests/server/share.pp
@@ -9,6 +9,7 @@ define samba::server::share($ensure = present,
$force_directory_mask = '',
$force_group = '',
$force_user = '',
+ $guest_account = '',
$guest_ok = '',
$guest_only = '',
$read_only = '') {
@@ -128,6 +129,16 @@ define samba::server::share($ensure = present,
notify => Class["samba::server::service"]
}
+ augeas { "${name}-guest_account":
+ context => $context,
+ changes => $guest_account ? {
+ default => "set \"${target}/guest account\" '${guest_account}'",
+ '' => "rm \"${target}/guest account\"",
+ },
+ require => Augeas["${name}-section"],
+ notify => Class["samba::server::service"]
+ }
+
augeas { "${name}-guest_ok":
context => $context,
changes => $guest_ok ? {