diff options
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/server.pp | 11 |
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 ? { |