allow to set allowdupe
authormh <mh@immerda.ch>
Wed, 28 Dec 2011 15:26:59 +0000 (16:26 +0100)
committermh <mh@immerda.ch>
Wed, 28 Dec 2011 15:26:59 +0000 (16:26 +0100)
manifests/managed.pp

index 94cda35..67b0b21 100644 (file)
@@ -35,6 +35,7 @@ define user::managed(
     $sshkey = 'absent',
     $password = 'absent',
     $password_crypted = true,
+    $allowdupe => false,
     $shell = 'absent'
 ){
 
@@ -62,7 +63,7 @@ define user::managed(
 
     user { $name:
         ensure => $ensure,
-        allowdupe => false,
+        allowdupe => $allowdupe,
         comment => "$real_name_comment",
         home => $real_homedir,
         managehome => $managehome,