Packer.Images/ansible/roles/firstboot/files/ansible_payload/templates/clusterctl.j2

40 lines
1.7 KiB
Plaintext
Raw Normal View History

2022-11-08 13:43:40 +00:00
providers:
- name: "kubeadm"
2022-11-24 11:39:28 +00:00
url: "/opt/metacluster/cluster-api/bootstrap-kubeadm/{{ _template.version.base }}/bootstrap-components.yaml"
2022-11-08 13:43:40 +00:00
type: "BootstrapProvider"
- name: "cluster-api"
2022-11-24 11:39:28 +00:00
url: "/opt/metacluster/cluster-api/cluster-api/{{ _template.version.base }}/core-components.yaml"
2022-11-08 13:43:40 +00:00
type: "CoreProvider"
- name: "kubeadm"
2022-11-24 11:39:28 +00:00
url: "/opt/metacluster/cluster-api/control-plane-kubeadm/{{ _template.version.base }}/control-plane-components.yaml"
2022-11-08 13:43:40 +00:00
type: "ControlPlaneProvider"
- name: "vsphere"
2022-11-24 11:39:28 +00:00
url: "/opt/metacluster/cluster-api/infrastructure-vsphere/{{ _template.version.infrastructure_vsphere }}/infrastructure-components.yaml"
2022-11-08 13:43:40 +00:00
type: "InfrastructureProvider"
cert-manager:
2022-11-24 11:39:28 +00:00
url: "/opt/metacluster/cluster-api/cert-manager/{{ _template.version.cert_manager }}/cert-manager.yaml"
version: "{{ _template.version.cert_manager }}"
2022-11-08 13:43:40 +00:00
## -- Controller settings -- ##
VSPHERE_SERVER: "{{ _template.hv.fqdn }}"
VSPHERE_TLS_THUMBPRINT: "{{ _template.hv.tlsthumbprint }}"
VSPHERE_USERNAME: "{{ _template.hv.username }}"
VSPHERE_PASSWORD: "{{ _template.hv.password }}"
## -- Required workload cluster default settings -- ##
VSPHERE_DATACENTER: "{{ _template.hv.datacenter }}"
VSPHERE_DATASTORE: "{{ _template.hv.datastore }}"
VSPHERE_STORAGE_POLICY: ""
VSPHERE_NETWORK: "{{ _template.hv.network }}"
VSPHERE_RESOURCE_POOL: "{{ _template.hv.resourcepool }}"
VSPHERE_FOLDER: "{{ _template.hv.folder }}"
2022-11-08 19:11:31 +00:00
VSPHERE_TEMPLATE: "{{ _template.cluster.nodetemplate }}"
VSPHERE_SSH_AUTHORIZED_KEY: "{{ _template.cluster.publickey }}"
2022-11-08 13:43:40 +00:00
KUBERNETES_VERSION: "{{ _template.cluster.version }}"
CONTROL_PLANE_ENDPOINT_IP: "{{ _template.cluster.vip }}"
2022-11-09 15:59:43 +00:00
VIP_NETWORK_INTERFACE: "eth0"
2022-11-08 13:43:40 +00:00
EXP_CLUSTER_RESOURCE_SET: "true"