Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

updated to 5.6, and added bulding from src #38

Closed
wants to merge 2 commits into from

2 participants

@jjasghar

I bumped to 0.7.3 because there was a 0.7.2 version out there too. I can add more variables for attributes, but this is the base to get working.

@yourabi
Collaborator

Hi

I'm a little confused about this - it seems like it will always download tarball and compile unconditionally.

What is the intent here?

@jjasghar

@yourabi yeah this was just a hack i created a while ago. I've moved past it since, i'll close this PR.

@jjasghar jjasghar closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 29, 2013
  1. updated to 5.6, and added bulding from src

    JJ Asghar authored
  2. it seems the initscript vanished

    JJ Asghar authored
This page is out of date. Refresh to see the latest.
Showing with 38 additions and 3 deletions.
  1. +1 −1  metadata.rb
  2. +37 −2 recipes/default.rb
View
2  metadata.rb
@@ -4,7 +4,7 @@
license "MIT"
description "Configures monit. Originally based off the 37 Signals Cookbook."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
-version "0.7.1"
+version "0.7.3"
attribute 'monit/notify_email',
View
39 recipes/default.rb
@@ -1,4 +1,32 @@
-package "monit"
+package "monit" do
+ action :remove
+end
+
+remote_file "/tmp/monit-5.6.tar.gz" do
+ source "http://mmonit.com/monit/dist/monit-5.6.tar.gz"
+ owner "root"
+ group "root"
+ mode 0644
+end
+
+script "compile_monit" do
+ interpreter "bash"
+ user "root"
+ cwd "/tmp"
+ creates "/usr/local/share/man/man1/monit.1"
+ code <<-EOH
+ STATUS=0
+ tar xvzf monit-5.6.tar.gz || STATUS=1
+ cd monit-5.6 || STATUS=1
+ ./configure --without-pam --without-ssl || STATUS=1
+ make || STATUS=1
+ make install || STATUS=1
+ cd /tmp
+ rm -rf monit-5.6*
+ exit $STATUS
+ EOH
+end
+
if platform?("ubuntu")
cookbook_file "/etc/default/monit" do
@@ -9,6 +37,13 @@
end
end
+cookbook_file "/etc/init.d/monit" do
+ action :create
+ owner "root"
+ group "root"
+ mode 0755
+ source 'init-monit-ubuntu12.sh'
+end
service "monit" do
action [:enable, :start]
enabled true
@@ -23,7 +58,7 @@
recursive true
end
-template "/etc/monit/monitrc" do
+template "/etc/monitrc" do
owner "root"
group "root"
mode 0700
Something went wrong with that request. Please try again.