From 3080cc716d82bc0b8808954ea28debe85c35a4c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Ara=C3=B1a=20Cruz?= Date: Tue, 8 Jul 2014 20:10:52 +0100 Subject: [PATCH 1/2] Add support for PureDB authentication --- manifests/config.pp | 6 ++++++ manifests/params.pp | 1 + 2 files changed, 7 insertions(+) diff --git a/manifests/config.pp b/manifests/config.pp index a4f56b7..84de22c 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -22,4 +22,10 @@ class pureftpd::config { require => Class['pureftpd::install'], notify => Class['pureftpd::service'], } + if ($pureftpd::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..db4d5ee 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 = '' } From e29312bac74c2ab09fd62564efe2d1d3cb50cc46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Ara=C3=B1a=20Cruz?= Date: Fri, 25 Jul 2014 09:02:34 +0100 Subject: [PATCH 2/2] Remove unneeded puredb from pureftpd::params switch. --- manifests/params.pp | 1 - 1 file changed, 1 deletion(-) diff --git a/manifests/params.pp b/manifests/params.pp index db4d5ee..5b32e18 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -11,7 +11,6 @@ class pureftpd::params { 'postgresql': { $real_auth_type = '-postgresql' } - 'puredb', default: { $real_auth_type = '' }