forked from rcbops-cookbooks/monit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metadata.rb
83 lines (64 loc) · 2.35 KB
/
metadata.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name "monit"
maintainer "Rackspace US, Inc"
license "Apache 2.0"
description "Installs and configures monit."
version IO.read(File.join(File.dirname(__FILE__), 'VERSION'))
%w{ amazon centos debian fedora oracle redhat scientific ubuntu }.each do |os|
supports os
end
%w{ osops-utils }.each do |dep|
depends dep
end
recipe "monit::default",
"Installs the monit package and configures the monit service"
recipe "monit::server",
"Installs the monit package and configures the monit service"
attribute "monit/poll_interval",
:description => "The monitor polling interval",
:default => "60"
attribute "monit/poll_start_delay",
:description => "The delay time before starting polling",
:default => "30"
attribute "monit/bind_port",
:description => "The port to bind monit to",
:default => "2812"
attribute "monit/bind_host",
:description => "The host/ip to find monit to",
:default => "0.0.0.0"
attribute "monit/login_user",
:description => "The monit login user",
:default => "admin"
attribute "monit/login_pass",
:description => "The monit login password",
:default => "monit"
attribute "monit/allowed_hosts",
:description => "The list of hosts allowed to connect to monit",
:default => ["0.0.0.0/0"]
attribute "monit/config_dir",
:description => "The monit configuration directory path",
:default => "(/etc|/etc/monit)"
attribute "monit/conf.d_dir",
:description => "The monit config.d directory path",
:default => "node['monit']['config_dir']/(monit.d|config.d)"
attribute "monit/service_bin",
:description => "The platform service management binary",
:default => "(/sbin/service|/usr/sbin/service)"
attribute "monit/config_file",
:description => "The monit configuration file path",
:default => "node['monit']['config_dir']/monitrc"
attribute "monit/notify_email",
:description => "Enable/Disable email notifications",
:default => nil
attribute "monit/mail_format/subject",
:description => "The email notification subject",
:default => "$SERVICE $EVENT"
attribute "monit/mail_format/from",
:description => "The email notifiation from address",
:default => "monit@example.com"
attribute "monit/mail_format/message",
:description => "The email notification message template",
:default => <<-EOS
Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION.
Yours sincerely,
monit
EOS