add $homedir option to sftponly user

This commit is contained in:
Jerome Charaoui 2009-12-28 17:48:36 -05:00
parent 3dd021c62d
commit c9e7ef4811

View file

@ -4,6 +4,7 @@ define user::sftp_only(
$managehome = false,
$uid = 'absent',
$gid = 'uid',
$homedir = 'absent',
$homedir_mode = '0750',
$password = 'absent',
$password_crypted = true
@ -16,6 +17,7 @@ define user::sftp_only(
name_comment => "SFTP-only_user_${name}",
groups => [ 'sftponly' ],
managehome => $managehome,
homedir => $homedir,
homedir_mode => $homedir_mode,
shell => $operatingsystem ? {
debian => '/usr/sbin/nologin',