You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by om...@apache.org on 2019/04/11 15:42:20 UTC

[incubator-dlab] branch EPMCDLAB-1186 updated: [DLAB-435]: Fixed issue with EMR libraries installation

This is an automated email from the ASF dual-hosted git repository.

omartushevskyi pushed a commit to branch EPMCDLAB-1186
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/EPMCDLAB-1186 by this push:
     new e274740  [DLAB-435]: Fixed issue with EMR libraries installation
e274740 is described below

commit e274740b16cee70a4147ca523d1cb275467825e6
Author: Oleh Martushevskyi <Ol...@epam.com>
AuthorDate: Thu Apr 11 18:31:28 2019 +0300

    [DLAB-435]: Fixed issue with EMR libraries installation
---
 .../src/dataengine-service/templates/repository.repo                  | 4 +---
 infrastructure-provisioning/src/general/lib/aws/actions_lib.py        | 3 +++
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/infrastructure-provisioning/src/dataengine-service/templates/repository.repo b/infrastructure-provisioning/src/dataengine-service/templates/repository.repo
index 76d6aee..5533f95 100644
--- a/infrastructure-provisioning/src/dataengine-service/templates/repository.repo
+++ b/infrastructure-provisioning/src/dataengine-service/templates/repository.repo
@@ -5,7 +5,6 @@ enabled=1
 gpgcheck=0
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
 priority=1
-sslverify=0
 
 [dlabrepo-updates]
 name=DLab Repository
@@ -13,5 +12,4 @@ baseurl=REPOSITORY_AMAZON_UPDATES/$basearch/
 enabled=1
 gpgcheck=0
 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
-priority=1
-sslverify=0
\ No newline at end of file
+priority=1
\ No newline at end of file
diff --git a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
index 0cc4b40..151f5ea 100644
--- a/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/aws/actions_lib.py
@@ -1960,6 +1960,9 @@ def find_des_jars(all_jars, des_path):
 
 
 def configure_dataengine_service_repos():
+    if 'local_repository_cert_path' in os.environ:
+        put('/root/certs/repository.crt', '/tmp/repository.crt')
+        sudo('cat /tmp/repository.crt >> /etc/ssl/certs/ca-bundle.crt')
     # Configuring yum
     put('templates/repository.repo', '/etc/yum.repos.d/repository.repo', use_sudo=True)
     sudo('sed -i "s|REPOSITORY_AMAZON_MAIN|{}|g" /etc/yum.repos.d/repository.repo'.format(


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org