Add changes in deploy_component_new.sh

After changes in installation script for dashboard,
the configuration file local_setting.py will be overwriten.
So need to set wright openstack host here.

Change-Id: Ieb9e6a75bc0acfa93bfb10e464dfa74162c1c2b5
This commit is contained in:
Anastasia Kuznetsova 2014-04-10 17:06:42 +04:00
parent a64b799f8d
commit 76db29f1ec
1 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,15 @@ expect "@murano"
send -- "bash setup.sh install > old.log\n"
expect "@murano"
send -- "sed -i \"s/DEBUG = False/DEBUG = True/\" /etc/openstack-dashboard/local_settings.py\n"
expect -- "@murano"
send -- "sed -i \"s/OPENSTACK_HOST = \"127.0.0.1\"/OPENSTACK_HOST = \""
send -- [lindex $argv 4]
send -- "\" /etc/openstack-dashboard/local_settings.py\n"
expect -- "@murano"
send -- "service apache2 restart\n"
expect "@murano"
send -- "service openstack-"
send -- [lindex $argv 3]
send -- " restart\n"