Commit 5b258e1 Joshua Hoblitt
committed
1 parent d178271 commit 5b258e1 Copy full SHA for 5b258e1
File tree 5 files changed +23
-11
lines changed
5 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 120
120
$ipv6only = false ,
121
121
) inherits pureftpd::params {
122
122
123
- file { "${ pureftpd::params::config_dir}/pure-ftpd.conf" :
123
+ file { $ pureftpd::params::conf_path :
124
124
ensure => file ,
125
- content => template (" ${module_name} /${::osfamily} /pure-ftpd.conf.erb " ),
125
+ content => template (" ${module_name} /${pureftpd::params::conf_erb} " ),
126
126
owner => ' root' ,
127
127
group => ' root' ,
128
128
mode => ' 0644' ,
Original file line number Diff line number Diff line change 102
102
#
103
103
# 5Ub-Z3r0
104
104
#
105
- class ' pureftpd::config_ldap' (
105
+ class pureftpd::config_ldap (
106
106
$ldap_port = ' 389' ,
107
107
$ldap_usetls = false ,
108
108
$ldap_server,
113
113
$ldap_authmethod
114
114
) {
115
115
116
- file { "${ pureftpd::params::config_dir}/pureftpd-ldap.conf" :
116
+ file { $ pureftpd::params::ldap_conf_path :
117
117
ensure => file ,
118
- content => template (" ${module_name} /${::osfamily} /pureftpd-ldap.conf.erb " ),
118
+ content => template (" ${module_name} /${pureftpd::params::ldap_conf_erb} " ),
119
119
owner => ' root' ,
120
120
group => ' root' ,
121
121
mode => ' 0644' ,
Original file line number Diff line number Diff line change 83
83
$motd_file = undef
84
84
) {
85
85
86
- file { "${ pureftpd::params::config_dir}/pureftpd-mysql.conf" :
86
+ file { $ pureftpd::params::mysql_conf_path :
87
87
ensure => file ,
88
- content => template (" ${module_name} /${::osfamily} /pureftpd-mysql.conf.erb " ),
88
+ content => template (" ${module_name} /${pureftpd::params::mysql_conf_erb} " ),
89
89
owner => ' root' ,
90
90
group => ' root' ,
91
91
mode => ' 0644' ,
Original file line number Diff line number Diff line change 83
83
$motd_file = undef
84
84
) {
85
85
86
- file { "${ pureftpd::params::config_dir}/pureftpd-pgsql.conf" :
86
+ file { $ pureftpd::params::pgsql_conf_path :
87
87
ensure => file ,
88
- content => template (" ${module_name} /${::osfamily} /pureftpd-pgsql.conf.erb " ),
88
+ content => template (" ${module_name} /${pureftpd::params::pgsql_conf_erb} " ),
89
89
owner => ' root' ,
90
90
group => ' root' ,
91
91
mode => ' 0644' ,
Original file line number Diff line number Diff line change 28
28
true => [' pure-ftpd' , ' pure-ftpd-selinux' ],
29
29
default => ' pure-ftpd'
30
30
}
31
- $config_dir = ' /etc/pure-ftpd'
32
- $service_name = ' pure-ftpd'
31
+ $config_dir = ' /etc/pure-ftpd'
32
+ $service_name = ' pure-ftpd'
33
+
34
+ $conf_erb = ' redhat/pure-ftpd.conf.erb'
35
+ $conf_path = " ${config_dir} /pure-ftpd.conf"
36
+
37
+ $ldap_conf_erb = ' redhat/pureftpd-ldap.conf.erb'
38
+ $ldap_conf_path = " ${config_dir} /pureftpd-ldap.conf"
39
+
40
+ $mysql_conf_erb = ' redhat/pureftpd-mysql.conf.erb'
41
+ $mysql_conf_path = " ${config_dir} /pureftpd-mysql.conf"
42
+
43
+ $pgsql_conf_erb = ' redhat/pureftpd-pgsql.conf.erb'
44
+ $pgsql_conf_path = " ${config_dir} /pureftpd-pgsql.conf"
33
45
}
34
46
default:{
35
47
fail (" The module is not available for ${::os_family} " )
You can’t perform that action at this time.
0 commit comments