Merge lp:~kwmonroe/charms/trusty/hdp-hive/trunk into lp:charms/trusty/hdp-hive

Proposed by Kevin W Monroe
Status: Merged
Merged at revision: 17
Proposed branch: lp:~kwmonroe/charms/trusty/hdp-hive/trunk
Merge into: lp:charms/trusty/hdp-hive
Diff against target: 39 lines (+5/-5)
2 files modified
files/scripts/gpg_ubuntu.sh (+2/-2)
hooks/hdputils.py (+3/-3)
To merge this branch: bzr merge lp:~kwmonroe/charms/trusty/hdp-hive/trunk
Reviewer Review Type Date Requested Status
Juju Big Data Development Pending
Review via email: mp+260889@code.launchpad.net

Description of the change

Allow keyserver access via port 80. The mit.edu keyserver used in our gpg_ubuntu.sh script supports this, and it eases the install burden for people in restricted networks (default hkp xfers happen over port 11371, which would probably not be open/forwarded in most restrictive networks; port 80 is more likely to be free).

Also pull packages from the hortonworks http site since their https certs are broken. Security implications should be minimal since we do checksum verification on the payload prior to install. This also helps in restrictive networks where 443 may be blocked (and 80 open).

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'files/scripts/gpg_ubuntu.sh'
2--- files/scripts/gpg_ubuntu.sh 2014-08-11 22:30:08 +0000
3+++ files/scripts/gpg_ubuntu.sh 2015-06-02 20:43:36 +0000
4@@ -1,3 +1,3 @@
5 #!/bin/sh
6-gpg --keyserver pgp.mit.edu --recv-keys B9733A7A07513CAD
7-gpg -a --export 07513CAD | apt-key add -
8\ No newline at end of file
9+gpg --keyserver hkp://pgp.mit.edu:80 --recv-keys B9733A7A07513CAD
10+gpg -a --export 07513CAD | apt-key add -
11
12=== modified file 'hooks/hdputils.py'
13--- hooks/hdputils.py 2014-09-19 02:55:54 +0000
14+++ hooks/hdputils.py 2015-06-02 20:43:36 +0000
15@@ -61,7 +61,7 @@
16 au = ArchiveUrlFetchHandler()
17 if not os.path.exists(listpath):
18 listsum = '3e53ca19f2c4461a6f4246a049a73779c4e81bce'
19- listurl = 'https://public-repo-1.hortonworks.com/HDP/ubuntu12/2.1.3.0/hdp.list'
20+ listurl = 'http://public-repo-1.hortonworks.com/HDP/ubuntu12/2.1.3.0/hdp.list'
21
22 tmpfile = au.download_and_validate(listurl, listsum)
23 shutil.move(tmpfile, listpath)
24@@ -74,7 +74,7 @@
25
26 helperpath = os.path.join(home, 'hdp_manual_install_rpm_helper_files-2.1.1.385.tar.gz')
27 if not os.path.exists(helperpath):
28- helperurl = 'https://public-repo-1.hortonworks.com/HDP/tools/2.1.1.0/hdp_manual_install_rpm_helper_files-2.1.1.385.tar.gz'
29+ helperurl = 'http://public-repo-1.hortonworks.com/HDP/tools/2.1.1.0/hdp_manual_install_rpm_helper_files-2.1.1.385.tar.gz'
30 helpersum = '5b59b7c71cf5bc95b19cf8d79dee170be5ceffd1'
31 tmpfile = au.download_and_validate(helperurl, helpersum)
32 shutil.move(tmpfile, helperpath)
33@@ -177,4 +177,4 @@
34 hdpScriptPath = os.path.join(os.path.sep,home, hdpScript,'scripts')
35 usersAndGroupsScript = os.path.join(os.path.sep, hdpScriptPath, "usersAndGroups.sh")
36 directoriesScript = os.path.join(os.path.sep, hdpScriptPath, "directories.sh")
37-bashrc = os.path.join(os.path.sep, home, '.bashrc')
38\ No newline at end of file
39+bashrc = os.path.join(os.path.sep, home, '.bashrc')

Subscribers

People subscribed via source and target branches