diff options
Diffstat (limited to 'manifests/params.pp')
-rw-r--r-- | manifests/params.pp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manifests/params.pp b/manifests/params.pp new file mode 100644 index 0000000..911da7e --- /dev/null +++ b/manifests/params.pp @@ -0,0 +1,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 } + } +} |