Merge "Add the new hostname to /etc/hosts in prepare_node"

This commit is contained in:
Jenkins 2014-06-05 05:35:31 +00:00 committed by Gerrit Code Review
commit f28fcbfe30

View File

@ -31,6 +31,11 @@ forward-zone:
EOF
sudo hostname $HOSTNAME
if ! grep -q $HOSTNAME /etc/hosts
then
echo "127.0.1.1 $HOSTNAME" | sudo tee -a /etc/hosts
fi
# Fedora image doesn't come with wget
if [ -f /usr/bin/yum ]; then
sudo yum -y install wget