Skip to content

Commit 53b9f74

Browse files
author
Joshua Hoblitt
committed
convert pureftpd::config_pgsql from a define into a class
1 parent d8bff85 commit 53b9f74

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

manifests/config_pgsql.pp

+2-28
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
# === TODO:
6969
# - implement template and variables for the pgsql config file
7070
#
71-
define pureftpd::config_pgsql(
71+
class pureftpd::config_pgsql (
7272
$use_selinux = false,
7373
$allow_anonymous = false,
7474
$allow_fxp = false,
@@ -81,32 +81,7 @@
8181
$use_tls = false,
8282
$force_passive_ip = undef,
8383
$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+
) {
11085

11186
file { "${pureftpd::params::config_dir}/pureftpd-pgsql.conf":
11287
ensure => file,
@@ -116,5 +91,4 @@
11691
mode => '0644',
11792
notify => Service[$pureftpd::params::service_name]
11893
}
119-
12094
}

0 commit comments

Comments
 (0)