Puppet Class: pureftpd::config
- Inherits:
- pureftpd::params
- Defined in:
- manifests/config.pp
Overview
Class: pureftpd::config
Manages the ‘pure-ftpd.conf` file. This class should be considered private.
6 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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'manifests/config.pp', line 6
class pureftpd::config(
$ipv4only = undef,
$ipv6only = undef,
$chrooteveryone = undef,
$brokenclientscompatibility = undef,
$daemonize = undef,
$verboselog = undef,
$displaydotfiles = undef,
$anonymousonly = undef,
$noanonymous = undef,
$dontresolve = undef,
$anonymouscancreatedirs = undef,
$natmode = undef,
$calluploadscript = undef,
$antiwarez = undef,
$allowuserfxp = undef,
$allowanonymousfxp = undef,
$prohibitdotfileswrite = undef,
$prohibitdotfilesread = undef,
$allowdotfiles = undef,
$autorename = undef,
$anonymouscantupload = undef,
$logpid = undef,
$nochmod = undef,
$keepallfiles = undef,
$createhomedir = undef,
$norename = undef,
$customerproof = undef,
$notruncate = undef,
$filesystemcharset = undef,
$clientcharset = undef,
$syslogfacility = undef,
$fortunesfile = undef,
$forcepassiveip = undef,
$bind = undef,
$anonymousbandwidth = undef,
$userbandwidth = undef,
$trustedip = undef,
$altlog = undef,
$pidfile = undef,
$tlsciphersuite = undef, # added post 1.0.31
$maxidletime = undef,
$maxdiskusage = undef,
$trustedgid = undef,
$maxclientsnumber = undef,
$maxclientsperip = undef,
$maxload = undef,
$minuid = undef,
$tls = undef,
$limitrecursion = undef,
$passiveportrange = undef,
$anonymousratio = undef,
$userratio = undef,
$umask = undef,
$quota = undef,
$peruserlimits = undef,
$ldapconfigfile = undef,
$mysqlconfigfile = undef,
$pgsqlconfigfile = undef,
$puredb = undef,
$extauth = undef,
$pamauthentication = undef,
$unixauthentication = undef,
) inherits pureftpd::params {
# options taken from pure-ftpd-1.0.30/configuration-file/pure-config.pl
$conf_options = [
'IPV4Only',
'IPV6Only',
'ChrootEveryone',
'BrokenClientsCompatibility',
'Daemonize',
'VerboseLog',
'DisplayDotFiles',
'AnonymousOnly',
'NoAnonymous',
'DontResolve',
'AnonymousCanCreateDirs',
'NATmode',
'CallUploadScript',
'AntiWarez',
'AllowUserFXP',
'AllowAnonymousFXP',
'ProhibitDotFilesWrite',
'ProhibitDotFilesRead',
'AllowDotFiles',
'AutoRename',
'AnonymousCantUpload',
'LogPID',
'NoChmod',
'KeepAllFiles',
'CreateHomeDir',
'NoRename',
'CustomerProof',
'NoTruncate',
'FileSystemCharset',
'ClientCharset',
'SyslogFacility',
'FortunesFile',
'ForcePassiveIP',
'Bind',
'AnonymousBandwidth',
'UserBandwidth',
'TrustedIP',
'AltLog',
'PIDFile',
'TLSCipherSuite',
'MaxIdleTime',
'MaxDiskUsage',
'TrustedGID',
'MaxClientsNumber',
'MaxClientsPerIP',
'MaxLoad',
'MinUID',
'TLS',
'LimitRecursion',
'PassivePortRange',
'AnonymousRatio',
'UserRatio',
'Umask',
'Quota',
'PerUserLimits',
'LDAPConfigFile',
'MySQLConfigFile',
'PGSQLConfigFile',
'PureDB',
'ExtAuth',
'UnixAuthentication',
'PAMAuthentication',
]
file { $pureftpd::params::conf_path:
ensure => file,
content => template("${module_name}/${pureftpd::params::conf_erb}"),
owner => 'root',
group => 'root',
mode => '0644',
}
}
|