Sha256: 4da8847e32b088ed71adc9d03a560e2a0086972f296f88a12a8101258d704c46

Contents?: true

Size: 565 Bytes

Versions: 9

Compression:

Stored size: 565 Bytes

Contents

package "monit" do
  action :install
end

if platform?("ubuntu")
  cookbook_file "/etc/default/monit" do
    source "monit.default"
    owner "root"
    group "root"
    mode 0644
  end
end

service "monit" do
  action :start
  enabled true
  supports [:start, :restart, :stop]
end

template "/etc/monit/monitrc" do
  owner "root"
  group "root"
  mode 0700
  source 'monitrc.erb'
  notifies :restart, resources(:service => "monit"), :immediate
end

directory "/etc/monit/conf.d/" do
  owner  'root'
  group 'root'
  mode 0755
  action :create
  recursive true
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mana-0.0.10 cookbooks/monit/recipes/default.rb
mana-0.0.8 cookbooks/monit/recipes/default.rb
mana-0.0.7 cookbooks/monit/recipes/default.rb
mana-0.0.6 cookbooks/monit/recipes/default.rb
mana-0.0.5 cookbooks/monit/recipes/default.rb
mana-0.0.4 cookbooks/monit/recipes/default.rb
mana-0.0.3 cookbooks/monit/recipes/default.rb
mana-0.0.2 cookbooks/monit/recipes/default.rb
mana-0.0.1 cookbooks/monit/recipes/default.rb