summaryrefslogtreecommitdiffstats
path: root/juju/deploy_application.py
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-03-13 18:10:12 +0800
committerYingjun Li <yingjun.li@huawei.com>2017-03-16 05:58:41 +0000
commit6d809ad2460235ff8bc800a6e630c258df785cae (patch)
tree6289c0ffeea3076512d07b06cdd3eb01a7bd2025 /juju/deploy_application.py
parent3ad87b8a162fad9ad55807233db7a27fcc493756 (diff)
independent network for opera
1. launch open-o dockers directly on jump host instead of a vm 2. launch only one juju vm has both client and metadata function 3. add clearwater csar packages into opera repo 4. automatically deploy clearwater when key application in conf/application.yml has value clearwater 5. support keystone v3 Change-Id: Ic59f66d2cededf661aa7f6de2a40836ea40d8887 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com> (cherry picked from commit cd0feb45a414980fdd7249c9cc4fc28a1213c769)
Diffstat (limited to 'juju/deploy_application.py')
-rwxr-xr-xjuju/deploy_application.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/juju/deploy_application.py b/juju/deploy_application.py
new file mode 100755
index 0000000..22c7d9d
--- /dev/null
+++ b/juju/deploy_application.py
@@ -0,0 +1,26 @@
+#!/usr/bin/env python
+##############################################################################
+# Copyright (c) 2016-2017 HUAWEI TECHNOLOGIES CO.,LTD and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+import argparse
+from openo_connect import create_service
+
+
+if __name__ == "__main__":
+
+ parser = argparse.ArgumentParser()
+ parser.add_argument("--application", action='store', default='', help="app name")
+ parser.add_argument("--msb_ip", action='store', help="common_services_msb ip")
+
+ args = parser.parse_args()
+ application = args.application
+ msb_ip = args.msb_ip
+
+ if application == 'clearwater':
+ create_service(msb_ip, application, 'vIMS', 'ns_cw_2016')