Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add hdp-gpl repository configuration #359

Merged
merged 1 commit into from
May 2, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions recipes/repo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,17 @@
gpgkey yum_repo_key_url
action :add
end

# HDP 2.6.4.0 has moved hadooplzo to a separate repo
yum_repository 'hdp-updates' do
name 'HDP-GPL-2.x'
description 'Hortonworks Data Platform Version - HDP-GPL-2.x'
url "#{yum_base_url}-GPL/#{os}/2.x/updates/#{hdp_update_version}"
gpgkey yum_repo_key_url
action :add
only_if { Gem::Version.new(hdp_update_version) >= Gem::Version.new('2.6.4.0') }
end

end
yum_repository 'hdp-utils' do
name "HDP-UTILS-#{hdp_utils_version}"
Expand Down Expand Up @@ -169,6 +180,18 @@
components ['main']
action :add
end

# HDP 2.6.4.0 has moved hadooplzo to a separate repo
apt_repository 'hdp-gpl' do
uri "#{apt_base_url}-GPL/#{os}/2.x/updates/#{hdp_update_version}"
key apt_repo_key_url
distribution 'HDP-GPL'
trusted true
components ['main']
action :add
only_if { Gem::Version.new(hdp_update_version) >= Gem::Version.new('2.6.4.0') }
end

apt_repository 'hdp-utils' do
uri "#{apt_base_url}-UTILS-#{hdp_utils_version}/repos/#{os}"
key apt_repo_key_url
Expand Down