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 b453d50  [DLAB-1565]: Convey billing for remote endpoints - Mongo on 
endpoint fixed
b453d50 is described below

commit b453d5085edc8df829a614c5bd41e72f4a6e1687
Author: Mykola_Bodnar1 <[email protected]>
AuthorDate: Wed Mar 11 17:53:49 2020 +0200

    [DLAB-1565]: Convey billing for remote endpoints - Mongo on endpoint fixed
---
 infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py 
b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 965d8d0..42a1ab9 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -253,7 +253,14 @@ def ensure_mongo_endpoint():
         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 ver=`lsb_release -cs`; echo "deb 
http://repo.mongodb.org/apt/ubuntu $ver/mongodb-org/3.2 multiverse" | sudo tee 
/etc/apt/sources.list.d/mongodb-org-3.2.list; apt-get update')
+
+            conn.sudo('add-apt-repository "deb [arch=amd64] '
+                      'http://repo.mongodb.org/apt/ubuntu '
+                      '$(lsb_release -cs)mongodb-org/3.2 multiverse"')
+
+            conn.sudo('apt-get update')
+
+#            conn.sudo('bash -c ver=`lsb_release -cs`; echo "deb 
http://repo.mongodb.org/apt/ubuntu $ver/mongodb-org/3.2 multiverse" | sudo tee 
/etc/apt/sources.list.d/mongodb-org-3.2.list; apt-get update')
             conn.sudo('apt-get install mongodb-org -y --allow-unauthenticated 
install')
             conn.sudo('systemctl enable mongod.service')
             conn.sudo('touch /home/{}/.ensure_dir/mongo_ensured'


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

Reply via email to