]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
adds unix_password_sync option to samba::server class
authorMark Phillips <embeepea@git>
Sat, 6 Oct 2012 23:45:06 +0000 (19:45 -0400)
committerAdam Jahn <ajjahn@gmail.com>
Fri, 15 Feb 2013 17:27:51 +0000 (12:27 -0500)
manifests/server.pp

index f3253bb22ee4ff4cf619bdf94bc63cc1324870ef..cc1a95110122694da21b1069720c6b016945c03b 100644 (file)
@@ -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 ? {