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 1954560 [DLAB-1565]: Convey billing for remote endpoints - Mongo on
endpoint installation fixed
1954560 is described below
commit 1954560192c8b4a78b35330a7fca1ca893190ab1
Author: Mykola_Bodnar1 <[email protected]>
AuthorDate: Thu Mar 12 11:43:35 2020 +0200
[DLAB-1565]: Convey billing for remote endpoints - Mongo on endpoint
installation fixed
---
.../terraform/bin/deploy/endpoint_fab.py | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 1c8c29a..4ff9f9b 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -252,15 +252,11 @@ 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-3.2.asc | sudo apt-key add -')
-
- 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-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; '
+ 'sudo 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]