You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
760 B
34 lines
760 B
class pureftpd::params {
|
|
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/'
|
|
$service_name = "pure-ftpd${real_auth_type}"
|
|
$config_default_file = '/etc/default/pure-ftpd-common'
|
|
$config_source = 'debian'
|
|
}
|
|
}
|
|
|
|
case $pureftpd::virtualchroot {
|
|
true: {
|
|
$real_virtualchroot = true
|
|
}
|
|
default: {
|
|
$real_virtualchroot = false
|
|
}
|
|
}
|
|
}
|
|
|