Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
immerda
Puppet Modules
imapproxy
Commits
364c4e07
Commit
364c4e07
authored
Feb 05, 2014
by
mh
Browse files
make it possible to deploy monit
parent
8a36fff6
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
364c4e07
...
...
@@ -3,8 +3,10 @@
# GPLv3
#
# install and manage imapproxy
class
imapproxy
(
$manage_shorewall
=
false
$manage_shorewall
=
false
,
$manage_monit
=
false
,
)
{
case
$::operatingsystem
{
gentoo
:
{
include
imapproxy::gentoo
}
...
...
@@ -14,4 +16,7 @@ class imapproxy (
if
$manage_shorewall
{
include
shorewall::rules::out::imap
}
if
$manage_monit
{
include
imapproxy::monit
}
}
manifests/monit.pp
0 → 100644
View file @
364c4e07
# a monit snippet for imapproxy
class
imapproxy::monit
{
$service_cmd
=
$::operatingsystem
?
{
debian
=>
'/usr/sbin/service'
,
default
=>
'/sbin/service'
}
monit::check::process
{
'imapproxy'
:
pidfile
=>
'/var/run/imapproxy.pid'
,
start
=>
"
${service_cmd}
imapproxy start"
,
stop
=>
"
${service_cmd}
imapproxy stop"
,
customlines
=>
[
'if 5 restarts within 5 cycles then timeout'
],
require
=>
Service
[
'imapproxy'
],
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment