This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2551
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to refs/heads/DATALAB-2551 by this push:
new 7859bb602 [DATALAB-2551]: fixed endpoint mongodb installation
7859bb602 is described below
commit 7859bb6027da55f543e2e2f689245f3a0cb29062
Author: leonidfrolov <[email protected]>
AuthorDate: Wed May 18 17:42:36 2022 +0300
[DATALAB-2551]: fixed endpoint mongodb installation
---
infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index 5682b2e7f..9446d3cac 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -270,10 +270,8 @@ 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.4.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.4
multiverse\" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.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]