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

update hdp gpg key location per docs #352

Merged
merged 2 commits into from
Oct 6, 2017
Merged

Conversation

dereklwood
Copy link
Contributor

Update the HDP GPG key location from
#{yum_base_url}/#{os}/#{key}/#{key}-Jenkins
to
#{yum_base_url}/#{os}/2.x/[GA|updates]/#{<version>}/#{key}/#{key}-Jenkins

This matches the HDP documented locations, and for centos7 the key doesn't exist at the old location.

HDP documented locations:

$ for d in centos6 centos7 ; do for v in 2.0.5.0 2.0.6.0 2.0.6.1 2.0.10.0 2.0.11.0 2.0.12.0 2.0.13.0 2.1.2.0 2.1.2.1 2.1.3.0 2.1.4.0 2.1.5.0 2.1.7.0 2.1.10.0 2.1.15.0 2.2.1.0 2.2.4.2 2.2.4.4 2.2.6.0 2.2.6.3 2.2.8.0 2.2.9.0 2.3.0.0 2.3.2.0 2.3.4.0 2.3.4.7 2.3.6.0 2.4.0.0 2.4.2.0 2.4.3.0 2.5.0.0 2.5.3.0 2.5.5.0 2.5.6.0 2.6.0.3 2.6.1.0 2.6.2.0 ; do curl -s http://public-repo-1.hortonworks.com/HDP/${d}/2.x/updates/${v}/hdp.repo | grep gpgkey | uniq ; done ; done
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.0.12.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.0.13.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.3.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.4.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.5.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.7.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.10.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.15.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.4.2/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.4.4/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.6.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.8.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.2.9.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.6.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.3.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.3.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.5.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.5.6.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.0.3/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.6.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.3.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.3.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.3.4.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.3.4.7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.3.6.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.4.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.4.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.4.3.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.5.0.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.5.3.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.5.5.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.5.6.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.0.3/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.1.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
gpgkey=http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.2.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

But even for those versions <2.0.12 that document the old location, the key also exists in the new location:

$ for d in centos6 ; do for v in 2.0.5.0 2.0.6.0 2.0.6.1 2.0.10.0 2.0.11.0 ; do printf "${v} " ; curl -s -o /dev/null -w "%{http_code}\n" http://public-repo-1.hortonworks.com/HDP/${d}/2.x/updates/${v}/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins; done ; done
2.0.5.0 200
2.0.6.0 200
2.0.6.1 200
2.0.10.0 200
2.0.11.0 200

Copy link
Contributor

@wolf31o2 wolf31o2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This LGTM... rubocop doesn't like the additional level of nesting.

@dereklwood
Copy link
Contributor Author

Yeah, I tried to find a solution to make both rubocop happy and that was easy to read, but I ended up just disabling this Cop for these lines.

@dereklwood dereklwood merged commit a3fc49b into master Oct 6, 2017
@dereklwood dereklwood deleted the feature/hdp-gpg-key-url branch October 6, 2017 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants