summaryrefslogtreecommitdiff
path: root/manifests/sftp_only.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/sftp_only.pp')
-rw-r--r--manifests/sftp_only.pp52
1 files changed, 26 insertions, 26 deletions
diff --git a/manifests/sftp_only.pp b/manifests/sftp_only.pp
index b77d5b1..0990af2 100644
--- a/manifests/sftp_only.pp
+++ b/manifests/sftp_only.pp
@@ -1,30 +1,30 @@
# gid: by default it will take the same as the uid
define user::sftp_only(
- $ensure = present,
- $managehome = false,
- $uid = 'absent',
- $gid = 'uid',
- $homedir = 'absent',
- $homedir_mode = '0750',
- $password = 'absent',
- $password_crypted = true
+ $ensure = present,
+ $managehome = false,
+ $uid = 'absent',
+ $gid = 'uid',
+ $homedir = 'absent',
+ $homedir_mode = '0750',
+ $password = 'absent',
+ $password_crypted = true
) {
- require user::groups::sftponly
- user::managed{"${name}":
- ensure => $ensure,
- uid => $uid,
- gid => $gid,
- name_comment => "SFTP-only_user_${name}",
- groups => [ 'sftponly' ],
- managehome => $managehome,
- homedir => $homedir,
- homedir_mode => $homedir_mode,
- shell => $operatingsystem ? {
- debian => '/usr/sbin/nologin',
- ubuntu => '/usr/sbin/nologin',
- default => '/sbin/nologin'
- },
- password => $password,
- password_crypted => $password_crypted;
- }
+ require user::groups::sftponly
+ user::managed{$name:
+ ensure => $ensure,
+ uid => $uid,
+ gid => $gid,
+ name_comment => "SFTP-only_user_${name}",
+ groups => [ 'sftponly' ],
+ managehome => $managehome,
+ homedir => $homedir,
+ homedir_mode => $homedir_mode,
+ shell => $::operatingsystem ? {
+ debian => '/usr/sbin/nologin',
+ ubuntu => '/usr/sbin/nologin',
+ default => '/sbin/nologin'
+ },
+ password => $password,
+ password_crypted => $password_crypted;
+ }
}