Fix hostname to avoid recognition of 127.0.0.1

When you use vagrant environment, you can see
'127.0.0.1' server at Overview page.
This patch changes hostname to correct value.

Change-Id: Iedf30e928d9d3d398705b1a0392d6850eeb9c1ef
This commit is contained in:
Shinya Kawabata 2017-03-30 16:13:50 +09:00
parent ef16dd6cd5
commit ea9f7049a7
1 changed files with 2 additions and 0 deletions

View File

@ -1675,6 +1675,8 @@ function install_monasca_agent {
sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/host_alive.yaml /etc/monasca/agent/conf.d/host_alive.yaml
sudo sed -i "s/127\.0\.0\.1/$(hostname)/" /etc/monasca/agent/conf.d/host_alive.yaml
sudo cp -f "${MONASCA_API_DIR}"/devstack/files/monasca-agent/monasca-reconfigure /usr/local/bin/monasca-reconfigure
sudo chown root:root /usr/local/bin/monasca-reconfigure