]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
enabling installation of samba account checking/creation shell scripts
authorjonoterc <jon_obuchowski@terc.edu>
Thu, 10 Oct 2013 21:26:29 +0000 (17:26 -0400)
committerAdam Jahn <ajjahn@gmail.com>
Fri, 10 Jan 2014 23:14:45 +0000 (18:14 -0500)
manifests/server.pp

index 0dfda008bc7ab77931f9b2ad9aca4b89ab7aa966..996149f7fb7b17d94dce264afa454a8a36abd4e9 100644 (file)
@@ -30,6 +30,24 @@ class samba::server($interfaces = '',
     'unix password sync':   value => $unix_password_sync;
     'workgroup':            value => $workgroup;
   }
+
+  file {'check_samba_user':
+    # script checks to see if a samba account exists for a given user
+    path    => '/sbin/check_samba_user',
+    owner   => root,
+    group   => root,
+    mode    => "0755",
+    content => template("${module_name}/check_samba_user"),
+  }
+
+  file {'add_samba_user':
+    # script creates a new samba account for a given user and password
+    path    => '/sbin/add_samba_user',
+    owner   => root,
+    group   => root,
+    mode    => "0755",
+    content => template("${module_name}/add_samba_user"),
+  }
 }
 
 define set_samba_option ( $value = '', $signal = 'samba::server::service' ) {