Commit 9aa1ad3 Joshua Hoblitt
committed
1 parent 1296a7b commit 9aa1ad3 Copy full SHA for 9aa1ad3
File tree 2 files changed +6
-15
lines changed
2 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 79
79
$fortunesfile = false ,
80
80
$dontresolve = true ,
81
81
$maxidletime = ' 15' ,
82
+ $ldapconfigfile = false ,
83
+ $mysqlconfigfile = false ,
84
+ $pgsqlconfigfile = false ,
82
85
$pamauthentication = true ,
83
86
$unixauthentication = false ,
84
87
$limitrecursion = ' 10000 8' ,
117
120
$ipv6only = false ,
118
121
) inherits pureftpd::params {
119
122
120
- $default_auth = ' unix'
121
-
122
- # if ($motd_file != undef) {
123
- # file { '/etc/motd.pureftpd':
124
- # ensure => file,
125
- # source => $motd_file,
126
- # owner => 'root',
127
- # group => 'root',
128
- # mode => '0644'
129
- # }
130
- # }
131
-
132
123
file { "${pureftpd::params::config_dir}/pure-ftpd.conf" :
133
124
ensure => file ,
134
125
content => template (" ${module_name} /${::osfamily} /pure-ftpd.conf.erb" ),
Original file line number Diff line number Diff line change @@ -115,18 +115,18 @@ MaxIdleTime <%= @maxidletime %>
115
115
116
116
# LDAP configuration file (see README.LDAP)
117
117
118
- <% if default_auth != 'ldap' %> # <% end -%> LDAPConfigFile /etc/pure-ftpd/pureftpd-ldap.conf
118
+ <% if not @ldapconfigfile %> # <% end -%> LDAPConfigFile /etc/pure-ftpd/pureftpd-ldap.conf
119
119
120
120
121
121
122
122
# MySQL configuration file (see README.MySQL)
123
123
124
- <% if default_auth != 'mysql' %> # <% end -%> MySQLConfigFile /etc/pure-ftpd/pureftpd-mysql.conf
124
+ <% if not @mysqlconfigfile %> # <% end -%> MySQLConfigFile /etc/pure-ftpd/pureftpd-mysql.conf
125
125
126
126
127
127
# Postgres configuration file (see README.PGSQL)
128
128
129
- <% if default_auth != 'pgsql' %> # <% end -%> PGSQLConfigFile /etc/pure-ftpd/pureftpd-pgsql.conf
129
+ <% if not @pgsqlconfigfile %> # <% end -%> PGSQLConfigFile /etc/pure-ftpd/pureftpd-pgsql.conf
130
130
131
131
132
132
# PureDB user database (see README.Virtual-Users)
You can’t perform that action at this time.
0 commit comments