#jinja2: trim_blocks:True, lstrip_blocks:True apiVersion: v1 baseDomain: "{{ ocp_base_domain }}" compute: - name: worker replicas: {{ worker_nodes }} {% if ocp_worker_flavor != "" %} platform: openstack: type: {{ ocp_worker_flavor }} {% else %} platform: {} {% endif %} controlPlane: name: master replicas: {{ master_nodes }} {% if ocp_master_flavor != "" %} platform: openstack: type: {{ ocp_master_flavor }} {% else %} platform: {} {% endif %} metadata: name: "{{ ocp_cluster_name }}" networking: clusterNetwork: - cidr: 10.128.0.0/13 hostPrefix: 22 serviceCIDR: 172.30.0.0/16 machineCIDR: 10.0.0.0/16 type: "{{ ocp_network_type }}" platform: openstack: {% if ocp_release[:3]|float >= 4.7 %} defaultMachinePlatform: type: {{ ocp_worker_flavor }} {% else %} computeFlavor: "m4.xlarge" {% endif %} cloud: "{{ osp_project_name }}" externalNetwork: "{{ public_net_name }}" region: "regionOne" lbFloatingIP: "{{ api_floating_ip }}" ingressFloatingIP: "{{ ingress_floating_ip }}" externalDNS: ["{{ ansible_dns.nameservers| join('", "') }}"] octaviaSupport: "1" trunkSupport: "1" pullSecret: {{ ocp_pull_secret }} sshKey: | {{ ssh_public_key }}