diff options
author | Pasha <pasha@member.fsf.org> | 2023-05-22 23:21:28 +0000 |
---|---|---|
committer | Pasha <pasha@member.fsf.org> | 2023-05-22 23:21:28 +0000 |
commit | b0e92b8aeac5b036d3dffaa21f6972552808d6cd (patch) | |
tree | c7aaf2ef9a11b3d2bbdc5fc232871b09687feaad | |
parent | 97c640db16f3c50ed0512a2813209511a1fb6387 (diff) | |
download | debian_openstack_installer-b0e92b8aeac5b036d3dffaa21f6972552808d6cd.tar.gz debian_openstack_installer-b0e92b8aeac5b036d3dffaa21f6972552808d6cd.tar.bz2 |
update for Debian 12
-rw-r--r-- | README | 26 | ||||
-rw-r--r-- | configs/neutron.conf | 3 | ||||
-rw-r--r-- | openstack_setup.sh | 8 |
3 files changed, 27 insertions, 10 deletions
@@ -1,4 +1,4 @@ - Copyright (C) 2022 Pasha <pasha@member.fsf.org> + Copyright (C) 2023 Pasha <pasha@member.fsf.org> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,18 +18,28 @@ Debian OpenStack Installer -------------------------- requirements -1. Install or update to Debian Testing/Bookworm +1. Install or update to Debian 12 (Bookworm) 2. current configuration uses agent networking (bridge). Therefore, you need two network interfaces with two different network series. If you are using VM, then you may configure enp1s0 as "bridge network" with your main network. -and enp7s0 as NAT interface. +and enp7s0 as NAT interface. Add two interfaces in your virtual machine. + + +external +router + | + | + br0 virbr0 + | | + | | (example qemu has two interfaces) + -------|------> enp1s0 - static IP: 192.168.0.155 + | + | + -------> enp7s0 - static IP/DHCP: 192.168.122.10 -example: -enp1s0 - static IP: 192.168.0.155 -enp7s0 - static IP/DHCP: 192.168.122.10 3. edit openstack_setup.sh and set the following setting: @@ -45,4 +55,6 @@ check output from another shell restart and start exploring openstack on Debian. -You may check "next_step" file.
\ No newline at end of file +You may check "next_step" file. + +https://192.168.0.155/horizon/ diff --git a/configs/neutron.conf b/configs/neutron.conf index d2e72ea..e5a9d93 100644 --- a/configs/neutron.conf +++ b/configs/neutron.conf @@ -46,3 +46,6 @@ lock_path = /var/lib/neutron/tmp default_reply_timeout = 300 default_send_timeout = 600 default_notify_timeout = 300 + +[experimental] +linuxbridge = true
\ No newline at end of file diff --git a/openstack_setup.sh b/openstack_setup.sh index baada39..df46714 100644 --- a/openstack_setup.sh +++ b/openstack_setup.sh @@ -18,7 +18,8 @@ OPENSTACK_HOST_IP="192.168.0.155" EXTERNAL_BRIDGE_INTERFACE="enp7s0" - +MY_USER_NAME="openstack" +MY_USER_PASS="openstack" if [ -z ${OPENSTACK_HOST_IP} ]; then echo "Please set OpenStack host IP" @@ -148,9 +149,9 @@ function configure_domain_project() { openstack domain create --description "An Example Domain" example openstack project create --domain default --description "Service Project" service openstack project create --domain default --description "Demo Project" myproject - openstack user create --domain default --password myuser myuser + openstack user create --domain default --password ${MY_USER_PASS} ${MY_USER_NAME} openstack role create myrole - openstack role add --project myproject --user myuser myrole + openstack role add --project myproject --user ${MY_USER_NAME} myrole echo "done" } @@ -331,6 +332,7 @@ function install_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 ssl /usr/sbin/a2enmod rewrite systemctl restart apache2 echo "done" |