2015-10-23 22:14:15 +02:00
|
|
|
# add nginx apt repository
|
2019-06-11 15:24:35 -07:00
|
|
|
case node["platform"]
|
|
|
|
when "ubuntu"
|
2016-08-04 14:59:48 +02:00
|
|
|
# use ppa
|
2019-06-11 15:24:35 -07:00
|
|
|
apt_repository "nginx" do
|
|
|
|
uri "ppa:nginx/stable"
|
|
|
|
distribution node["lsb"]["codename"]
|
2015-10-23 22:14:15 +02:00
|
|
|
end
|
2016-11-04 09:25:31 -05:00
|
|
|
|
2019-06-11 15:24:35 -07: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 09:25:31 -05:00
|
|
|
trusted true
|
|
|
|
end
|
2019-06-11 15:24:35 -07:00
|
|
|
when "debian"
|
2016-08-04 14:59:48 +02:00
|
|
|
# use plain repo
|
2019-06-11 15:24:35 -07:00
|
|
|
apt_repository "nginx" do
|
|
|
|
uri "http://nginx.org/packages/debian"
|
|
|
|
distribution node["lsb"]["codename"]
|
|
|
|
components ["nginx"]
|
2015-10-23 22:14:15 +02:00
|
|
|
end
|
2016-11-04 09:25:31 -05:00
|
|
|
|
2019-06-11 15:24:35 -07: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 09:25:31 -05:00
|
|
|
trusted true
|
|
|
|
end
|
2015-10-23 22:14:15 +02:00
|
|
|
end
|