diff options
author | 2017-10-02 10:00:39 +0300 | |
---|---|---|
committer | 2017-10-02 10:00:39 +0300 | |
commit | 1e1e95ac6560f26fc154fab4c990235da5ba23c6 (patch) | |
tree | 713434f789d5ba1c2f322b3b4a73ab681fcf0bf4 /app | |
parent | d32f75145676bacefde0d08a14680a5984623451 (diff) |
calipso automation for apex is ready
Change-Id: I79302b9c1f26286e96d427e414f397d4885a7a57
Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/install/calipso-installer.py | 1 | ||||
-rw-r--r-- | app/install/configure/setup_apex_environment.py | 14 | ||||
-rw-r--r-- | app/install/db/apex_environment_config.json | 3 |
3 files changed, 10 insertions, 8 deletions
diff --git a/app/install/calipso-installer.py b/app/install/calipso-installer.py index c2b8579..be7b772 100644 --- a/app/install/calipso-installer.py +++ b/app/install/calipso-installer.py @@ -179,7 +179,6 @@ def start_mongo(dbport, copy): copy_file("connection_tests") copy_file("api_tokens") copy_file("user_settings") - copy_file("apex_environment_config") # note : 'messages', 'roles', 'users' and some of the 'constants' # are filled by calipso-ui at runtime diff --git a/app/install/configure/setup_apex_environment.py b/app/install/configure/setup_apex_environment.py index 7dc49c5..a37ae2c 100644 --- a/app/install/configure/setup_apex_environment.py +++ b/app/install/configure/setup_apex_environment.py @@ -132,7 +132,8 @@ class ApexEnvironmentFetcher: DEFAULTS = { 'logfile': '/home/calipso/log/apex_environment_fetch.log', 'mongo_config': '/local_dir/calipso_mongo_access.conf', - 'config_dir': '/home/calipso/Calipso/app/install/db', + 'config_dir': '/home/calipso/apex_setup_files', + 'install_db_dir': '/home/calipso/Calipso/app/install/db', 'env': 'Apex-Euphrates', 'loglevel': 'INFO', 'git_repo': 'https://git.opnfv.org/calipso', @@ -144,7 +145,7 @@ class ApexEnvironmentFetcher: REPO_LOCAL_NAME = 'Calipso' INSTALLER = 'python3 app/install/calipso-installer.py --command start-all' CONFIG_FILE_NAME = 'apex-configuration.conf' - ENV_CONFIG_FILE_NAME = 'apex_environment_config.json' + ENV_CONFIG_FILE_NAME = 'environments_config.json' OVERCLOUDRC_FILE = 'overcloudrc.v3' SSH_DIR = '/home/calipso/.ssh' SSH_OPTIONS = '-q -o StrictHostKeyChecking=no' @@ -162,7 +163,7 @@ class ApexEnvironmentFetcher: self.log = None self.config_file = '{}/{}'.format(self.args.config_dir, self.CONFIG_FILE_NAME) - self.env_config_file = '{}/{}'.format(self.args.config_dir, + self.env_config_file = '{}/{}'.format(self.args.install_db_dir, self.ENV_CONFIG_FILE_NAME) self.undercloud_user = 'root' self.undercloud_host = '192.0.2.1' @@ -192,7 +193,12 @@ class ApexEnvironmentFetcher: default=self.DEFAULTS['config_dir'], help='path to directory with config data\n' '(Default: {})' - .format(self.DEFAULTS['config_dir'])) + .format(self.DEFAULTS['config_dir'])) + parser.add_argument('-i', '--install_db_dir', nargs='?', type=str, + default=self.DEFAULTS['install_db_dir'], + help='path to directory with DB data\n' + '(Default: {})' + .format(self.DEFAULTS['install_db_dir'])) parser.add_argument('-a', '--apex', nargs='?', type=str, help='name of environment to Apex host') parser.add_argument('-e', '--env', nargs='?', type=str, diff --git a/app/install/db/apex_environment_config.json b/app/install/db/apex_environment_config.json deleted file mode 100644 index 918cd01..0000000 --- a/app/install/db/apex_environment_config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "_id" : "apex_environment_config_temp_id" -}
\ No newline at end of file |