From 660c769dcdf4e7ad340b397602caa463838ccb32 Mon Sep 17 00:00:00 2001 From: Mark Phillips Date: Sat, 6 Oct 2012 19:45:06 -0400 Subject: adds unix_password_sync option to samba::server class --- manifests/server.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manifests') 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 ? { -- cgit v1.2.3