|
1 |
| -# == Define: pureftpd::config_pgsql |
| 1 | +# == Class: pureftpd::config_pgsql |
2 | 2 | #
|
3 |
| -# This module manages the pure-ftpd configuration files with pgsql authentication |
4 |
| -# |
5 |
| -# === Parameters |
6 |
| -# |
7 |
| -# [*use_selinux*] |
8 |
| -# Optional, defaults to false. |
9 |
| -# Manages whether or not to enable selinux extensions. |
10 |
| -# |
11 |
| -# [*allow_anonymous*] |
12 |
| -# Optional, defaults to false. |
13 |
| -# Manages whether or not to allow anonymous users. |
14 |
| -# |
15 |
| -# [*allow_fxp*] |
16 |
| -# Optional, defaults to false. |
17 |
| -# Manages whether or not to allow the fxp protocol |
18 |
| -# |
19 |
| -# [*user_bandwidth*] |
20 |
| -# Optional, defaults to undef. |
21 |
| -# Defines the maximum bandwidth that the can be used, in the form |
22 |
| -# $kb_download:$kb_upload (e.g., 1800:1800). |
23 |
| -# |
24 |
| -# [*max_clients_number*] |
25 |
| -# Optional, defaults to 50. |
26 |
| -# Maximum number of simultaneous users that the server can manage. |
27 |
| -# |
28 |
| -# [*max_clients_per_ip*] |
29 |
| -# Optional, defaults to 8. |
30 |
| -# Maximum number of different clients that can come from a single IP |
31 |
| -# |
32 |
| -# [*umask*] |
33 |
| -# Optional, defaults to 133:022. |
34 |
| -# Specifies the user mask of the uploaded files/directories, in the form |
35 |
| -# $file_umask:$dir_umask (e.g., 177:077). |
36 |
| -# |
37 |
| -# [*min_uid*] |
38 |
| -# Optional, defaults to 500. |
39 |
| -# The minimum user id that can be accepted as an ftp user. |
40 |
| -# |
41 |
| -# [*allow_chmod*] |
42 |
| -# Optional, defaults to false. |
43 |
| -# Whether or not users are allowed to change ownerships of their files. |
44 |
| -# |
45 |
| -# [*use_tls*] |
46 |
| -# Optional, defaults to false. |
47 |
| -# Whether or not to accept tls connections in addition to normal ones. |
48 |
| -# TODO: Remember to place your server certificate in /etc/ssl/private/pure-ftpd.pem |
49 |
| -# |
50 |
| -# [*force_passive_ip*] |
51 |
| -# Optional, defaults to undef (not set) |
52 |
| -# Force an IP address in PASV/EPSV/SPSV replies |
53 |
| -# |
54 |
| -# [*motd_file*] |
55 |
| -# Optional, defaults to undef (use the dynamic provided file). |
56 |
| -# Manages the location of the server motd file, if any. |
57 |
| -# |
58 |
| -# === Examples |
59 |
| -# |
60 |
| -# pureftpd::config_pgsql { 'ftp-server': |
61 |
| -# user_bandwidth => '1800:1800' |
62 |
| -# } |
| 3 | +# This module manages the pure-ftpd configuration files with pgsql |
| 4 | +# authentication |
63 | 5 | #
|
64 | 6 | # === Authors
|
65 | 7 | #
|
66 | 8 | # 5Ub-Z3r0
|
| 9 | +# Joshua Hoblitt <[email protected]> |
67 | 10 | #
|
68 | 11 | # === TODO:
|
| 12 | +# |
69 | 13 | # - implement template and variables for the pgsql config file
|
70 | 14 | #
|
71 |
| -class pureftpd::config_pgsql ( |
72 |
| - $use_selinux = false, |
73 |
| - $allow_anonymous = false, |
74 |
| - $allow_fxp = false, |
75 |
| - $user_bandwidth = undef, |
76 |
| - $max_clients_number = '50', |
77 |
| - $max_clients_per_ip = '8', |
78 |
| - $umask = '133:022', |
79 |
| - $min_uid = '500', |
80 |
| - $allow_chmod = false, |
81 |
| - $use_tls = false, |
82 |
| - $force_passive_ip = undef, |
83 |
| - $motd_file = undef |
84 |
| -) { |
| 15 | + |
| 16 | +class pureftpd::config_pgsql inherits pureftpd::params { |
85 | 17 |
|
86 | 18 | file { $pureftpd::params::pgsql_conf_path:
|
87 | 19 | ensure => file,
|
|
0 commit comments