inspec/test/cookbooks/os_prepare/recipes/apt.rb
2016-08-05 10:52:03 +02:00

20 lines
431 B
Ruby

# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter
# add nginx apt repository
case node['platform']
when 'ubuntu'
# use ppa
apt_repository 'nginx' do
uri 'ppa:nginx/stable'
distribution node['lsb']['codename']
end
when 'debian'
# use plain repo
apt_repository 'nginx' do
uri 'http://nginx.org/packages/debian'
distribution node['lsb']['codename']
components ['nginx']
end
end