File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 29
29
# Path to the mailcatcher program.
30
30
# The default is '/usr/local/bin'
31
31
#
32
+ # [*service_enable*]
33
+ # Enable Service at boot
34
+ # The default is false
35
+ #
32
36
# === Examples
33
37
#
34
38
# [*default*]
58
62
$smtp_port = $mailcatcher::params::smtp_port,
59
63
$http_ip = $mailcatcher::params::http_ip,
60
64
$http_port = $mailcatcher::params::http_port,
61
- $mailcatcher_path = $mailcatcher::params::mailcatcher_path
65
+ $mailcatcher_path = $mailcatcher::params::mailcatcher_path,
66
+ $service_enable = $mailcatcher::params::service_enable,
62
67
) inherits mailcatcher::params {
63
68
64
69
class {'mailcatcher::package' : } ->
Original file line number Diff line number Diff line change 5
5
$smtp_port = ' 1025'
6
6
$http_ip = ' 0.0.0.0'
7
7
$http_port = ' 1080'
8
+ $service_enable = false
8
9
9
10
case $::osfamily {
10
11
' Debian' : {
Original file line number Diff line number Diff line change 3
3
class mailcatcher::service {
4
4
service {'mailcatcher' :
5
5
ensure => ' running' ,
6
+ enable => $mailcatcher::service_enable ,
6
7
provider => $mailcatcher::params::provider ,
7
8
hasstatus => true ,
8
9
hasrestart => true ,
9
10
require => Class[' mailcatcher::config' ],
10
11
}
11
- }
12
+ }
You can’t perform that action at this time.
0 commit comments