main.yml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. ---
  2. openshift_aws_create_s3: True
  3. openshift_aws_create_iam_cert: True
  4. openshift_aws_create_iam_role: False
  5. openshift_aws_create_security_groups: True
  6. openshift_aws_create_launch_config: True
  7. openshift_aws_create_scale_group: True
  8. openshift_aws_node_group_upgrade: False
  9. openshift_aws_wait_for_ssh: True
  10. openshift_aws_clusterid: default
  11. openshift_aws_region: us-east-1
  12. openshift_aws_vpc_name: "{{ openshift_aws_clusterid }}"
  13. openshift_aws_build_ami_group: "{{ openshift_aws_clusterid }}"
  14. openshift_aws_iam_cert_name: "{{ openshift_aws_clusterid }}-master-external"
  15. openshift_aws_iam_cert_path: ''
  16. openshift_aws_iam_cert_key_path: ''
  17. openshift_aws_iam_role_name: openshift_node_describe_instances
  18. openshift_aws_iam_role_policy_json: "{{ lookup('file', 'describeinstances.json') }}"
  19. openshift_aws_iam_role_policy_name: "describe_instances"
  20. openshift_aws_iam_kms_alias: "alias/{{ openshift_aws_clusterid }}_kms"
  21. openshift_aws_ami: ''
  22. openshift_aws_ami_copy_wait: False
  23. openshift_aws_ami_encrypt: False
  24. openshift_aws_ami_copy_src_region: "{{ openshift_aws_region }}"
  25. openshift_aws_ami_name: openshift-gi
  26. openshift_aws_base_ami_name: ami_base
  27. openshift_aws_launch_config_bootstrap_token: ''
  28. openshift_aws_users: []
  29. openshift_aws_ami_tags:
  30. bootstrap: "true"
  31. openshift-created: "true"
  32. parent: "{{ openshift_aws_base_ami | default('unknown') }}"
  33. openshift_aws_s3_mode: create
  34. openshift_aws_s3_bucket_name: "{{ openshift_aws_clusterid }}-docker-registry"
  35. openshift_aws_elb_health_check:
  36. ping_protocol: tcp
  37. ping_port: 443
  38. response_timeout: 5
  39. interval: 30
  40. unhealthy_threshold: 2
  41. healthy_threshold: 2
  42. openshift_aws_elb_basename: "{{ openshift_aws_clusterid }}"
  43. openshift_aws_elb_name_dict:
  44. master:
  45. external: "{{ openshift_aws_elb_basename }}-master-external"
  46. internal: "{{ openshift_aws_elb_basename }}-master-internal"
  47. infra:
  48. external: "{{ openshift_aws_elb_basename }}-infra"
  49. openshift_aws_elb_idle_timout: 400
  50. openshift_aws_elb_scheme: internet-facing
  51. openshift_aws_elb_cert_arn: ''
  52. openshift_aws_elb_dict:
  53. master:
  54. external:
  55. - protocol: tcp
  56. load_balancer_port: 80
  57. instance_protocol: ssl
  58. instance_port: 443
  59. - protocol: ssl
  60. load_balancer_port: 443
  61. instance_protocol: ssl
  62. instance_port: 443
  63. # ssl certificate required for https or ssl
  64. ssl_certificate_id: "{{ openshift_aws_elb_cert_arn }}"
  65. internal:
  66. - protocol: tcp
  67. load_balancer_port: 80
  68. instance_protocol: tcp
  69. instance_port: 80
  70. - protocol: tcp
  71. load_balancer_port: 443
  72. instance_protocol: tcp
  73. instance_port: 443
  74. infra:
  75. external:
  76. - protocol: tcp
  77. load_balancer_port: 80
  78. instance_protocol: tcp
  79. instance_port: 443
  80. proxy_protocol: True
  81. - protocol: tcp
  82. load_balancer_port: 443
  83. instance_protocol: tcp
  84. instance_port: 443
  85. proxy_protocol: True
  86. openshift_aws_node_group_config_master_volumes:
  87. - device_name: /dev/sdb
  88. volume_size: 100
  89. device_type: gp2
  90. delete_on_termination: False
  91. openshift_aws_node_group_config_node_volumes:
  92. - device_name: /dev/sdb
  93. volume_size: 100
  94. device_type: gp2
  95. delete_on_termination: True
  96. openshift_aws_node_group_config_tags: "{{ openshift_aws_clusterid | build_instance_tags }}"
  97. openshift_aws_node_group_termination_policy: Default
  98. openshift_aws_node_group_replace_instances: []
  99. openshift_aws_node_group_replace_all_instances: False
  100. openshift_aws_ami_map:
  101. master: "{{ openshift_aws_ami }}"
  102. infra: "{{ openshift_aws_ami }}"
  103. compute: "{{ openshift_aws_ami }}"
  104. openshift_aws_master_group:
  105. - name: "{{ openshift_aws_clusterid }} master group"
  106. group: master
  107. tags:
  108. host-type: master
  109. sub-host-type: default
  110. runtime: docker
  111. openshift_aws_node_groups:
  112. - name: "{{ openshift_aws_clusterid }} compute group"
  113. group: compute
  114. tags:
  115. host-type: node
  116. sub-host-type: compute
  117. runtime: docker
  118. - name: "{{ openshift_aws_clusterid }} infra group"
  119. group: infra
  120. tags:
  121. host-type: node
  122. sub-host-type: infra
  123. runtime: docker
  124. openshift_aws_created_asgs: []
  125. openshift_aws_current_asgs: []
  126. # these will be used during upgrade
  127. openshift_aws_master_group_config:
  128. # The 'master' key is always required here.
  129. master:
  130. instance_type: m4.xlarge
  131. volumes: "{{ openshift_aws_node_group_config_master_volumes }}"
  132. health_check:
  133. period: 60
  134. type: EC2
  135. min_size: 3
  136. max_size: 3
  137. desired_size: 3
  138. wait_for_instances: True
  139. termination_policy: "{{ openshift_aws_node_group_termination_policy }}"
  140. replace_all_instances: "{{ openshift_aws_node_group_replace_all_instances }}"
  141. iam_role: "{{ openshift_aws_iam_role_name }}"
  142. policy_name: "{{ openshift_aws_iam_role_policy_name }}"
  143. policy_json: "{{ openshift_aws_iam_role_policy_json }}"
  144. elbs: "{{ openshift_aws_elb_name_dict['master'].keys()| map('extract', openshift_aws_elb_name_dict['master']) | list }}"
  145. openshift_aws_node_group_config:
  146. # The 'compute' key is always required here.
  147. compute:
  148. instance_type: m4.xlarge
  149. volumes: "{{ openshift_aws_node_group_config_node_volumes }}"
  150. health_check:
  151. period: 60
  152. type: EC2
  153. min_size: 3
  154. max_size: 100
  155. desired_size: 3
  156. termination_policy: "{{ openshift_aws_node_group_termination_policy }}"
  157. replace_all_instances: "{{ openshift_aws_node_group_replace_all_instances }}"
  158. iam_role: "{{ openshift_aws_iam_role_name }}"
  159. policy_name: "{{ openshift_aws_iam_role_policy_name }}"
  160. policy_json: "{{ openshift_aws_iam_role_policy_json }}"
  161. # The 'infra' key is always required here.
  162. infra:
  163. instance_type: m4.xlarge
  164. volumes: "{{ openshift_aws_node_group_config_node_volumes }}"
  165. health_check:
  166. period: 60
  167. type: EC2
  168. min_size: 2
  169. max_size: 20
  170. desired_size: 2
  171. termination_policy: "{{ openshift_aws_node_group_termination_policy }}"
  172. replace_all_instances: "{{ openshift_aws_node_group_replace_all_instances }}"
  173. iam_role: "{{ openshift_aws_iam_role_name }}"
  174. policy_name: "{{ openshift_aws_iam_role_policy_name }}"
  175. policy_json: "{{ openshift_aws_iam_role_policy_json }}"
  176. elbs: "{{ openshift_aws_elb_name_dict['infra'].keys()| map('extract', openshift_aws_elb_name_dict['infra']) | list }}"
  177. openshift_aws_elb_tags: "{{ openshift_aws_kube_tags }}"
  178. openshift_aws_elb_az_load_balancing: False
  179. openshift_aws_kube_tags: "{{ openshift_aws_clusterid | build_instance_tags }}"
  180. openshift_aws_elb_security_groups: "{{ openshift_aws_launch_config_security_groups }}"
  181. openshift_aws_launch_config_security_groups:
  182. compute:
  183. - "{{ openshift_aws_clusterid }}" # default sg
  184. - "{{ openshift_aws_clusterid }}_compute" # node type sg
  185. - "{{ openshift_aws_clusterid }}_compute_k8s" # node type sg k8s
  186. infra:
  187. - "{{ openshift_aws_clusterid }}" # default sg
  188. - "{{ openshift_aws_clusterid }}_infra" # node type sg
  189. - "{{ openshift_aws_clusterid }}_infra_k8s" # node type sg k8s
  190. master:
  191. - "{{ openshift_aws_clusterid }}" # default sg
  192. - "{{ openshift_aws_clusterid }}_master" # node type sg
  193. - "{{ openshift_aws_clusterid }}_master_k8s" # node type sg k8s
  194. openshift_aws_security_groups_tags: "{{ openshift_aws_kube_tags }}"
  195. openshift_aws_node_security_groups:
  196. default:
  197. name: "{{ openshift_aws_clusterid }}"
  198. desc: "{{ openshift_aws_clusterid }} default"
  199. rules:
  200. - proto: tcp
  201. from_port: 22
  202. to_port: 22
  203. cidr_ip: 0.0.0.0/0
  204. - proto: all
  205. from_port: all
  206. to_port: all
  207. group_name: "{{ openshift_aws_clusterid }}"
  208. master:
  209. name: "{{ openshift_aws_clusterid }}_master"
  210. desc: "{{ openshift_aws_clusterid }} master instances"
  211. rules:
  212. - proto: tcp
  213. from_port: 80
  214. to_port: 80
  215. cidr_ip: 0.0.0.0/0
  216. - proto: tcp
  217. from_port: 443
  218. to_port: 443
  219. cidr_ip: 0.0.0.0/0
  220. compute:
  221. name: "{{ openshift_aws_clusterid }}_compute"
  222. desc: "{{ openshift_aws_clusterid }} compute node instances"
  223. infra:
  224. name: "{{ openshift_aws_clusterid }}_infra"
  225. desc: "{{ openshift_aws_clusterid }} infra node instances"
  226. rules:
  227. - proto: tcp
  228. from_port: 80
  229. to_port: 80
  230. cidr_ip: 0.0.0.0/0
  231. - proto: tcp
  232. from_port: 443
  233. to_port: 443
  234. cidr_ip: 0.0.0.0/0
  235. - proto: tcp
  236. from_port: 30000
  237. to_port: 32000
  238. cidr_ip: 0.0.0.0/0
  239. etcd:
  240. name: "{{ openshift_aws_clusterid }}_etcd"
  241. desc: "{{ openshift_aws_clusterid }} etcd instances"
  242. openshift_aws_vpc_tags:
  243. Name: "{{ openshift_aws_vpc_name }}"
  244. openshift_aws_subnet_az: us-east-1c
  245. openshift_aws_vpc:
  246. name: "{{ openshift_aws_vpc_name }}"
  247. cidr: 172.31.0.0/16
  248. subnets:
  249. us-east-1:
  250. - cidr: 172.31.48.0/20
  251. az: "us-east-1c"
  252. - cidr: 172.31.32.0/20
  253. az: "us-east-1e"
  254. - cidr: 172.31.16.0/20
  255. az: "us-east-1a"
  256. openshift_aws_node_run_bootstrap_startup: True
  257. openshift_aws_node_user_data: ''
  258. openshift_aws_node_config_namespace: openshift-node
  259. openshift_aws_masters_groups: masters,etcd,nodes