main.yml 9.2 KB

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