summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/heat_template/HOT_create_instance.sh
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-01-04 03:59:06 +0000
committerQiLiang <liangqi1@huawei.com>2016-01-04 04:03:28 +0000
commitb57d2ac822c2d706524c513f6e2baff19301fa05 (patch)
tree59bd44587371b66ce6609b12492c2860b130294c /utils/infra_setup/heat_template/HOT_create_instance.sh
parent9e0fdbac6e08d0f0e7b17f929725c2e2636599d6 (diff)
Update vm prepare setup
add nameserver, ssh-key configure and package install JIRA: BOTTLENECK-33 Change-Id: I66dca9d2367f85bc353ce159689028be97a3b78d Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'utils/infra_setup/heat_template/HOT_create_instance.sh')
-rwxr-xr-xutils/infra_setup/heat_template/HOT_create_instance.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/infra_setup/heat_template/HOT_create_instance.sh b/utils/infra_setup/heat_template/HOT_create_instance.sh
index 8ca54b06..ecb9ab80 100755
--- a/utils/infra_setup/heat_template/HOT_create_instance.sh
+++ b/utils/infra_setup/heat_template/HOT_create_instance.sh
@@ -90,6 +90,10 @@ bottlenecks_rubbos_run()
echo "$i=$ip" >> $BOTTLENECKS_REPO_DIR/utils/infra_setup/vm_dev_setup/hosts.conf
done
+ nameserver_ip=$(grep -m 1 '^nameserver' \
+ /etc/resolv.conf | awk '{ print $2 '})
+ echo "nameserver_ip=$nameserver_ip" >> $BOTTLENECKS_REPO_DIR/utils/infra_setup/vm_dev_setup/hosts.conf
+
scp $ssh_args -r \
$BOTTLENECKS_REPO_DIR/utils/infra_setup/vm_dev_setup \
ec2-user@$control_ip:/tmp