aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMark Phillips <embeepea@git>2012-10-06 19:45:06 -0400
committerAdam Jahn <ajjahn@gmail.com>2013-02-15 12:27:51 -0500
commit660c769dcdf4e7ad340b397602caa463838ccb32 (patch)
tree556f124f9fe07040fa2b2db42c927b54be9244d3 /manifests
parent7a733793eb1d1f7fe534335b5d3dcd96031be039 (diff)
downloadpuppet-samba-660c769dcdf4e7ad340b397602caa463838ccb32.tar.gz
puppet-samba-660c769dcdf4e7ad340b397602caa463838ccb32.tar.bz2
adds unix_password_sync option to samba::server class
Diffstat (limited to 'manifests')
-rw-r--r--manifests/server.pp11
1 files changed, 11 insertions, 0 deletions
diff --git a/manifests/server.pp b/manifests/server.pp
index f3253bb..cc1a951 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -1,6 +1,7 @@
class samba::server($interfaces = '',
$security = '',
$server_string = '',
+ $unix_password_sync = '',
$workgroup = '') {
include samba::server::install
@@ -47,6 +48,16 @@ class samba::server($interfaces = '',
notify => Class['samba::server::service']
}
+ augeas { 'global-unix_password_sync':
+ context => $context,
+ changes => $unix_password_sync ? {
+ default => "set \"${target}/unix password sync\" '$unix_password_sync'",
+ '' => "rm \"${target}/unix_password_sync\"",
+ },
+ require => Augeas['global-section'],
+ notify => Class['samba::server::service']
+ }
+
augeas { 'global-workgroup':
context => $context,
changes => $workgroup ? {