Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat > /etc/openstack_deploy/openstack_user_config.yml << EOF
- ---
- cidr_networks: &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.50"
- - "172.29.240.1,172.29.240.50"
- - "172.29.244.1,172.29.244.50"
- - "172.29.248.1,172.29.248.50"
- global_overrides:
- cidr_networks: *cidr_networks
- internal_lb_vip_address: 172.29.236.10
- #
- # The below domain name must resolve to an IP address
- # in the CIDR specified in haproxy_keepalived_external_vip_cidr.
- # If using different protocols (https/http) for the public/internal
- # endpoints the two addresses must be different.
- #
- external_lb_vip_address: 192.168.122.10
- management_bridge: "br-mgmt"
- provider_networks:
- - network:
- container_bridge: "br-mgmt"
- container_type: "veth"
- container_interface: "eth1"
- ip_from_q: "container"
- type: "raw"
- group_binds:
- - all_containers
- - hosts
- is_container_address: true
- - network:
- container_bridge: "br-vxlan"
- container_type: "veth"
- container_interface: "eth10"
- ip_from_q: "tunnel"
- type: "vxlan"
- range: "1:1000"
- net_name: "vxlan"
- group_binds:
- - neutron_linuxbridge_agent
- - network:
- container_bridge: "br-vlan"
- container_type: "veth"
- container_interface: "eth12"
- host_bind_override: "eth12"
- type: "flat"
- net_name: "flat"
- group_binds:
- - neutron_linuxbridge_agent
- - network:
- container_bridge: "br-vlan"
- container_type: "veth"
- container_interface: "eth11"
- type: "vlan"
- range: "101:200,301:400"
- net_name: "vlan"
- group_binds:
- - neutron_linuxbridge_agent
- - network:
- container_bridge: "br-storage"
- container_type: "veth"
- container_interface: "eth2"
- ip_from_q: "storage"
- type: "raw"
- group_binds:
- - glance_api
- - cinder_api
- - cinder_volume
- - nova_compute
- - ceph-osd
- ###
- ### Infrastructure
- ###
- _infrastructure_hosts: &infrastructure_hosts
- infra1:
- ip: 172.29.236.11
- infra2:
- ip: 172.29.236.12
- infra3:
- ip: 172.29.236.13
- # nova hypervisors
- compute_hosts: &compute_hosts
- compute1:
- ip: 172.29.236.31
- compute2:
- ip: 172.29.236.32
- compute3:
- ip: 172.29.236.33
- ceph-osd_hosts:
- osd1:
- ip: 172.29.236.21
- osd2:
- ip: 172.29.236.22
- osd3:
- ip: 172.29.236.23
- # galera, memcache, rabbitmq, utility
- shared-infra_hosts: *infrastructure_hosts
- # ceph-mon containers
- ceph-mon_hosts: *infrastructure_hosts
- # repository (apt cache, python packages, etc)
- repo-infra_hosts: *infrastructure_hosts
- # load balancer
- # Ideally the load balancer should not use the Infrastructure hosts.
- # Dedicated hardware is best for improved performance and security.
- haproxy_hosts: *infrastructure_hosts
- ###
- ### OpenStack
- ###
- # keystone
- identity_hosts: *infrastructure_hosts
- # cinder api services
- storage-infra_hosts: *infrastructure_hosts
- # cinder volume hosts (Ceph RBD-backed)
- storage_hosts: *infrastructure_hosts
- # glance
- image_hosts: *infrastructure_hosts
- # nova api, conductor, etc services
- compute-infra_hosts: *infrastructure_hosts
- # heat
- orchestration_hosts: *infrastructure_hosts
- # horizon
- dashboard_hosts: *infrastructure_hosts
- # neutron server, agents (L3, etc)
- network_hosts: *infrastructure_hosts
- magnum-infra_hosts: *infrastructure_hosts
- EOF
- cat >> /etc/openstack_deploy/user_variables.yml << EOF
- ## Load Balancer Configuration (haproxy/keepalived)
- haproxy_keepalived_external_vip_cidr: "192.168.122.10/32"
- haproxy_keepalived_internal_vip_cidr: "172.29.236.10/32"
- haproxy_keepalived_external_interface: eth0
- haproxy_keepalived_internal_interface: br-mgmt
- ## Ceph cluster fsid (must be generated before first run)
- ## Generate a uuid using: python -c 'import uuid; print(str(uuid.uuid4()))'
- generate_fsid: false
- fsid: f10f2cad-7cf0-4388-8745-211f3d4762ea
- ## ceph-ansible settings
- ## See https://github.com/ceph/ceph-ansible/tree/master/group_vars for
- ## additional configuration options availble.
- monitor_address_block: "{{ cidr_networks.container }}"
- public_network: "{{ cidr_networks.container }}"
- cluster_network: "{{ cidr_networks.storage }}"
- osd_scenario: collocated
- devices:
- - /dev/vdb
- journal_size: 10240 # size in MB
- # ceph-ansible automatically creates pools & keys for OpenStack services
- openstack_config: true
- cinder_ceph_client: cinder
- glance_ceph_client: glance
- glance_default_store: rbd
- glance_rbd_store_pool: images
- nova_libvirt_images_rbd_pool: vms
- cinder_backends:
- RBD:
- volume_driver: cinder.volume.drivers.rbd.RBDDriver
- rbd_pool: volumes
- rbd_ceph_conf: /etc/ceph/ceph.conf
- rbd_store_chunk_size: 8
- volume_backend_name: rbddriver
- rbd_user: "{{ cinder_ceph_client }}"
- rbd_secret_uuid: "{{ cinder_ceph_client_uuid }}"
- report_discard_supported: true
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement