Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.52 KB | None | 0 0
  1. /etc/netplan/01-netcfg.yaml
  2.  
  3. # This file describes the network interfaces available on your system
  4. # For more information, see netplan(5).
  5. network:
  6. version: 2
  7. renderer: networkd
  8. ethernets:
  9. enp3s0:
  10. dhcp4: false
  11. dhcp6: false
  12. enp4s0:
  13. dhcp4: false
  14. dhcp6: false
  15. bonds:
  16. bond0:
  17. interfaces:
  18. - enp3s0
  19. - enp4s0
  20. parameters:
  21. mode: 802.3ad
  22. vlans:
  23. vlan.1:
  24. id: 1
  25. link: bond0
  26. vlan.10:
  27. id: 10
  28. link: bond0
  29. vlan.18:
  30. id: 18
  31. link: bond0
  32. bridges:
  33. br-mgmt:
  34. interfaces:
  35. - vlan.1
  36. dhcp4: false
  37. dhcp6: false
  38. addresses:
  39. - {{ network_mgmt }}
  40. gateway4: 10.1.0.1
  41. nameservers:
  42. addresses:
  43. - 1.0.0.1
  44. - 1.1.1.1
  45. - 8.8.4.4
  46. - 8.8.8.8
  47. br-storage:
  48. interfaces:
  49. - vlan.18
  50. dhcp4: false
  51. dhcp6: false
  52. addresses:
  53. - {{ network_storage }}
  54. br-vlan:
  55. interfaces:
  56. - vlan.10
  57. dhcp4: false
  58. dhcp6: false
  59.  
  60. /etc/openstack_deploy/openstack_user_config.yml
  61.  
  62. cidr_networks:
  63. container: 10.1.0.0/24
  64. storage: 10.1.1.0/24
  65. used_ips:
  66. - "10.1.0.1,10.1.0.132"
  67. - "10.1.0.164,10.1.0.254"
  68. global_overrides:
  69. internal_lb_vip_address: 10.1.0.100
  70. management_bridge: br-mgmt
  71. provider_networks:
  72. - network:
  73. group_binds:
  74. - all_containers
  75. - hosts
  76. type: "raw"
  77. container_bridge: "br-mgmt"
  78. container_interface: "eth1"
  79. container_type: "veth"
  80. ip_from_q: "container"
  81. is_container_address: true
  82. - network:
  83. group_binds:
  84. - glance_api
  85. - cinder_api
  86. - cinder_volume
  87. - nova_compute
  88. type: "raw"
  89. container_bridge: "br-storage"
  90. container_type: "veth"
  91. container_interface: "eth2"
  92. container_mtu: "9000"
  93. ip_from_q: "storage"
  94. - network:
  95. group_binds:
  96. - neutron_linuxbridge_agent
  97. container_bridge: "br-vlan"
  98. container_type: "veth"
  99. container_interface: "eth3"
  100. host_bind_override: "eth3"
  101. type: "flat"
  102. net_name: "flat"
  103. infrastructure_hosts: &infrastructure_hosts
  104. OpenStack-0:
  105. ip: 10.1.0.102
  106. OpenStack-1:
  107. ip: 10.1.0.103
  108. OpenStack-2:
  109. ip: 10.1.0.104
  110. # haproxy
  111. haproxy_hosts: *infrastructure_hosts
  112. # ceph
  113. ceph-mon_hosts: *infrastructure_hosts
  114. ceph-osd_hosts: *infrastructure_hosts
  115. # galera, memcache, rabbitmq, utility
  116. shared-infra_hosts: *infrastructure_hosts
  117. # repository (apt cache, python packages, etc)
  118. repo-infra_hosts: *infrastructure_hosts
  119. # glance, nova, heat, horizon
  120. os-infra_hosts: *infrastructure_hosts
  121. # keystone
  122. identity_hosts: *infrastructure_hosts
  123. # neutron
  124. network_hosts: *infrastructure_hosts
  125. # nova
  126. compute_hosts: *infrastructure_hosts
  127. # storage
  128. storage-infra_hosts: *infrastructure_hosts
  129. storage_hosts: *infrastructure_hosts
  130.  
  131. /etc/openstack_deploy/user_variables.yml
  132.  
  133. # Because we have three haproxy nodes, we need
  134. # to one active LB IP, and we use keepalived for that.
  135. ## Load Balancer Configuration (haproxy/keepalived)
  136. haproxy_keepalived_external_vip_cidr: "198.60.81.0/28"
  137. haproxy_keepalived_internal_vip_cidr: "10.1.0.0/24"
  138. haproxy_keepalived_external_interface: br-vlan
  139. haproxy_keepalived_internal_interface: br-mgmt
  140.  
  141. ## Ceph cluster fsid (must be generated before first run)
  142. ## Generate a uuid using: python -c 'import uuid; print(str(uuid.uuid4()))'
  143. generate_fsid: false
  144. fsid: d948cc42-0fa1-4653-bdbd-8ff32bd80e89 # Replace with your generated UUID
  145.  
  146. ## ceph-ansible settings
  147. ## See https://github.com/ceph/ceph-ansible/tree/master/group_vars for
  148. ## additional configuration options availble.
  149. monitor_address_block: "{{ cidr_networks.container }}"
  150. public_network: "{{ cidr_networks.container }}"
  151. cluster_network: "{{ cidr_networks.storage }}"
  152. osd_scenario: collocated
  153. journal_size: 10240 # size in MB
  154. # ceph-ansible automatically creates pools & keys for OpenStack services
  155. openstack_config: true
  156. cinder_ceph_client: cinder
  157. glance_ceph_client: glance
  158. glance_default_store: rbd
  159. glance_rbd_store_pool: images
  160. nova_libvirt_images_rbd_pool: vms
  161.  
  162. cinder_backends:
  163. RBD:
  164. volume_driver: cinder.volume.drivers.rbd.RBDDriver
  165. rbd_pool: volumes
  166. rbd_ceph_conf: /etc/ceph/ceph.conf
  167. rbd_store_chunk_size: 8
  168. volume_backend_name: rbddriver
  169. rbd_user: "{{ cinder_ceph_client }}"
  170. rbd_secret_uuid: "{{ cinder_ceph_client_uuid }}"
  171. report_discard_supported: true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement