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

commit a3bd96247f8355f64425fc41f833cfac21b6e018
Author: Mykola_Bodnar1 <[email protected]>
AuthorDate: Thu Mar 12 12:38:22 2020 +0200

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

diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py 
b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 8309517..34cc60a 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -252,10 +252,10 @@ def ensure_mongo_endpoint():
     try:
         print('[INSTALLING MONGO DATABASE]')
         if not exists(conn, 
'/home/{}/.ensure_dir/mongo_ensured'.format(args.os_user)):
-            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("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')


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

Reply via email to