diff options
author | Jun Li <matthew.lijun@huawei.com> | 2016-01-04 04:41:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-04 04:41:14 +0000 |
commit | 09f9a968d1078dc64bd971dd4dcd005c2a05c0e4 (patch) | |
tree | 459d41a699ff174dd785770d496eaf6192353fe1 /utils/infra_setup/heat_template | |
parent | 7f3a6fc12fd9f4195c13f6611e83a1f8ff7cbed1 (diff) | |
parent | b57d2ac822c2d706524c513f6e2baff19301fa05 (diff) |
Merge "Update vm prepare setup"
Diffstat (limited to 'utils/infra_setup/heat_template')
-rwxr-xr-x | utils/infra_setup/heat_template/HOT_create_instance.sh | 4 |
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 |