aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2016-06-18 02:31:07 +0000
committerGerrit Code Review <review@openstack.org>2016-06-18 02:31:07 +0000
commita1e2e63ace40d12df5cdc85e65224dfc5388e129 (patch)
tree19e1d5d1b83b1e4596838570b79f406e05bf72e2
parent432c12fb7fe44715b249a340fb3838805080054c (diff)
parent5f7973292767b40403b775627b7fe13b7ab1ae41 (diff)
downloadkolla-a1e2e63ace40d12df5cdc85e65224dfc5388e129.tar.gz
kolla-a1e2e63ace40d12df5cdc85e65224dfc5388e129.zip
Merge "Only keep localhost for 127.0.0.1"
-rw-r--r--dev/vagrant/bootstrap.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/vagrant/bootstrap.sh b/dev/vagrant/bootstrap.sh
index ea9b3d0e2..8df696992 100644
--- a/dev/vagrant/bootstrap.sh
+++ b/dev/vagrant/bootstrap.sh
@@ -61,7 +61,7 @@ function prep_work {
# This removes the fqdn from /etc/hosts's 127.0.0.1. This name.local will
# resolve to the public IP instead of localhost.
- sed -i -r "s/^(127\.0\.0\.1\s+)(.*) `hostname` (.+)/\1 \3/" /etc/hosts
+ sed -i -r "s,^127\.0\.0\.1\s+.*,127\.0\.0\.1 localhost localhost.localdomain localhost4 localhost4.localdomain4," /etc/hosts
if is_centos; then
yum -y install epel-release