From b57d2ac822c2d706524c513f6e2baff19301fa05 Mon Sep 17 00:00:00 2001 From: QiLiang Date: Mon, 4 Jan 2016 03:59:06 +0000 Subject: Update vm prepare setup add nameserver, ssh-key configure and package install JIRA: BOTTLENECK-33 Change-Id: I66dca9d2367f85bc353ce159689028be97a3b78d Signed-off-by: QiLiang --- utils/infra_setup/heat_template/HOT_create_instance.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'utils/infra_setup/heat_template') 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 -- cgit 1.2.3-korg