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 96b0510  [DLAB-1565]: Convey billing for remote endpoints - python 
libs added
96b0510 is described below

commit 96b05100c045d3fb7bd9d908930ca80129d26819
Author: Mykola_Bodnar1 <[email protected]>
AuthorDate: Thu Mar 12 13:40:25 2020 +0200

    [DLAB-1565]: Convey billing for remote endpoints - python libs added
---
 .../terraform/bin/deploy/endpoint_fab.py                       |  2 +-
 .../terraform/bin/deploy/mongo_files/configure_mongo.py        | 10 +---------
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py 
b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
index d117962..ea86b8b 100644
--- a/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
+++ b/infrastructure-provisioning/terraform/bin/deploy/endpoint_fab.py
@@ -260,7 +260,7 @@ def ensure_mongo_endpoint():
             conn.sudo('apt-get -y --allow-unauthenticated install mongodb-org')
             conn.sudo('systemctl enable mongod.service')
             conn.sudo('sudo apt-get -y install python-pip')
-            conn.sudo('pip install -U pymongo --no-cache-dir ')
+            conn.sudo('pip install -U pymongo pyyaml --no-cache-dir ')
             conn.sudo('touch /home/{}/.ensure_dir/mongo_ensured'
                       .format(args.os_user))
         print('[CONFIGURING MONGO DATABASE]')
diff --git 
a/infrastructure-provisioning/terraform/bin/deploy/mongo_files/configure_mongo.py
 
b/infrastructure-provisioning/terraform/bin/deploy/mongo_files/configure_mongo.py
index e4b97a2..14b89b4 100644
--- 
a/infrastructure-provisioning/terraform/bin/deploy/mongo_files/configure_mongo.py
+++ 
b/infrastructure-provisioning/terraform/bin/deploy/mongo_files/configure_mongo.py
@@ -22,21 +22,13 @@
 # 
******************************************************************************
 
 from pymongo import MongoClient
-import yaml, json, sys
+import yaml
 import subprocess
 import time
-import argparse
-from dlab.fab import *
 
 path = "/etc/mongod.conf"
 outfile = "/etc/mongo_params.yml"
 
-parser = argparse.ArgumentParser()
-
-#parser.add_argument('--mongo_parameters', type=str, default='')
-args = parser.parse_args()
-
-
 def add_2_yml_config(path, section, param, value):
     try:
         try:


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

Reply via email to