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.

Parameters:

  • ipv4only (Any) (defaults to: undef)
  • ipv6only (Any) (defaults to: undef)
  • chrooteveryone (Any) (defaults to: undef)
  • brokenclientscompatibility (Any) (defaults to: undef)
  • daemonize (Any) (defaults to: undef)
  • verboselog (Any) (defaults to: undef)
  • displaydotfiles (Any) (defaults to: undef)
  • anonymousonly (Any) (defaults to: undef)
  • noanonymous (Any) (defaults to: undef)
  • dontresolve (Any) (defaults to: undef)
  • anonymouscancreatedirs (Any) (defaults to: undef)
  • natmode (Any) (defaults to: undef)
  • calluploadscript (Any) (defaults to: undef)
  • antiwarez (Any) (defaults to: undef)
  • allowuserfxp (Any) (defaults to: undef)
  • allowanonymousfxp (Any) (defaults to: undef)
  • prohibitdotfileswrite (Any) (defaults to: undef)
  • prohibitdotfilesread (Any) (defaults to: undef)
  • allowdotfiles (Any) (defaults to: undef)
  • autorename (Any) (defaults to: undef)
  • anonymouscantupload (Any) (defaults to: undef)
  • logpid (Any) (defaults to: undef)
  • nochmod (Any) (defaults to: undef)
  • keepallfiles (Any) (defaults to: undef)
  • createhomedir (Any) (defaults to: undef)
  • norename (Any) (defaults to: undef)
  • customerproof (Any) (defaults to: undef)
  • notruncate (Any) (defaults to: undef)
  • filesystemcharset (Any) (defaults to: undef)
  • clientcharset (Any) (defaults to: undef)
  • syslogfacility (Any) (defaults to: undef)
  • fortunesfile (Any) (defaults to: undef)
  • forcepassiveip (Any) (defaults to: undef)
  • bind (Any) (defaults to: undef)
  • anonymousbandwidth (Any) (defaults to: undef)
  • userbandwidth (Any) (defaults to: undef)
  • trustedip (Any) (defaults to: undef)
  • altlog (Any) (defaults to: undef)
  • pidfile (Any) (defaults to: undef)
  • tlsciphersuite (Any) (defaults to: undef)
  • maxidletime (Any) (defaults to: undef)
  • maxdiskusage (Any) (defaults to: undef)
  • trustedgid (Any) (defaults to: undef)
  • maxclientsnumber (Any) (defaults to: undef)
  • maxclientsperip (Any) (defaults to: undef)
  • maxload (Any) (defaults to: undef)
  • minuid (Any) (defaults to: undef)
  • tls (Any) (defaults to: undef)
  • limitrecursion (Any) (defaults to: undef)
  • passiveportrange (Any) (defaults to: undef)
  • anonymousratio (Any) (defaults to: undef)
  • userratio (Any) (defaults to: undef)
  • umask (Any) (defaults to: undef)
  • quota (Any) (defaults to: undef)
  • peruserlimits (Any) (defaults to: undef)
  • ldapconfigfile (Any) (defaults to: undef)
  • mysqlconfigfile (Any) (defaults to: undef)
  • pgsqlconfigfile (Any) (defaults to: undef)
  • puredb (Any) (defaults to: undef)
  • extauth (Any) (defaults to: undef)
  • pamauthentication (Any) (defaults to: undef)
  • unixauthentication (Any) (defaults to: undef)


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',
  }
}