fix: Add better network config
This commit is contained in:
parent
8fcff30122
commit
5b8a4d48cf
1 changed files with 22 additions and 1 deletions
|
@ -11,6 +11,23 @@
|
||||||
##
|
##
|
||||||
sudo apt-get install -y git
|
sudo apt-get install -y git
|
||||||
|
|
||||||
|
##
|
||||||
|
## Create network
|
||||||
|
##
|
||||||
|
cat > /etc/network/interfaces.d/openstack <<MARK
|
||||||
|
# auto eth1
|
||||||
|
# iface dummy0 inet manual
|
||||||
|
# pre-up ip link add dummy0 type dummy
|
||||||
|
|
||||||
|
auto br25
|
||||||
|
iface br25 inet static
|
||||||
|
address 172.16.0.1/16
|
||||||
|
bridge_ports eth1
|
||||||
|
bridge_stp off
|
||||||
|
bridge_maxwait 0
|
||||||
|
bridge_fd 0
|
||||||
|
MARK
|
||||||
|
|
||||||
##
|
##
|
||||||
## Get openstack
|
## Get openstack
|
||||||
##
|
##
|
||||||
|
@ -22,8 +39,12 @@ cd devstack || exit 1
|
||||||
##
|
##
|
||||||
cat > local.conf <<-MARK
|
cat > local.conf <<-MARK
|
||||||
[[local|localrc]]
|
[[local|localrc]]
|
||||||
FLOATING_RANGE=192.168.1.224/27
|
HOST_IP=172.16.0.1
|
||||||
|
FLAT_INTERFACE=br25
|
||||||
|
PUBLIC_INTERFACE=eth1
|
||||||
|
FLOATING_RANGE=172.16.0.128/25
|
||||||
FIXED_RANGE=10.11.12.0/24
|
FIXED_RANGE=10.11.12.0/24
|
||||||
|
|
||||||
ADMIN_PASSWORD=admin1pass
|
ADMIN_PASSWORD=admin1pass
|
||||||
DATABASE_PASSWORD=database2pass
|
DATABASE_PASSWORD=database2pass
|
||||||
RABBIT_PASSWORD=rabbit3pass
|
RABBIT_PASSWORD=rabbit3pass
|
||||||
|
|
Loading…
Reference in a new issue