main.yml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. ---
  2. openshift_openstack_stack_state: 'present'
  3. openshift_openstack_ssh_ingress_cidr: 0.0.0.0/0
  4. openshift_openstack_node_ingress_cidr: 0.0.0.0/0
  5. openshift_openstack_lb_ingress_cidr: 0.0.0.0/0
  6. openshift_openstack_num_etcd: 0
  7. openshift_openstack_num_masters: 1
  8. openshift_openstack_num_nodes: 1
  9. openshift_openstack_num_infra: 1
  10. openshift_openstack_num_cns: 0
  11. openshift_openstack_dns_nameservers: []
  12. openshift_openstack_nodes_to_remove: []
  13. openshift_openstack_use_lbaas_load_balancer: false
  14. openshift_openstack_lbaasv2_provider: Octavia
  15. openshift_openstack_use_vm_load_balancer: false
  16. openshift_openstack_cluster_node_labels:
  17. app:
  18. region: primary
  19. infra:
  20. region: infra
  21. openshift_openstack_install_debug_packages: false
  22. openshift_openstack_required_packages:
  23. - NetworkManager
  24. openshift_openstack_debug_packages:
  25. - bash-completion
  26. - bind-utils
  27. - bridge-utils
  28. - git
  29. - net-tools
  30. - vim-enhanced
  31. - wget
  32. # container-storage-setup
  33. openshift_openstack_container_storage_setup:
  34. docker_dev: "/dev/sdb"
  35. docker_vg: "docker-vol"
  36. docker_data_size: "95%VG"
  37. docker_dm_basesize: "3G"
  38. container_root_lv_name: "dockerlv"
  39. container_root_lv_mount_path: "/var/lib/docker"
  40. # populate-dns
  41. openshift_openstack_dns_records_add: []
  42. openshift_openstack_public_hostname_suffix: ""
  43. openshift_openstack_private_hostname_suffix: ""
  44. openshift_openstack_public_dns_domain: "example.com"
  45. openshift_openstack_full_dns_domain: "{{ (openshift_openstack_clusterid|trim == '') | ternary(openshift_openstack_public_dns_domain, openshift_openstack_clusterid + '.' + openshift_openstack_public_dns_domain) }}"
  46. openshift_openstack_app_subdomain: "apps"
  47. # heat vars
  48. openshift_openstack_heat_template_version: pike
  49. openshift_openstack_clusterid: openshift
  50. openshift_openstack_stack_name: "openshift-cluster"
  51. openshift_openstack_subnet_cidr: "192.168.99.0/24"
  52. openshift_openstack_pool_start: "192.168.99.3"
  53. openshift_openstack_pool_end: "192.168.99.254"
  54. openshift_openstack_kuryr_service_subnet_cidr: "172.30.0.0/16"
  55. openshift_openstack_kuryr_service_pool_start: "172.30.128.1"
  56. openshift_openstack_kuryr_service_pool_end: "172.30.255.253"
  57. openshift_openstack_kuryr_pod_subnet_cidr: "10.11.0.0/16"
  58. openshift_openstack_master_hostname: master
  59. openshift_openstack_infra_hostname: infra-node
  60. openshift_openstack_cns_hostname: cns
  61. openshift_openstack_node_hostname: app-node
  62. openshift_openstack_lb_hostname: lb
  63. openshift_openstack_etcd_hostname: etcd
  64. openshift_openstack_set_hostname_to_compute_name: true
  65. openshift_openstack_keypair_name: openshift
  66. openshift_openstack_lb_flavor: "{{ openshift_openstack_default_flavor }}"
  67. openshift_openstack_etcd_flavor: "{{ openshift_openstack_default_flavor }}"
  68. openshift_openstack_master_flavor: "{{ openshift_openstack_default_flavor }}"
  69. openshift_openstack_node_flavor: "{{ openshift_openstack_default_flavor }}"
  70. openshift_openstack_infra_flavor: "{{ openshift_openstack_default_flavor }}"
  71. openshift_openstack_cns_flavor: "{{ openshift_openstack_default_flavor }}"
  72. openshift_openstack_master_image: "{{ openshift_openstack_default_image_name }}"
  73. openshift_openstack_infra_image: "{{ openshift_openstack_default_image_name }}"
  74. openshift_openstack_cns_image: "{{ openshift_openstack_default_image_name }}"
  75. openshift_openstack_node_image: "{{ openshift_openstack_default_image_name }}"
  76. openshift_openstack_lb_image: "{{ openshift_openstack_default_image_name }}"
  77. openshift_openstack_etcd_image: "{{ openshift_openstack_default_image_name }}"
  78. openshift_openstack_provider_network_name: null
  79. openshift_openstack_external_network_name: null
  80. openshift_openstack_private_network: >-
  81. {% if openshift_openstack_provider_network_name | default(None) -%}
  82. {{ openshift_openstack_provider_network_name }}
  83. {%- else -%}
  84. {{ openshift_openstack_private_network_name | default ('openshift-ansible-' + openshift_openstack_stack_name + '-net') }}
  85. {%- endif -%}
  86. openshift_openstack_master_server_group_policies: []
  87. openshift_openstack_infra_server_group_policies: []
  88. openshift_openstack_docker_volume_size: 15
  89. openshift_openstack_master_volume_size: "{{ openshift_openstack_docker_volume_size }}"
  90. openshift_openstack_infra_volume_size: "{{ openshift_openstack_docker_volume_size }}"
  91. openshift_openstack_cns_volume_size: "{{ openshift_openstack_docker_volume_size }}"
  92. openshift_openstack_node_volume_size: "{{ openshift_openstack_docker_volume_size }}"
  93. openshift_openstack_etcd_volume_size: 2
  94. openshift_openstack_lb_volume_size: 5
  95. openshift_openstack_ephemeral_volumes: false
  96. # User commands for cloud-init executed on all Nova servers provisioned
  97. openshift_openstack_provision_user_commands: []
  98. # cloud-config
  99. openshift_openstack_disable_root: true
  100. openshift_openstack_user: openshift
  101. # security groups
  102. openshift_openstack_common_secgroup_rules:
  103. - direction: ingress
  104. protocol: tcp
  105. port_range_min: 22
  106. port_range_max: 22
  107. remote_ip_prefix: "{{ openshift_openstack_ssh_ingress_cidr }}"
  108. - direction: ingress
  109. protocol: icmp
  110. remote_ip_prefix: "{{ openshift_openstack_ssh_ingress_cidr }}"
  111. openshift_openstack_master_secgroup_rules:
  112. - direction: ingress
  113. protocol: tcp
  114. port_range_min: 4001
  115. port_range_max: 4001
  116. - direction: ingress
  117. protocol: tcp
  118. port_range_min: "{{ openshift_master_api_port }}"
  119. port_range_max: "{{ openshift_master_api_port }}"
  120. - direction: ingress
  121. protocol: tcp
  122. port_range_min: "{{ openshift_master_console_port|default(8443) }}"
  123. port_range_max: "{{ openshift_master_console_port|default(8443) }}"
  124. - direction: ingress
  125. protocol: tcp
  126. port_range_min: 8053
  127. port_range_max: 8053
  128. - direction: ingress
  129. protocol: udp
  130. port_range_min: 8053
  131. port_range_max: 8053
  132. - direction: ingress
  133. protocol: tcp
  134. port_range_min: 24224
  135. port_range_max: 24224
  136. - direction: ingress
  137. protocol: udp
  138. port_range_min: 24224
  139. port_range_max: 24224
  140. - direction: ingress
  141. protocol: tcp
  142. port_range_min: 2224
  143. port_range_max: 2224
  144. - direction: ingress
  145. protocol: udp
  146. port_range_min: 5404
  147. port_range_max: 5405
  148. - direction: ingress
  149. protocol: tcp
  150. port_range_min: 9090
  151. port_range_max: 9090
  152. openshift_openstack_etcd_secgroup_rules:
  153. - direction: ingress
  154. protocol: tcp
  155. port_range_min: 2379
  156. port_range_max: 2380
  157. remote_mode: remote_group_id
  158. openshift_openstack_node_secgroup_rules:
  159. # NOTE(shadower): the 53 rules are needed for Kuryr
  160. - direction: ingress
  161. protocol: tcp
  162. port_range_min: 53
  163. port_range_max: 53
  164. - direction: ingress
  165. protocol: udp
  166. port_range_min: 53
  167. port_range_max: 53
  168. - direction: ingress
  169. protocol: tcp
  170. port_range_min: 10250
  171. port_range_max: 10250
  172. remote_mode: remote_group_id
  173. - direction: ingress
  174. protocol: udp
  175. port_range_min: 10250
  176. port_range_max: 10250
  177. remote_mode: remote_group_id
  178. - direction: ingress
  179. protocol: tcp
  180. port_range_min: 10255
  181. port_range_max: 10255
  182. remote_mode: remote_group_id
  183. - direction: ingress
  184. protocol: udp
  185. port_range_min: 10255
  186. port_range_max: 10255
  187. remote_mode: remote_group_id
  188. - direction: ingress
  189. protocol: udp
  190. port_range_min: 4789
  191. port_range_max: 4789
  192. remote_mode: remote_group_id
  193. - direction: ingress
  194. protocol: tcp
  195. port_range_min: 30000
  196. port_range_max: 32767
  197. remote_ip_prefix: "{{ openshift_openstack_node_ingress_cidr }}"
  198. - direction: ingress
  199. protocol: tcp
  200. port_range_min: 30000
  201. port_range_max: 32767
  202. remote_ip_prefix: "{{ openshift_openstack_subnet_cidr }}"
  203. openshift_openstack_infra_secgroup_rules:
  204. - direction: ingress
  205. protocol: tcp
  206. port_range_min: 80
  207. port_range_max: 80
  208. - direction: ingress
  209. protocol: tcp
  210. port_range_min: 443
  211. port_range_max: 443
  212. - direction: ingress
  213. protocol: tcp
  214. port_range_min: 1936
  215. port_range_max: 1936
  216. openshift_openstack_cns_secgroup_rules:
  217. # rpcbind
  218. - direction: ingress
  219. protocol: tcp
  220. port_range_min: 111
  221. port_range_max: 111
  222. # glusterfs_sshd
  223. - direction: ingress
  224. protocol: tcp
  225. port_range_min: 2222
  226. port_range_max: 2222
  227. # iscsi-targets
  228. - direction: ingress
  229. protocol: tcp
  230. port_range_min: 3260
  231. port_range_max: 3260
  232. # heketi dialing backends
  233. - direction: ingress
  234. protocol: tcp
  235. port_range_min: 10250
  236. port_range_max: 10250
  237. # glusterfs_management
  238. - direction: ingress
  239. protocol: tcp
  240. port_range_min: 24007
  241. port_range_max: 24007
  242. # glusterfs_rdma
  243. - direction: ingress
  244. protocol: tcp
  245. port_range_min: 24008
  246. port_range_max: 24008
  247. # glusterblockd
  248. - direction: ingress
  249. protocol: tcp
  250. port_range_min: 24010
  251. port_range_max: 24010
  252. # glusterfs_bricks
  253. - direction: ingress
  254. protocol: tcp
  255. port_range_min: 49152
  256. port_range_max: 49251
  257. openshift_openstack_lb_base_secgroup_rules:
  258. - direction: ingress
  259. protocol: tcp
  260. port_range_min: 443
  261. port_range_max: 443
  262. remote_ip_prefix: "{{ openshift_openstack_lb_ingress_cidr }}"
  263. - direction: ingress
  264. protocol: tcp
  265. port_range_min: "{{ openshift_master_api_port }}"
  266. port_range_max: "{{ openshift_master_api_port }}"
  267. remote_ip_prefix: "{{ openshift_openstack_lb_ingress_cidr }}"
  268. openshift_openstack_lb_console_secgroup_rules:
  269. - direction: ingress
  270. protocol: tcp
  271. port_range_min: "{{ openshift_master_console_port | default(8443) }}"
  272. port_range_max: "{{ openshift_master_console_port | default(8443) }}"
  273. remote_ip_prefix: "{{ openshift_openstack_lb_ingress_cidr }}"