Last active
December 11, 2015 19:38
-
-
Save uran1980/4649501 to your computer and use it in GitHub Desktop.
Chef :: Redis :: Add redis repo to Ubuntu or Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Cookbook Name:: redis | |
# Recipe:: default | |
# | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment