2015-10-23 20:14:15 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
# author: Christoph Hartmann
|
|
|
|
# author: Dominik Richter
|
|
|
|
|
|
|
|
# add nginx apt repository
|
|
|
|
case node['platform']
|
|
|
|
when 'ubuntu'
|
2016-08-04 12:59:48 +00:00
|
|
|
# use ppa
|
2015-10-23 20:14:15 +00:00
|
|
|
apt_repository 'nginx' do
|
|
|
|
uri 'ppa:nginx/stable'
|
|
|
|
distribution node['lsb']['codename']
|
|
|
|
end
|
2016-11-04 14:25:31 +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']
|
|
|
|
trusted true
|
|
|
|
end
|
2015-10-23 20:14:15 +00:00
|
|
|
when 'debian'
|
2016-08-04 12:59:48 +00:00
|
|
|
# use plain repo
|
2015-10-23 20:14:15 +00:00
|
|
|
apt_repository 'nginx' do
|
|
|
|
uri 'http://nginx.org/packages/debian'
|
|
|
|
distribution node['lsb']['codename']
|
|
|
|
components ['nginx']
|
|
|
|
end
|
2016-11-04 14:25:31 +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']
|
|
|
|
trusted true
|
|
|
|
end
|
2015-10-23 20:14:15 +00:00
|
|
|
end
|