Commit 53b9f74 Joshua Hoblitt
committed
1 parent d8bff85 commit 53b9f74 Copy full SHA for 53b9f74
File tree 1 file changed +2
-28
lines changed
1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change 68
68
# === TODO:
69
69
# - implement template and variables for the pgsql config file
70
70
#
71
- define pureftpd::config_pgsql (
71
+ class pureftpd::config_pgsql (
72
72
$use_selinux = false ,
73
73
$allow_anonymous = false ,
74
74
$allow_fxp = false ,
81
81
$use_tls = false ,
82
82
$force_passive_ip = undef ,
83
83
$motd_file = undef
84
- ){
85
-
86
- class { 'pureftpd' :
87
- use_selinux => $use_selinux
88
- }
89
-
90
- $default_auth = ' pgsql'
91
-
92
- if ($motd_file != undef ) {
93
- file { '/etc/motd.pureftpd' :
94
- ensure => file ,
95
- source => $motd_file ,
96
- owner => ' root' ,
97
- group => ' root' ,
98
- mode => ' 0644'
99
- }
100
- }
101
-
102
- file { "${pureftpd::params::config_dir}/pure-ftpd.conf" :
103
- ensure => file ,
104
- content => template (" ${module_name} /${::osfamily} /pure-ftpd.conf.erb" ),
105
- owner => ' root' ,
106
- group => ' root' ,
107
- mode => ' 0644' ,
108
- notify => Service[$pureftpd::params::service_name ]
109
- }
84
+ ) {
110
85
111
86
file { "${pureftpd::params::config_dir}/pureftpd-pgsql.conf" :
112
87
ensure => file ,
116
91
mode => ' 0644' ,
117
92
notify => Service[$pureftpd::params::service_name ]
118
93
}
119
-
120
94
}
You can’t perform that action at this time.
0 commit comments