This commit is contained in:
light jiang
2018-12-17 18:10:33 +08:00
parent 051d1db55d
commit 9aed47964e
10 changed files with 279 additions and 33 deletions
+47
View File
@@ -0,0 +1,47 @@
# openstack ip conf
## mysql
```bash
# /etc/mysql/mariadb.conf.d/99-openstack.cnf
bind-address = controller
```
## memcache
```bash
# /etc/memcached.conf
-l controller
```
## etcd
```bash
# /etc/default/etcd
ETCD_NAME="controller"
ETCD_DATA_DIR="/var/lib/etcd"
ETCD_INITIAL_CLUSTER_STATE="new"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER="controller=http://controller:2380"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://controller:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://controller:2379"
ETCD_LISTEN_PEER_URLS="http://0.0.0.0:2380"
ETCD_LISTEN_CLIENT_URLS="http://controller:2379"
```
## nova
```bash
# /etc/nova/nova.conf
[DEFAULT]
# ...
my_ip = local_ip (be set on contorller and compute)
```
+62
View File
@@ -0,0 +1,62 @@
# neutron 配置网络
## flat
用于配置外部网络
> https://blog.csdn.net/CloudMan6/article/details/52529828
```bash
# /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
tenant_network_types = flat
[ml2_type_flat]
flat_networks=default
#flat_networks = flat1,flat2
[linux_bridge]
physical_interface_mappings=default:eth1
#physical_interface_mappings = flat1:eth1,flat2:eth2
```
## vxlan
用于配置用户虚拟网络
> https://blog.csdn.net/CloudMan6/article/details/53082157
```bash
# /etc/neutron/plugins/ml2/ml2_conf.ini
[ml2]
tenant_network_types = vxlan
vni_ranges = 1001 - 2000
# on controler
[vxlan]
l2_population = true
local_ip = controller_ip
enable_vxlan = true
# on compute
[vxlan]
l2_population = true
local_ip = compute_ip
enable_vxlan = true
```