Packer.Images/ansible/roles/metacluster/templates/clusterctl.j2
Danny Bessems 9199809da5
Some checks failed
continuous-integration/drone/push Build is failing
Fix variable names;Add clusterctl config template
2022-11-06 14:21:35 +01:00

27 lines
1.2 KiB
Django/Jinja

providers:
- name: "kubeadm"
url: "/opt/metacluster/manifests/bootstrap-kubeadm/{{ _template.version.base }}/bootstrap-components.yaml"
type: "BootstrapProvider"
- name: "cluster-api"
url: "/opt/metacluster/manifests/cluster-api/{{ _template.version.base }}/core-components.yaml"
type: "CoreProvider"
- name: "kubeadm"
url: "/opt/metacluster/manifests/control-plane-kubeadm/{{ _template.version.base }}/control-plane-components.yaml"
type: "ControlPlaneProvider"
- name: "vsphere"
url: "/opt/metacluster/manifests/infrastructure-vsphere/{{ _template.version.infrastructure-vsphere }}/infrastructure-components.yaml"
type: "InfrastructureProvider"
## -- Controller settings -- ##
VSPHERE_USERNAME: "{{ _template.hv.username }}"
VSPHERE_PASSWORD: "{{ _template.hv.password }}"
## -- Required workload cluster default settings -- ##
VSPHERE_SERVER: "{{ _template.hv.fqdn }}"
VSPHERE_DATACENTER: "{{ _template.hv.datacenter }}"
VSPHERE_DATASTORE: "{{ _template.hv.datastore }}"
VSPHERE_NETWORK: "{{ _template.hv.network }}"
#VSPHERE_RESOURCE_POOL: ""
#VSPHERE_FOLDER: ""
#VSPHERE_TEMPLATE: "centos-7-kube-v1.18.2"
#VSPHERE_SSH_AUTHORIZED_KEY: "output of cat /root/.ssh/id_rsa.pub"