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

mykolabodnar pushed a commit to branch DLAB-1565
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/DLAB-1565 by this push:
     new d5a00cf  [DLAB-1565]: Convey billing for remote endpoints - Mongo on 
endpoint installation fixed
d5a00cf is described below

commit d5a00cf9a7007a9ae3f736394cdd08ef747040c1
Author: Mykola_Bodnar1 <[email protected]>
AuthorDate: Thu Mar 12 12:27:18 2020 +0200

    [DLAB-1565]: Convey billing for remote endpoints - Mongo on endpoint 
installation fixed
---
 .../terraform/bin/deploy/endpoint_fab.py                     | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py 
b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 13cb97e..8309517 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -252,12 +252,12 @@ def ensure_mongo_endpoint():
     try:
         print('[INSTALLING MONGO DATABASE]')
         if not exists(conn, 
'/home/{}/.ensure_dir/mongo_ensured'.format(args.os_user)):
-            conn.sudo('apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 
--recv EA312927')
-            conn.sudo('bash -c '
-                      'echo "deb http://repo.mongodb.org/apt/ubuntu 
$(lsb_release -cs)/mongodb-org/3.2 multiverse" | '
-                      'sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list; '
-                      'sudo apt-get update')
-            conn.sudo('apt-get -y --allow-unauthenticated install mongodb-org 
')
+            conn.sudo('bash -c wget -qO - 
https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -')
+            conn.sudo('bash -c echo "deb [ arch=amd64,arm64 ] '
+                      'https://repo.mongodb.org/apt/ubuntu $(lsb_release 
-cs)/mongodb-org/4.2 multiverse" | sudo '
+                      'tee /etc/apt/sources.list.d/mongodb-org-4.2.list')
+            conn.sudo('apt-get update')
+            conn.sudo('apt-get -y --allow-unauthenticated install mongodb-org')
             conn.sudo('systemctl enable mongod.service')
             conn.sudo('touch /home/{}/.ensure_dir/mongo_ensured'
                       .format(args.os_user))


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to