make the require explicit via include
authormh <mh@immerda.ch>
Sun, 12 Feb 2012 16:22:36 +0000 (17:22 +0100)
committermh <mh@immerda.ch>
Sun, 12 Feb 2012 16:22:36 +0000 (17:22 +0100)
manifests/sftp_only.pp

index c1b6dcb..b77d5b1 100644 (file)
@@ -9,7 +9,7 @@ define user::sftp_only(
     $password = 'absent',
     $password_crypted = true
 ) {
-    include user::groups::sftponly
+    require user::groups::sftponly
     user::managed{"${name}":
         ensure => $ensure,
         uid => $uid,
@@ -25,7 +25,6 @@ define user::sftp_only(
             default => '/sbin/nologin'
         },
         password => $password,
-        password_crypted => $password_crypted,
-        require => Group['sftponly'],
+        password_crypted => $password_crypted;
     }
 }