aboutsummaryrefslogtreecommitdiff
path: root/manifests/params.pp
blob: 5b32e18fed9b1df4b720d1ed61a5bc544dd567eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
    }
  }
}