Advertisement
Guest User

Untitled

a guest
Apr 7th, 2019
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 5.08 KB | None | 0 0
  1. cat > /etc/openstack_deploy/openstack_user_config.yml << EOF
  2. ---
  3. cidr_networks: &cidr_networks
  4.   container: 172.29.236.0/22
  5.   tunnel: 172.29.240.0/22
  6.   storage: 172.29.244.0/22
  7.  
  8. used_ips:
  9.  - "172.29.236.1,172.29.236.50"
  10.   - "172.29.240.1,172.29.240.50"
  11.   - "172.29.244.1,172.29.244.50"
  12.   - "172.29.248.1,172.29.248.50"
  13.  
  14. global_overrides:
  15.   cidr_networks: *cidr_networks
  16.   internal_lb_vip_address: 172.29.236.10
  17.   #
  18.   # The below domain name must resolve to an IP address
  19.   # in the CIDR specified in haproxy_keepalived_external_vip_cidr.
  20.   # If using different protocols (https/http) for the public/internal
  21.   # endpoints the two addresses must be different.
  22.   #
  23.   external_lb_vip_address: 192.168.122.10
  24.   management_bridge: "br-mgmt"
  25.   provider_networks:
  26.     - network:
  27.         container_bridge: "br-mgmt"
  28.         container_type: "veth"
  29.         container_interface: "eth1"
  30.         ip_from_q: "container"
  31.         type: "raw"
  32.         group_binds:
  33.          - all_containers
  34.           - hosts
  35.         is_container_address: true
  36.     - network:
  37.         container_bridge: "br-vxlan"
  38.         container_type: "veth"
  39.         container_interface: "eth10"
  40.         ip_from_q: "tunnel"
  41.         type: "vxlan"
  42.         range: "1:1000"
  43.         net_name: "vxlan"
  44.         group_binds:
  45.          - neutron_linuxbridge_agent
  46.     - network:
  47.         container_bridge: "br-vlan"
  48.         container_type: "veth"
  49.         container_interface: "eth12"
  50.         host_bind_override: "eth12"
  51.         type: "flat"
  52.         net_name: "flat"
  53.         group_binds:
  54.          - neutron_linuxbridge_agent
  55.     - network:
  56.         container_bridge: "br-vlan"
  57.         container_type: "veth"
  58.         container_interface: "eth11"
  59.         type: "vlan"
  60.         range: "101:200,301:400"
  61.         net_name: "vlan"
  62.         group_binds:
  63.          - neutron_linuxbridge_agent
  64.     - network:
  65.         container_bridge: "br-storage"
  66.         container_type: "veth"
  67.         container_interface: "eth2"
  68.         ip_from_q: "storage"
  69.         type: "raw"
  70.         group_binds:
  71.          - glance_api
  72.           - cinder_api
  73.           - cinder_volume
  74.           - nova_compute
  75.           - ceph-osd
  76.  
  77. ###
  78. ### Infrastructure
  79. ###
  80.  
  81. _infrastructure_hosts: &infrastructure_hosts
  82.   infra1:
  83.     ip: 172.29.236.11
  84.   infra2:
  85.     ip: 172.29.236.12
  86.   infra3:
  87.     ip: 172.29.236.13
  88.  
  89. # nova hypervisors
  90. compute_hosts: &compute_hosts
  91.   compute1:
  92.     ip: 172.29.236.31
  93.   compute2:
  94.     ip: 172.29.236.32
  95.   compute3:
  96.     ip: 172.29.236.33
  97.  
  98. ceph-osd_hosts:
  99.   osd1:
  100.     ip: 172.29.236.21
  101.   osd2:
  102.     ip: 172.29.236.22
  103.   osd3:
  104.     ip: 172.29.236.23
  105.  
  106. # galera, memcache, rabbitmq, utility
  107. shared-infra_hosts: *infrastructure_hosts
  108.  
  109. # ceph-mon containers
  110. ceph-mon_hosts: *infrastructure_hosts
  111.  
  112. # repository (apt cache, python packages, etc)
  113. repo-infra_hosts: *infrastructure_hosts
  114.  
  115. # load balancer
  116. # Ideally the load balancer should not use the Infrastructure hosts.
  117. # Dedicated hardware is best for improved performance and security.
  118. haproxy_hosts: *infrastructure_hosts
  119.  
  120. ###
  121. ### OpenStack
  122. ###
  123.  
  124. # keystone
  125. identity_hosts: *infrastructure_hosts
  126.  
  127. # cinder api services
  128. storage-infra_hosts: *infrastructure_hosts
  129.  
  130. # cinder volume hosts (Ceph RBD-backed)
  131. storage_hosts: *infrastructure_hosts
  132.  
  133. # glance
  134. image_hosts: *infrastructure_hosts
  135.  
  136. # nova api, conductor, etc services
  137. compute-infra_hosts: *infrastructure_hosts
  138.  
  139. # heat
  140. orchestration_hosts: *infrastructure_hosts
  141.  
  142. # horizon
  143. dashboard_hosts: *infrastructure_hosts
  144.  
  145. # neutron server, agents (L3, etc)
  146. network_hosts: *infrastructure_hosts
  147.  
  148. magnum-infra_hosts: *infrastructure_hosts
  149.  
  150. EOF
  151.  
  152. cat >> /etc/openstack_deploy/user_variables.yml << EOF
  153. ## Load Balancer Configuration (haproxy/keepalived)
  154. haproxy_keepalived_external_vip_cidr: "192.168.122.10/32"
  155. haproxy_keepalived_internal_vip_cidr: "172.29.236.10/32"
  156. haproxy_keepalived_external_interface: eth0
  157. haproxy_keepalived_internal_interface: br-mgmt
  158.  
  159. ## Ceph cluster fsid (must be generated before first run)
  160. ## Generate a uuid using: python -c 'import uuid; print(str(uuid.uuid4()))'
  161. generate_fsid: false
  162. fsid: f10f2cad-7cf0-4388-8745-211f3d4762ea
  163.  
  164. ## ceph-ansible settings
  165. ## See https://github.com/ceph/ceph-ansible/tree/master/group_vars for
  166. ## additional configuration options availble.
  167. monitor_address_block: "{{ cidr_networks.container }}"
  168. public_network: "{{ cidr_networks.container }}"
  169. cluster_network: "{{ cidr_networks.storage }}"
  170. osd_scenario: collocated
  171. devices:
  172.  - /dev/vdb
  173. journal_size: 10240 # size in MB
  174. # ceph-ansible automatically creates pools & keys for OpenStack services
  175. openstack_config: true
  176. cinder_ceph_client: cinder
  177. glance_ceph_client: glance
  178. glance_default_store: rbd
  179. glance_rbd_store_pool: images
  180. nova_libvirt_images_rbd_pool: vms
  181.  
  182. cinder_backends:
  183.   RBD:
  184.     volume_driver: cinder.volume.drivers.rbd.RBDDriver
  185.     rbd_pool: volumes
  186.     rbd_ceph_conf: /etc/ceph/ceph.conf
  187.     rbd_store_chunk_size: 8
  188.     volume_backend_name: rbddriver
  189.     rbd_user: "{{ cinder_ceph_client }}"
  190.     rbd_secret_uuid: "{{ cinder_ceph_client_uuid }}"
  191.     report_discard_supported: true
  192. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement