From acfdde6e056c6ef3c2486ef386bad75c753322ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Ara=C3=B1a=20Cruz?= Date: Tue, 8 Jul 2014 18:01:48 +0100 Subject: [PATCH] Add support for PureDB authentication. --- manifests/config.pp | 7 +++++++ manifests/params.pp | 1 + 2 files changed, 8 insertions(+) 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 = '' }