aboutsummaryrefslogtreecommitdiff
path: root/openstack_setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'openstack_setup.sh')
-rw-r--r--openstack_setup.sh25
1 files changed, 20 insertions, 5 deletions
diff --git a/openstack_setup.sh b/openstack_setup.sh
index 97575b5..4843d9d 100644
--- a/openstack_setup.sh
+++ b/openstack_setup.sh
@@ -37,8 +37,11 @@ export DEBIAN_FRONTEND=noninteractive
function download_packages() {
echo "downloading packages..."
- apt-get -dy install chrony mariadb-server python3-pymysql rabbitmq-server memcached python3-memcache etcd keystone apache2 python3-openstackclient glance placement-api libguestfs-tools virt-manager nova-api nova-conductor nova-novncproxy nova-scheduler neutron-server neutron-plugin-ml2 neutron-linuxbridge-agent neutron-dhcp-agent neutron-metadata-agent neutron-plugin-ml2 neutron-openvswitch-agent neutron-l3-agent python3-neutronclient openstack-dashboard
- apt-get -dy install nova-compute-qemu
+ apt-get -dy install chrony mariadb-server python3-pymysql rabbitmq-server memcached python3-memcache etcd keystone apache2 python3-openstackclient glance placement-api libguestfs-tools virt-manager nova-api nova-conductor nova-novncproxy nova-scheduler neutron-server neutron-plugin-ml2 neutron-linuxbridge-agent neutron-dhcp-agent neutron-metadata-agent neutron-plugin-ml2 neutron-openvswitch-agent neutron-l3-agent python3-neutronclient
+ apt-get -dy install nova-compute-qemu
+ apt-get -dy install openstack-dashboard openstack-dashboard-apache
+ # currently openstack-dashboard-debian-theme is not working with openstack-dashboard
+ # apt-get -dy install openstack-dashboard-debian-theme
echo "done"
}
@@ -292,13 +295,13 @@ function setup_neutron() {
mv /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini.org
cp ${CONFIG_DIR}/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini
mv /etc/neutron/plugins/ml2/linuxbridge_agent.ini /etc/neutron/plugins/ml2/linuxbridge_agent.ini.org
- sed 's/PROVIDER_INTERFACE/'$EXTERNAL_BRIDGE_INTERFACE'/' ${CONFIG_DIR}/linuxbridge_agent.ini > /etc/neutron/plugins/ml2/linuxbridge_agent.ini
+ sed 's/PROVIDER_INTERFACE/'$EXTERNAL_BRIDGE_INTERFACE'/' ${CONFIG_DIR}/linuxbridge_agent.ini > /etc/neutron/plugins/ml2/linuxbridge_agent.ini
mv /etc/neutron/dhcp_agent.ini /etc/neutron/dhcp_agent.ini.org
cp ${CONFIG_DIR}/dhcp_agent.ini /etc/neutron/dhcp_agent.ini
cp /etc/neutron/l3_agent.ini /etc/neutron/l3_agent.ini.org
- sed -i "s/interface_driver = openvswitch/interface_driver = linuxbride/" /etc/neutron/l3_agent.ini
-
+ sed -i "s/interface_driver = openvswitch/interface_driver = linuxbridge/" /etc/neutron/l3_agent.ini
+
systemctl enable neutron-api
systemctl enable neutron-rpc-server
systemctl enable neutron-metadata-agent
@@ -323,6 +326,17 @@ function enable_hypervisor() {
echo "done"
}
+function install_dashboard() {
+ echo "installing dashboard"
+ apt-get -y install openstack-dashboard-apache
+ mv /etc/openstack-dashboard/local_settings.py /etc/openstack-dashboard/local_settings.py.org
+ sed "s/REPLACE_WITH_HOST/${OPENSTACK_HOST}/" ${CONFIG_DIR}/local_settings.py > /etc/openstack-dashboard/local_settings.py
+ /usr/sbin/a2enmod rewrite
+ systemctl restart apache2
+ echo "done"
+}
+
+
download_packages
update_hostip
setup_chrony
@@ -345,3 +359,4 @@ setup_nova
configure_neutron_endpoints
setup_neutron
enable_hypervisor
+install_dashboard