install-config-template.yaml.j2 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: v1
  2. metadata:
  3. name: {{ install_type }}
  4. baseDomain: ocp4.example.com
  5. {% if install_type == 'iso' %}
  6. bootstrapInPlace:
  7. installationDisk: /dev/sda
  8. {% endif %}
  9. compute:
  10. - hyperthreading: Enabled
  11. name: worker
  12. replicas: 0
  13. controlPlane:
  14. hyperthreading: Enabled
  15. name: master
  16. replicas: 1
  17. networking:
  18. clusterNetwork:
  19. - cidr: 10.128.0.0/14
  20. hostPrefix: 23
  21. networkType: OVNKubernetes
  22. {% if install_type == 'agent' %}
  23. machineNetwork:
  24. - cidr: {{ hostvars[install_host]['ansible_facts']['default_ipv4']['address'] }}/32
  25. {% endif %}
  26. serviceNetwork:
  27. - 172.30.0.0/16
  28. platform:
  29. none: {}
  30. fips: false
  31. pullSecret: '{{ pull_secret | ansible.builtin.to_json }}'
  32. sshKey: '{{ public_key }}'
  33. additionalTrustBundle: |
  34. {{ lab_ca_cert | ansible.builtin.regex_replace('^', ' ', multiline=True) }}
  35. imageDigestSources:
  36. {# There are two ImageDigestMirrorSet resources in idms-oc-mirror.yaml - use a loop. #}
  37. {% for cs in content_sources %}
  38. {{ cs.spec.imageDigestMirrors | list | to_yaml }}{% endfor %}