Skip to content

Commit 136eb04

Browse files
committed
Merge pull request #13 from cboecker/patch-2
service enable at boot
2 parents 55667e3 + 7c07e91 commit 136eb04

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Diff for: manifests/init.pp

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
# Path to the mailcatcher program.
3030
# The default is '/usr/local/bin'
3131
#
32+
# [*service_enable*]
33+
# Enable Service at boot
34+
# The default is false
35+
#
3236
# === Examples
3337
#
3438
# [*default*]
@@ -58,7 +62,8 @@
5862
$smtp_port = $mailcatcher::params::smtp_port,
5963
$http_ip = $mailcatcher::params::http_ip,
6064
$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,
6267
) inherits mailcatcher::params {
6368

6469
class {'mailcatcher::package': } ->

Diff for: manifests/params.pp

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
$smtp_port = '1025'
66
$http_ip = '0.0.0.0'
77
$http_port = '1080'
8+
$service_enable = false
89

910
case $::osfamily {
1011
'Debian': {

Diff for: manifests/service.pp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
class mailcatcher::service {
44
service {'mailcatcher':
55
ensure => 'running',
6+
enable => $mailcatcher::service_enable,
67
provider => $mailcatcher::params::provider,
78
hasstatus => true,
89
hasrestart => true,
910
require => Class['mailcatcher::config'],
1011
}
11-
}
12+
}

0 commit comments

Comments
 (0)