From c9e7ef48118c98a36d54fe0ffc77a84e5c511d90 Mon Sep 17 00:00:00 2001 From: Jerome Charaoui Date: Mon, 28 Dec 2009 17:48:36 -0500 Subject: [PATCH] add $homedir option to sftponly user --- manifests/sftp_only.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/sftp_only.pp b/manifests/sftp_only.pp index 2047ef1..c1b6dcb 100644 --- a/manifests/sftp_only.pp +++ b/manifests/sftp_only.pp @@ -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',