Commit 36fa0201 authored by Leonard Marschke's avatar Leonard Marschke

install dashboard

parent 066e0046
......@@ -328,6 +328,23 @@ def installNeutronNode():
sudo("systemctl restart nova-compute")
sudo("systemctl restart neutron-linuxbridge-agent")
@roles('controller')
def installDashboard():
sudo("apt-get install -y openstack-dashboard")
sudo("sed -i -e 's|^OPENSTACK_HOST.*$|OPENSTACK_HOST = \"controller\"|' /etc/openstack-dashboard/local_settings.py")
sudo("sed -i -e 's|^OPENSTACK_KEYSTONE_URL.*$|OPENSTACK_KEYSTONE_URL = \"http://%s:5000/v3\" % OPENSTACK_HOST|' /etc/openstack-dashboard/local_settings.py")
sudo("sed -i -e 's|^OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT.*$|OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True|' /etc/openstack-dashboard/local_settings.py")
sudo("""echo "OPENSTACK_API_VERSIONS = {
\\"identity\\": 3,
\\"image\": 2,
\\"volume\\": 2,
}" >> /etc/openstack-dashboard/local_settings.py""")
sudo("sed -i -e 's|^OPENSTACK_KEYSTONE_DEFAULT_ROLE.*$|OPENSTACK_KEYSTONE_DEFAULT_ROLE = \"user\"|' /etc/openstack-dashboard/local_settings.py")
sudo("systemctl restart apache2")
@roles('controller')
def verifyNeutron():
with shell_env(**identityServiceEnvsAdmin):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment