|
|
@ -1,11 +1,19 @@ |
|
|
|
class pureftpd::params { |
|
|
|
case $operatingsystem { |
|
|
|
/(Ubuntu|Debian)/: { |
|
|
|
case $auth_type { |
|
|
|
'mysql': { $real_auth_type = '-mysql' } |
|
|
|
'ldap': { $real_auth_type = '-ldap' } |
|
|
|
'postgresql': { $real_auth_type = '-postgresql' } |
|
|
|
default: { $real_auth_type = '' } |
|
|
|
case $::osfamily { |
|
|
|
'Debian': { |
|
|
|
case $pureftpd::auth_type { |
|
|
|
'mysql': { |
|
|
|
$real_auth_type = '-mysql' |
|
|
|
} |
|
|
|
'ldap': { |
|
|
|
$real_auth_type = '-ldap' |
|
|
|
} |
|
|
|
'postgresql': { |
|
|
|
$real_auth_type = '-postgresql' |
|
|
|
} |
|
|
|
default: { |
|
|
|
$real_auth_type = '' |
|
|
|
} |
|
|
|
} |
|
|
|
$package_name = "pure-ftpd${real_auth_type}" |
|
|
|
$config_dir = '/etc/pure-ftpd/' |
|
|
@ -16,7 +24,11 @@ class pureftpd::params { |
|
|
|
} |
|
|
|
|
|
|
|
case $pureftpd::virtualchroot { |
|
|
|
true: { $real_virtualchroot = true } |
|
|
|
default: { $real_virtualchroot = false } |
|
|
|
true: { |
|
|
|
$real_virtualchroot = true |
|
|
|
} |
|
|
|
default: { |
|
|
|
$real_virtualchroot = false |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|