Commit 1296a7b Joshua Hoblitt
committed
1 parent 12b5798 commit 1296a7b Copy full SHA for 1296a7b
File tree 5 files changed +11
-12
lines changed
5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 115
115
$tls = false ,
116
116
$ipv4only = false ,
117
117
$ipv6only = false ,
118
-
119
- $use_selinux = false ,
120
- ){
121
-
122
- class { 'pureftpd' :
123
- use_selinux => $use_selinux
124
- }
118
+ ) inherits pureftpd::params {
125
119
126
120
$default_auth = ' unix'
127
121
Original file line number Diff line number Diff line change 19
19
#
20
20
class pureftpd (
21
21
$use_selinux=false
22
- ){
23
- include pureftpd::params, pureftpd::install, pureftpd::service
22
+ ) {
23
+ include pureftpd::install, pureftpd::config, pureftpd::service
24
+
25
+ Class[ ' pureftpd::install' ] ->
26
+ Class[ ' pureftpd::config' ] ->
27
+ Class[ ' pureftpd::service' ] ->
28
+ Class[ ' pureftpd' ]
24
29
}
Original file line number Diff line number Diff line change 13
13
#
14
14
# 5Ub-Z3r0
15
15
#
16
- class pureftpd::install {
16
+ class pureftpd::install inherits pureftpd::params {
17
17
package { $pureftpd::params::package_name :
18
18
ensure => present ,
19
19
}
Original file line number Diff line number Diff line change 21
21
#
22
22
# 5Ub-Z3r0
23
23
#
24
- class pureftpd::params {
24
+ class pureftpd::params inherits pureftpd {
25
25
case $::osfamily {
26
26
' RedHat' :{
27
27
$package_name = $pureftpd::use_selinux ?{
Original file line number Diff line number Diff line change 12
12
#
13
13
# 5Ub-Z3r0
14
14
#
15
- class pureftpd::service {
15
+ class pureftpd::service inherits pureftpd::params {
16
16
service { $pureftpd::params::service_name :
17
17
ensure => running ,
18
18
enable => true ,
You can’t perform that action at this time.
0 commit comments