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:
parent
edc5739cad
commit
bad481aed9
|
@ -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" | \
|
||||
|
|
Loading…
Reference in New Issue