2 changed files with 37 additions and 18 deletions
@ -1,22 +1,34 @@ |
|||||
class pureftpd::params { |
class pureftpd::params { |
||||
case $operatingsystem { |
case $::osfamily { |
||||
/(Ubuntu|Debian)/: { |
'Debian': { |
||||
case $auth_type { |
case $pureftpd::auth_type { |
||||
'mysql': { $real_auth_type = '-mysql' } |
'mysql': { |
||||
'ldap': { $real_auth_type = '-ldap' } |
$real_auth_type = '-mysql' |
||||
'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' |
|
||||
} |
} |
||||
|
'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 { |
case $pureftpd::virtualchroot { |
||||
true: { $real_virtualchroot = true } |
true: { |
||||
default: { $real_virtualchroot = false } |
$real_virtualchroot = true |
||||
|
} |
||||
|
default: { |
||||
|
$real_virtualchroot = false |
||||
} |
} |
||||
|
} |
||||
} |
} |
||||
|
Loading…
Reference in new issue