aboutsummaryrefslogtreecommitdiff
path: root/manifests/params.pp
blob: 911da7ef6c18a69b8358f5203a78251e5ed5d70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 = '' }
            }
            $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 }
    }
}