### openstack_user_config.yml


---
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
  external_lb_vip_address: lab.domain.com
  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_openvswitch_agent
    - network:
        container_bridge: "br-vlan"
        container_type: "veth"
        container_interface: "eth11"
        type: "vlan"
        range: "1:4090"
        net_name: "vlan"
        group_binds:
          - neutron_openvswitch_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
          - manila_share
          - nova_compute
          - ceph-osd


_infrastructure_hosts: &infrastructure_hosts
  c1:
    ip: 172.29.236.11
  c2:
    ip: 172.29.236.12
  c3:
    ip: 172.29.236.13

compute_hosts: &compute_hosts
  h1:
    ip: 172.29.236.31
  h2:
    ip: 172.29.236.32
  h3:
    ip: 172.29.236.33

ceph-osd_hosts:
  s1:
    ip: 172.29.236.21
  s2:
    ip: 172.29.236.22
  s3:
    ip: 172.29.236.23

shared-infra_hosts: *infrastructure_hosts
ceph-mon_hosts: *infrastructure_hosts
ceph-mds_hosts: *infrastructure_hosts
ceph-nfs_hosts: *infrastructure_hosts
repo-infra_hosts: *infrastructure_hosts
haproxy_hosts: *infrastructure_hosts
identity_hosts: *infrastructure_hosts
storage-infra_hosts: *infrastructure_hosts
storage_hosts: *infrastructure_hosts
image_hosts: *infrastructure_hosts
placement-infra_hosts: *infrastructure_hosts
compute-infra_hosts: *infrastructure_hosts
orchestration_hosts: *infrastructure_hosts
dashboard_hosts: *infrastructure_hosts
network_hosts: *compute_hosts


### user_variables.yml

---
haproxy_keepalived_external_vip_cidr: "10.11.12.10/22"
haproxy_keepalived_internal_vip_cidr: "172.29.236.10/22"
haproxy_keepalived_external_interface: enp1s0
haproxy_keepalived_internal_interface: br-mgmt

generate_fsid: false
fsid: b1df627a-b2b3-4887-8a8c-04da58e63ce0

monitor_address_block: 172.29.236.0/22
public_network: 172.29.236.0/22
cluster_network: 172.29.244.0/22
journal_size: 10240 # size in MB
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


nova_libvirt_inject_password: True
nova_libvirt_inject_key: True

nova_nova_conf_overrides:
 DEFAULT:
   force_config_drive: true
   resume_guests_state_on_host_boot: true
   cpu_allocation_ratio: 6.0
   max_instances_per_host: 100

neutron_neutron_conf_overrides:
 DEFAULT:
    dhcp_agents_per_network: 2
    max_l3_agents_per_router: 3

openstack_host_specific_kernel_modules:
  - name: "openvswitch"
    pattern: "CONFIG_OPENVSWITCH="
    group: "network_hosts"

neutron_plugin_type: ml2.ovs