Permalink
Browse files

install package from logentries repo

  • Loading branch information...
1 parent beae905 commit 84ff21f8cd1bb0efce0e0ce9067a450267fbe93a @jsierles committed Sep 19, 2012
Showing with 13 additions and 24 deletions.
  1. +3 −1 logentries/metadata.rb
  2. +10 −23 logentries/recipes/default.rb
View
@@ -1,4 +1,6 @@
maintainer "Joshua Sierles"
maintainer_email "joshua@diluvia.net"
description "Configures logentries"
-version "0.0.1"
+version "0.0.2"
+
+depends "apt"
@@ -1,25 +1,13 @@
package "python-simplejson"
-deb = "logentries_1.1.1_all.deb"
-debpath = "/var/tmp/#{deb}"
-
-remote_file "#{debpath}" do
- source "#{node[:package_url]}/#{deb}"
- not_if { File.exists?("#{debpath}")}
-end
-
-dpkg_package deb do
- source "#{debpath}"
- action :install
- only_if { File.exists?("#{debpath}")}
-end
-
-deb = "logentries-daemon_0.7.2_all.deb"
-debpath = "/var/tmp/#{deb}"
-
-remote_file "#{debpath}" do
- source "#{node[:package_url]}/#{deb}"
- not_if { File.exists?("#{debpath}")}
+apt_repository "logentries" do
+ uri "http://rep.logentries.com"
+ distribution "squeeze"
+ components ["main"]
+ keyserver "pgp.mit.edu"
+ key "C43C79AD"
+ action :add
+ notifies :run, "execute[apt-get update]", :immediately
end
directory "/etc/le"
@@ -28,9 +16,8 @@
not_if { File.exists?("/etc/le/config") }
end
-execute "install logentries daemon" do
- command "echo 'Y' | dpkg -i #{debpath}"
- not_if "dpkg -l | grep logentries-daemon | grep ii"
+package "logentries-daemon" do
+ action :install
end
execute "register agent" do

0 comments on commit 84ff21f

Please sign in to comment.