diff --git a/manifests/config.pp b/manifests/config.pp index a4f56b7..916ad88 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -22,4 +22,11 @@ class pureftpd::config { require => Class['pureftpd::install'], notify => Class['pureftpd::service'], } + + if ($auth_type == 'puredb') { + file { '/etc/pure-ftpd/auth/50pure': + ensure => 'link', + target => '/etc/pure-ftpd/conf/PureDB', + } + } } diff --git a/manifests/params.pp b/manifests/params.pp index 5b32e18..5ca7dba 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -11,6 +11,7 @@ class pureftpd::params { 'postgresql': { $real_auth_type = '-postgresql' } + 'puredb': default: { $real_auth_type = '' }