Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add support for Debian 6

  • Loading branch information...
commit 51e56ececc3f928cc8c7ee425fe439ef01de86f9 1 parent f965f8b
@phlipper authored
Showing with 22 additions and 8 deletions.
  1. +2 −0  metadata.rb
  2. +20 −8 recipes/default.rb
View
2  metadata.rb
@@ -11,3 +11,5 @@
%w{ ubuntu debian }.each do |os|
supports os
end
+
+depends "apt"
View
28 recipes/default.rb
@@ -3,12 +3,24 @@
# Recipe:: default
#
-apt_repository "chris-lea-redis-server" do
- uri "http://ppa.launchpad.net/chris-lea/redis-server/ubuntu"
- distribution node["lsb"]["codename"]
- components ["main"]
- keyserver "keyserver.ubuntu.com"
- key "C7917B12"
- action :add
- notifies :run, "execute[apt-get update]", :immediately
+case node["lsb"]["id"]
+when "Debian"
+ apt_repository "dotdeb" do
+ uri "http://packages.dotdeb.org"
+ distribution node["lsb"]["codename"]
+ components ["all"]
+ key "http://www.dotdeb.org/dotdeb.gpg"
+ action :add
+ notifies :run, "execute[apt-get update]", :immediately
+ end
+when "Ubuntu"
+ apt_repository "chris-lea-redis-server" do
+ uri "http://ppa.launchpad.net/chris-lea/redis-server/ubuntu"
+ distribution node["lsb"]["codename"]
+ components ["main"]
+ keyserver "keyserver.ubuntu.com"
+ key "C7917B12"
+ action :add
+ notifies :run, "execute[apt-get update]", :immediately
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.