This doesn't work. Networking stumped me.
This commit is contained in:
208
files/openstack_user_config.yml
Normal file
208
files/openstack_user_config.yml
Normal file
@@ -0,0 +1,208 @@
|
||||
cidr_networks:
|
||||
container: 172.29.236.0/22
|
||||
tunnel: 172.29.240.0/22
|
||||
storage: 172.29.244.0/22
|
||||
|
||||
used_ips:
|
||||
- "172.29.236.1,172.29.236.20"
|
||||
- "172.29.240.1,172.29.240.20"
|
||||
- "172.29.244.1,172.29.244.20"
|
||||
|
||||
global_overrides:
|
||||
internal_lb_vip_address: 172.29.236.11
|
||||
external_lb_vip_address: 172.29.236.10
|
||||
management_bridge: "br-mgmt"
|
||||
tunnel_bridge: "br-vxlan"
|
||||
provider_networks:
|
||||
- network:
|
||||
container_bridge: "br-mgmt"
|
||||
container_bridge_type: openvswitch
|
||||
container_type: "veth"
|
||||
container_interface: "eth1"
|
||||
ip_from_q: "container"
|
||||
type: "raw"
|
||||
group_binds:
|
||||
- all_containers
|
||||
- hosts
|
||||
is_management_address: true
|
||||
is_container_address: true
|
||||
- network:
|
||||
container_bridge: "br-vxlan"
|
||||
container_bridge_type: openvswitch
|
||||
container_type: "veth"
|
||||
container_interface: "eth10"
|
||||
container_mtu: "9000"
|
||||
ip_from_q: "tunnel"
|
||||
type: "vxlan"
|
||||
range: "1:1000"
|
||||
group_binds:
|
||||
- neutron_openvswitch_agent
|
||||
# - network:
|
||||
# container_bridge: "br-vlan"
|
||||
# container_bridge_type: openvswitch
|
||||
# container_type: "veth"
|
||||
# container_interface: "eth11"
|
||||
# container_mtu: "9000"
|
||||
# type: "vlan"
|
||||
# range: "701:800,801:900"
|
||||
# net_name: "vlan"
|
||||
# group_binds:
|
||||
# - neutron_openvswitch_agent
|
||||
# host_bind_override:
|
||||
# -
|
||||
- network:
|
||||
container_bridge: "br-storage"
|
||||
container_bridge_type: openvswitch
|
||||
container_type: "veth"
|
||||
container_interface: "eth2"
|
||||
container_mtu: "9000"
|
||||
ip_from_q: "storage"
|
||||
type: "raw"
|
||||
group_binds:
|
||||
- glance_api
|
||||
- cinder_api
|
||||
- cinder_volume
|
||||
- nova_compute
|
||||
- repo_container
|
||||
- neutron_openvswitch_agent
|
||||
|
||||
neutron_plugin_type: ml2.ovs
|
||||
|
||||
neutron_ml2_drivers_type: "flat,vlan,vxlan"
|
||||
neutron_plugin_base:
|
||||
- router
|
||||
|
||||
###
|
||||
### Infrastructure
|
||||
###
|
||||
|
||||
# galera, memcache, rabbitmq, utility
|
||||
shared-infra_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# repository (apt cache, python packages, etc)
|
||||
repo-infra_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# load balancer
|
||||
haproxy_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
###
|
||||
### OpenStack
|
||||
###
|
||||
|
||||
# keystone
|
||||
identity_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# cinder api services
|
||||
storage-infra_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# glance
|
||||
image_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# placement
|
||||
placement-infra_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# nova api, conductor, etc services
|
||||
compute-infra_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# heat
|
||||
orchestration_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# horizon
|
||||
dashboard_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# neutron server, agents (L3, etc)
|
||||
network_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
|
||||
# nova hypervisors
|
||||
compute_hosts:
|
||||
compute1:
|
||||
ip: 172.29.236.12
|
||||
|
||||
# cinder storage host (LVM-backed)
|
||||
storage_hosts:
|
||||
infra1:
|
||||
ip: 172.29.236.11
|
||||
container_vars:
|
||||
cinder_backends:
|
||||
cinder_nfs_storage10_evo2tb:
|
||||
volume_backend_name: storage10_evo2tb
|
||||
nfs_shares_config: /etc/cinder/nfs_shares_storage10_evo2tb
|
||||
volume_driver: cinder.volume.drivers.nfs.NfsDriver
|
||||
shares:
|
||||
- { ip: 172.29.244.2, share: "/mnt/EVO2TB/stack_evo2tb" }
|
||||
|
||||
# --------
|
||||
#
|
||||
# Level: haproxy_hosts (optional)
|
||||
# List of target hosts on which to deploy HAProxy. Recommend at least one
|
||||
# target host for this service if hardware load balancers are not being
|
||||
# used.
|
||||
#
|
||||
# Level: <value> (required, string)
|
||||
# Hostname of a target host.
|
||||
#
|
||||
# Option: ip (required, string)
|
||||
# IP address of this target host, typically the IP address assigned to
|
||||
# the management bridge.
|
||||
#
|
||||
#
|
||||
# Example:
|
||||
#
|
||||
# Define a virtual load balancer (HAProxy):
|
||||
#
|
||||
# While HAProxy can be used as a virtual load balancer, it is recommended to use
|
||||
# a physical load balancer in a production environment.
|
||||
#
|
||||
# haproxy_hosts:
|
||||
# lb1:
|
||||
# ip: 172.29.236.100
|
||||
# lb2:
|
||||
# ip: 172.29.236.101
|
||||
#
|
||||
# In case of the above scenario(multiple hosts),HAProxy can be deployed in a
|
||||
# highly-available manner by installing keepalived.
|
||||
#
|
||||
# To make keepalived work, edit at least the following variables
|
||||
# in ``user_variables.yml``:
|
||||
# haproxy_keepalived_external_vip_cidr: 192.168.0.4/25
|
||||
# haproxy_keepalived_internal_vip_cidr: 172.29.236.54/16
|
||||
# haproxy_keepalived_external_interface: br-flat
|
||||
# haproxy_keepalived_internal_interface: br-mgmt
|
||||
#
|
||||
# To always deploy (or upgrade to) the latest stable version of keepalived.
|
||||
# Edit the ``/etc/openstack_deploy/user_variables.yml``:
|
||||
# keepalived_package_state: latest
|
||||
#
|
||||
# The group_vars/all/keepalived.yml contains the keepalived
|
||||
# variables that are fed into the keepalived role during
|
||||
# the haproxy playbook.
|
||||
# You can change the keepalived behavior for your
|
||||
# deployment. Refer to the ``user_variables.yml`` file for
|
||||
# more information.
|
||||
#
|
||||
# Keepalived can ping a public and private IP address to check its status. To
|
||||
# enable this feature, set the ``keepalived_external_ping_address`` and
|
||||
# ``keepalived_internal_ping_address`` variables in the ``user_variables.yml``
|
||||
# file.
|
||||
Reference in New Issue
Block a user