1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- apiVersion: v1
- metadata:
- name: {{ install_type }}
- baseDomain: ocp4.example.com
- {% if install_type == 'iso' %}
- bootstrapInPlace:
- installationDisk: /dev/sda
- {% endif %}
- compute:
- - hyperthreading: Enabled
- name: worker
- {% if install_type == 'ipi' %}
- replicas: 2
- {% else %}
- replicas: 0
- {% endif %}
- controlPlane:
- hyperthreading: Enabled
- name: master
- {% if install_type == 'ipi' %}
- replicas: 3
- {% else %}
- replicas: 1
- {% endif %}
- networking:
- clusterNetwork:
- - cidr: 10.128.0.0/14
- hostPrefix: 23
- networkType: OVNKubernetes
- {% if install_type in ['agent','ipi'] %}
- machineNetwork:
- {% if install_type == 'agent' %}
- - cidr: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['address'] }}/32
- {% else %}
- - cidr: {{ (hostvars[install_host]['ansible_facts']['default_ipv4']['address'] + '/' + hostvars[install_host]['ansible_facts']['default_ipv4']['netmask']) | ansible.utils.ipaddr('network/prefix') }}
- {% endif %}
- {% endif %}
- serviceNetwork:
- - 172.30.0.0/16
- platform:
- {% if install_type == 'ipi' %}
- baremetal:
- apiVIP: 192.168.50.8
- ingressVIP: 192.168.50.9
- {% else %}
- none: {}
- {% endif %}
- fips: false
- pullSecret: '{{ pull_secret | ansible.builtin.to_json }}'
- sshKey: '{{ public_key }}'
- additionalTrustBundle: |
- {{ lab_ca_cert | ansible.builtin.regex_replace('^', ' ', multiline=True) }}
- imageDigestSources:
- {# There are two ImageDigestMirrorSet resources in idms-oc-mirror.yaml - use a loop. #}
- {% for cs in content_sources %}
- {{ cs.spec.imageDigestMirrors | list | to_yaml }}{% endfor %}
|