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
monit
Commits
457fe19a
Commit
457fe19a
authored
Nov 17, 2014
by
mh
Browse files
also enable it for debian
parent
55d0bfaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/monitrc.Debian.erb
View file @
457fe19a
...
...
@@ -132,12 +132,12 @@ set alert <%= scope.lookupvar('monit::alert') %>
<%
if
scope
.
lookupvar
(
'monit::enable_httpd'
)
==
'yes'
-%>
set
httpd
port
<%=
scope
.
lookupvar
(
'monit::httpd_port'
)
%>
and
use
address
localhost
allow
localhost
<%
<%
if
@secret
require
'digest/sha1'
s
=
scope
.
lookupvar
(
'monit::secret'
)
-%>
allow
monit:
<%=
Digest
::
SHA1
.
hexdigest
(
s
+
Digest
::
SHA1
.
hexdigest
(
s
+
fqdn
))
%>
<%
end
-%>
allow
monit:
<%=
Digest
::
SHA1
.
hexdigest
(
@secret
+
Digest
::
SHA1
.
hexdigest
(
@secret
+
fqdn
))
%>
<%
end
end
-%>
#
###############################################################################
##
Services
...
...
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