diff options
author | QiLiang <liangqi1@huawei.com> | 2015-12-30 05:02:15 +0000 |
---|---|---|
committer | QiLiang <liangqi1@huawei.com> | 2015-12-30 06:21:29 +0000 |
commit | b23c5c9b89cdcd2ad73734807456426fada35c4a (patch) | |
tree | d812a648a999ae20e4f9bc6d3c26e111fd02b119 /utils/infra_setup/vm_dev_setup/setup_env.sh | |
parent | 8fdd4c13d48645b2d36602a0e8d011d8a18014e2 (diff) |
Rubbos vm ip CI auto config
JIRA: BOTTLENECK-37
Change-Id: I48e83735703f9ec102e347556ba6e201d2984402
Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'utils/infra_setup/vm_dev_setup/setup_env.sh')
-rwxr-xr-x | utils/infra_setup/vm_dev_setup/setup_env.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/infra_setup/vm_dev_setup/setup_env.sh b/utils/infra_setup/vm_dev_setup/setup_env.sh index e7b8c308..5b45de45 100755 --- a/utils/infra_setup/vm_dev_setup/setup_env.sh +++ b/utils/infra_setup/vm_dev_setup/setup_env.sh @@ -28,6 +28,20 @@ bottlenecks_download_repo() fi } +bottlenecks_config_hosts_ip() +{ + sed -i -e "s/REPLACE_CONTROL_HOST/$rubbos_control/g" \ + -e "s/REPLACE_HTTPD_HOST/$rubbos_httpd/g" \ + -e "s/REPLACE_MYSQL1_HOST/$rubbos_mysql1/g" \ + -e "s/REPLACE_TOMCAT1_HOST/$rubbos_tomcat1/g" \ + -e "s/REPLACE_CLIENT1_HOST/$rubbos_client1/g" \ + -e "s/REPLACE_CLIENT2_HOST/$rubbos_client2/g" \ + -e "s/REPLACE_CLIENT3_HOST/$rubbos_client3/g" \ + -e "s/REPLACE_CLIENT4_HOST/$rubbos_client4/g" \ + -e "s/REPLACE_BENCHMARK_HOST/$rubbos_benchmark/g" \ + $BOTTELENECKS_REPO_DIR/rubbos/rubbos_scripts/1-1-1/set_bottlenecks_rubbos_env.sh +} + bottlenecks_download_packages() { echo "Bottlenecks: download rubbos dependent packages from artifacts" @@ -56,6 +70,7 @@ main() SCRIPT_DIR=`cd ${BASH_SOURCE[0]%/*};pwd` source $SCRIPT_DIR/package.conf + source $SCRIPT_DIR/hosts.conf bottlenecks_prepare_env bottlenecks_download_repo |