main.yml 9.2 KB

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