2015-10-23 20:14:15 +00:00
|
|
|
# add nginx apt repository
|
2019-06-11 22:24:35 +00:00
|
|
|
case node["platform"]
|
|
|
|
when "ubuntu"
|
2016-08-04 12:59:48 +00:00
|
|
|
# use ppa
|
2019-06-11 22:24:35 +00:00
|
|
|
apt_repository "nginx" do
|
|
|
|
uri "ppa:nginx/stable"
|
|
|
|
distribution node["lsb"]["codename"]
|
2015-10-23 20:14:15 +00:00
|
|
|
end
|
2016-11-04 14:25:31 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
apt_repository "chef-stable" do
|
|
|
|
uri "https://packages.chef.io/stable-apt"
|
|
|
|
key "https://downloads.chef.io/packages-chef-io-public.key"
|
|
|
|
distribution node["lsb"]["codename"]
|
|
|
|
components ["main"]
|
2016-11-04 14:25:31 +00:00
|
|
|
trusted true
|
|
|
|
end
|
2019-06-11 22:24:35 +00:00
|
|
|
when "debian"
|
2016-08-04 12:59:48 +00:00
|
|
|
# use plain repo
|
2019-06-11 22:24:35 +00:00
|
|
|
apt_repository "nginx" do
|
|
|
|
uri "http://nginx.org/packages/debian"
|
|
|
|
distribution node["lsb"]["codename"]
|
|
|
|
components ["nginx"]
|
2015-10-23 20:14:15 +00:00
|
|
|
end
|
2016-11-04 14:25:31 +00:00
|
|
|
|
2019-06-11 22:24:35 +00:00
|
|
|
apt_repository "chef-stable" do
|
|
|
|
uri "https://packages.chef.io/stable-apt"
|
|
|
|
key "https://downloads.chef.io/packages-chef-io-public.key"
|
|
|
|
distribution node["lsb"]["codename"]
|
|
|
|
components ["main"]
|
2016-11-04 14:25:31 +00:00
|
|
|
trusted true
|
|
|
|
end
|
2015-10-23 20:14:15 +00:00
|
|
|
end
|