Use IP address instead of hostname for chef server url

In multihost nova-network deployment, hostname doesn't always
work. Use IP instead.
This commit is contained in:
Yun Mao 2013-05-13 18:14:15 -04:00
parent edc5739cad
commit bad481aed9
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
# install chef server from opscode repo via apt
CHEF_SERVER=$(hostname)
CHEF_SERVER=$(hostname -i)
CHEF_PASSWORD=${CHEF_PASSWORD:-ChefServer}
echo "deb http://apt.opscode.com/ `lsb_release -cs`-0.10 main" | \