@@ -66,24 +66,30 @@ handles these values.
66
66
For example, if you wanted to create the configuration option example below in
67
67
the file ` /etc/pure-ftpd/pure-ftpd.conf ` :
68
68
69
+ ``` puppet
69
70
ChrootEveryone yes
71
+ ```
70
72
71
73
You would declare it like this to the ` pureftpd ` module:
72
74
75
+ ``` puppet
73
76
class { 'pureftpd':
74
77
config => {
75
78
chrooteveryone => 'yes',
76
79
}
77
80
}
81
+ ```
78
82
79
83
The notable exception to that rule is for these ` pure-ftpd.conf ` options, which
80
84
should not need to be manually declared. Passing a hash of configuration
81
85
options to the appropriate class parameter automatically defines these options
82
86
for you.
83
87
88
+ ``` puppet
84
89
LDAPConfigFile
85
90
MySQLConfigFile
86
91
PGSQLConfigFile
92
+ ```
87
93
88
94
89
95
### ` pure-ftpd ` Options
@@ -110,19 +116,24 @@ examples:
110
116
Install the ` pure-ftpd ` package with an empty ` pure-ftpd.conf ` config file
111
117
(accepting all defaults) and start ` pure-ftpd ` as a stand alone daemon.
112
118
119
+ ``` puppet
113
120
class { 'pureftpd': }
121
+ ```
114
122
115
123
### SELinux Support
116
124
125
+ ``` puppet
117
126
class { 'pureftpd':
118
127
use_selinux => true,
119
128
}
129
+ ```
120
130
121
131
### Setting Configuration Options
122
132
123
133
Options for ` pure-ftpd.conf ` should be passed into the ` config ` class parameter
124
134
as a hash.
125
135
136
+ ``` puppet
126
137
class { 'pureftpd':
127
138
config => {
128
139
ipv4only => 'yes',
@@ -189,12 +200,14 @@ as a hash.
189
200
pamauthentication => 'yes',
190
201
},
191
202
}
203
+ ```
192
204
193
205
### Enabling LDAP Authentication
194
206
195
207
Options for ` pureftpd-ldap.conf ` should be passed into the ` config_ldap ` class
196
208
parameter as a hash.
197
209
210
+ ``` puppet
198
211
class { 'pureftpd':
199
212
config_ldap => {
200
213
ldapserver => 'ldap.example.com',
@@ -212,12 +225,14 @@ parameter as a hash.
212
225
ldapauthmethod => 'PASSWORD',
213
226
},
214
227
}
228
+ ```
215
229
216
230
### Enabling MYSQL Authentication
217
231
218
232
Options for ` pureftpd-mysql.conf ` should be passed into the ` config_mysql `
219
233
class parameter as a hash.
220
234
235
+ ``` puppet
221
236
class { 'pureftpd':
222
237
config_mysql => {
223
238
mysqlserver => 'localhost'
@@ -243,12 +258,14 @@ class parameter as a hash.
243
258
mysqlgetbandwidthdl => 'SELECT DLBandwidth FROM users WHERE User="\L"'
244
259
},
245
260
}
261
+ ```
246
262
247
263
### Enabling PGSQL Authentication
248
264
249
265
Options for ` pureftpd-pgsql.conf ` should be passed into the ` config_pgsql `
250
266
class parameter as a hash.
251
267
268
+ ``` puppet
252
269
class { 'pureftpd':
253
270
config_pgsql => {
254
271
pgsqlserver => 'localhost',
@@ -271,9 +288,11 @@ class parameter as a hash.
271
288
pgsqlgetbandwidthdl => 'SELECT DLBandwidth FROM users WHERE User=\'\L\'',
272
289
},
273
290
}
291
+ ```
274
292
275
293
### Pedantic Example
276
294
295
+ ``` puppet
277
296
class { 'pureftpd':
278
297
use_selinux => true,
279
298
config => {
@@ -399,6 +418,7 @@ class parameter as a hash.
399
418
pgsqlgetbandwidthdl => 'SELECT DLBandwidth FROM users WHERE User=\'\L\'',
400
419
},
401
420
}
421
+ ```
402
422
403
423
404
424
Limitations
0 commit comments