diff options
author | Pasha <pasha@member.fsf.org> | 2022-08-19 22:42:11 +0000 |
---|---|---|
committer | Pasha <pasha@member.fsf.org> | 2022-08-19 22:42:11 +0000 |
commit | ccebc0b548706cddbee185cec6e56e4f383ae16c (patch) | |
tree | 114a712836f207ff620d206535b844ea9cfd637d /openstack_setup.sh | |
parent | 2195fa1ed94786e1f5a760b860e1ee8976e1ffe4 (diff) | |
download | debian_openstack_installer-ccebc0b548706cddbee185cec6e56e4f383ae16c.tar.gz debian_openstack_installer-ccebc0b548706cddbee185cec6e56e4f383ae16c.tar.bz2 |
misc fixes
Diffstat (limited to 'openstack_setup.sh')
-rw-r--r-- | openstack_setup.sh | 25 |
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 |