From 85fb68b2e0a8dea4fd45d73298714f7bff8a751c Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Wed, 9 Nov 2022 16:59:43 +0100 Subject: [PATCH] Fix template name;Fix interface name --- .../ansible_payload/roles/workloadcluster/tasks/clusterapi.yml | 2 +- .../roles/workloadcluster/templates/clusterctl.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/firstboot/files/ansible_payload/roles/workloadcluster/tasks/clusterapi.yml b/ansible/roles/firstboot/files/ansible_payload/roles/workloadcluster/tasks/clusterapi.yml index 3c228fc..3e05edb 100644 --- a/ansible/roles/firstboot/files/ansible_payload/roles/workloadcluster/tasks/clusterapi.yml +++ b/ansible/roles/firstboot/files/ansible_payload/roles/workloadcluster/tasks/clusterapi.yml @@ -23,7 +23,7 @@ network: "{{ vcenter_info.network }}" resourcepool: "{{ vcenter_info.resourcepool }}" cluster: - nodetemplate: "{{ components.clusterapi.workload.node_template.name }}" + nodetemplate: "{{ (components.clusterapi.workload.node_template.name | split('.'))[:-1] | join('.') }}" publickey: "{{ vapp['guestinfo.rootsshkey'] }}" version: "{{ components.clusterapi.workload.version.k8s }}" vip: "{{ vapp['workloadcluster.vip'] }}" diff --git a/ansible/roles/firstboot/files/ansible_payload/roles/workloadcluster/templates/clusterctl.j2 b/ansible/roles/firstboot/files/ansible_payload/roles/workloadcluster/templates/clusterctl.j2 index 184da82..82c9886 100644 --- a/ansible/roles/firstboot/files/ansible_payload/roles/workloadcluster/templates/clusterctl.j2 +++ b/ansible/roles/firstboot/files/ansible_payload/roles/workloadcluster/templates/clusterctl.j2 @@ -34,5 +34,5 @@ VSPHERE_SSH_AUTHORIZED_KEY: "{{ _template.cluster.publickey }}" KUBERNETES_VERSION: "{{ _template.cluster.version }}" CONTROL_PLANE_ENDPOINT_IP: "{{ _template.cluster.vip }}" -VIP_NETWORK_INTERFACE: "ens192" +VIP_NETWORK_INTERFACE: "eth0" EXP_CLUSTER_RESOURCE_SET: "true"