tkummer33
2020-03-04 d0fa81c3b4fd33133f74a539498473433968eb41
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
apiVersion: v1
metadata:
  name: {{ guid }}
baseDomain: {{ ocp4_base_domain | default(guid + subdomain_base_suffix) }}
controlPlane:
  name: master
  hyperthreading: Enabled
  platform:
{% if cloud_provider == 'ec2'| d(false) | bool %}
    ImageId: {{ custom_image.image_id }}
    aws:
      type: {{ master_instance_type }}
      rootVolume:
        type: {{ master_storage_type }}
{% endif %}
{% if cloud_provider == 'osp' %}
    openstack:
      type: {{ master_instance_type }}
{% endif %}
  replicas: {{ master_instance_count }}
compute:
- name: worker
  hyperthreading: Enabled
  platform:
{% if cloud_provider == 'ec2'| d(false) | bool %}
    ImageId: {{ custom_image.image_id }}
    aws:
      type: {{ worker_instance_type }}
      rootVolume:
        type: {{ worker_storage_type }}
{% endif %}
{% if cloud_provider == 'osp' %}
    openstack:
      type: {{ worker_instance_type }}
{% endif %}
  replicas: {{ worker_instance_count }}
networking:
  clusterNetwork:
  - cidr: 10.128.0.0/14
    hostPrefix: 23
  machineCIDR: 10.0.0.0/16
  serviceNetwork:
  - 172.30.0.0/16
  networkType: OpenshiftSDN
platform:
{% if cloud_provider == 'ec2'| d(false) | bool %}
  aws:
    region: {{ aws_region_final | d(aws_region) }}
    userTags: {{ hostvars.localhost.cf_tags_final | d({}) | to_json }}
{% endif %}
{% if cloud_provider == 'osp' %}
  openstack:
    cloud: {{ osp_cloud_name }}
    computeFlavor: {{ worker_instance_type }}
    externalNetwork: external
    lbFloatingIP: {{ hostvars.localhost.ocp_api_fip }}
    octaviaSupport: "1"
    region: ""
    trunkSupport: "0"
{% endif %}
pullSecret: '{{ ocp4_pull_secret |  replace("'",'"') }}'
sshKey: |
  {{ idrsapub.content | b64decode }}