Puppet Class: pureftpd::config::mysql
- Inherits:
- pureftpd::params
- Defined in:
- manifests/config/mysql.pp
Overview
Class: pureftpd::config::mysql
Manages the ‘pureftpd-mysql.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 58 59 60 61 62 63 |
# File 'manifests/config/mysql.pp', line 7
class pureftpd::config::mysql (
$mysqlserver = undef,
$mysqlport = undef,
$mysqlsocket = undef,
$mysqluser = undef,
$mysqlpassword = undef,
$mysqldatabase = undef,
$mysqlcrypt = undef,
$mysqltransactions = undef,
$mysqlgetpw = undef,
$mysqlgetuid = undef,
$mysqldefaultuid = undef,
$mysqlgetgid = undef,
$mysqldefaultgid = undef,
$mysqlgetdir = undef,
$mysqlforcetildeexpansion = undef,
$mysqlgetqtafs = undef,
$mysqlgetqtasz = undef,
$mysqlgetratioul = undef,
$mysqlgetratiodl = undef,
$mysqlgetbandwidthul = undef,
$mysqlgetbandwidthdl = undef,
) inherits pureftpd::params {
# options taken from pure-ftpd-1.0.30/configuration-file/log_mysql_p.h
$conf_options = [
'MYSQLServer',
'MYSQLPort',
'MYSQLSocket',
'MYSQLUser',
'MYSQLPassword',
'MYSQLDatabase',
'MYSQLCrypt',
'MYSQLTransactions',
'MYSQLGetPW',
'MYSQLGetUID',
'MYSQLDefaultUID',
'MYSQLGetGID',
'MYSQLDefaultGID',
'MYSQLGetDir',
'MYSQLForceTildeExpansion',
'MYSQLGetQTAFS',
'MYSQLGetQTASZ',
'MYSQLGetRatioUL',
'MYSQLGetRatioDL',
'MYSQLGetBandwidthUL',
'MYSQLGetBandwidthDL',
]
file { $pureftpd::params::mysql_conf_path:
ensure => file,
content => template("${module_name}/${pureftpd::params::mysql_conf_erb}"),
owner => 'root',
group => 'root',
mode => '0644',
}
}
|