Puppet Class: pureftpd::config::pgsql
- Inherits:
- pureftpd::params
- Defined in:
- manifests/config/pgsql.pp
Overview
Class: pureftpd::config::pgsql
Manages the ‘pureftpd-pgsql.conf` file. This class should be considered private.
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'manifests/config/pgsql.pp', line 7
class pureftpd::config::pgsql (
$pgsqlserver = undef,
$pgsqlport = undef,
$pgsqluser = undef,
$pgsqlpassword = undef,
$pgsqldatabase = undef,
$pgsqlcrypt = undef,
$pgsqlgetpw = undef,
$pgsqlgetuid = undef,
$pgsqldefaultuid = undef,
$pgsqlgetgid = undef,
$pgsqldefaultgid = undef,
$pgsqlgetdir = undef,
$pgsqlgetqtafs = undef,
$pgsqlgetqtasz = undef,
$pgsqlgetratioul = undef,
$pgsqlgetratiodl = undef,
$pgsqlgetbandwidthul = undef,
$pgsqlgetbandwidthdl = undef,
) inherits pureftpd::params {
# pure-ftpd-1.0.30/src/log_pgsql_p.h
$conf_options = [
'PGSQLServer',
'PGSQLPort',
'PGSQLUser',
'PGSQLPassword',
'PGSQLDatabase',
'PGSQLCrypt',
'PGSQLGetPW',
'PGSQLGetUID',
'PGSQLDefaultUID',
'PGSQLGetGID',
'PGSQLDefaultGID',
'PGSQLGetDir',
'PGSQLGetQTAFS',
'PGSQLGetQTASZ',
'PGSQLGetRatioUL',
'PGSQLGetRatioDL',
'PGSQLGetBandwidthUL',
'PGSQLGetBandwidthDL',
]
file { $pureftpd::params::pgsql_conf_path:
ensure => file,
content => template("${module_name}/${pureftpd::params::pgsql_conf_erb}"),
owner => 'root',
group => 'root',
mode => '0644',
}
}
|