Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groupadd horizon
- mkdir -p /opt/stack/horizon/openstack_dashboard/local
- useradd -g horizon -G stack -d /opt/stack/horizon -M horizon
- cd /opt/stack/newton/horizon-* && tar -cf - . | ( cd /opt/stack/horizon && tar xf - )
- cp /opt/stack/horizon/openstack_dashboard/local/local_settings.py.example /opt/stack/horizon/openstack_dashboard/local/local_settings.py
- echo "ALLOWED_HOSTS = ['*', ]" >> /opt/stack/horizon/openstack_dashboard/local/local_settings.py
- echo 'OPENSTACK_API_VERSIONS = { "identity": 3, "image": 2, "volume": 2, }' >> /opt/stack/horizon/openstack_dashboard/local/local_settings.py
- echo 'OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"' >> /opt/stack/horizon/openstack_dashboard/local/local_settings.py
- echo 'OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = False' >> /opt/stack/horizon/openstack_dashboard/local/local_settings.py
- echo "AVAILABLE_THEMES = [('default', 'Default', 'themes/default'),]" >> /opt/stack/horizon/openstack_dashboard/local/local_settings.py
- sed -i "s/OPENSTACK_HOST = \"127.0.0.1\"/OPENSTACK_HOST = \"10.1.1.1\"/" /opt/stack/horizon/openstack_dashboard/local/local_settings.py
- sed -i 's/OPENSTACK_KEYSTONE_URL = "http:\/\/%s:5000\/v2.0" % OPENSTACK_HOST/OPENSTACK_KEYSTONE_URL = "http:\/\/%s:5000\/v3" % OPENSTACK_HOST/' /opt/stack/horizon/openstack_dashboard/local/local_settings.py
- mkdir -p /usr/share/javascript/angular
- mkdir -p /usr/share/javascript/angular_smart_table
- curl https://github.com/angular/bower-angular-cookies/blob/master/angular-cookies.js --output /usr/share/javascript/angular/angular-cookies.js
- curl https://github.com/angular/bower-angular-sanitize/blob/master/angular-sanitize.js --output /usr/share/javascript/angular/angular-sanitize.js
- curl https://github.com/angular/bower-angular-route/blob/master/angular-route.js --output /usr/share/javascript/angular/angular-route.js
- curl https://github.com/lorenzofox3/Smart-Table/blob/master/dist/smart-table.min.js --output /usr/share/javascript/angular_smart_table/smart-table.min.js
- cd /opt/stack/horizon && ./manage.py compress --force
- cd /opt/stack/horizon && echo yes | ./manage.py collectstatic
- cd /opt/stack/horizon && /opt/stack/horizon/manage.py make_web_conf --wsgi --force
- cd /opt/stack/horizon && /opt/stack/horizon/manage.py make_web_conf --apache > /etc/httpd/conf.d/horizon.conf && sed -i 's/Server.*//g' /etc/httpd/conf.d/horizon.conf
- chown -R apache:apache /opt/stack/horizon/*
- chown horizon:stack /opt/stack/horizon
- systemctl enable httpd
- systemctl start httpd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement