From 51a9379d3c015294470e9eb8d804d71912c8bfa7 Mon Sep 17 00:00:00 2001 From: Ryo Nishikawa Date: Tue, 8 May 2018 12:23:58 -0700 Subject: [PATCH] Add vm_name option to vsphere cloud provider config --- roles/kubernetes/node/templates/vsphere-cloud-config.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/kubernetes/node/templates/vsphere-cloud-config.j2 b/roles/kubernetes/node/templates/vsphere-cloud-config.j2 index d82d72bf8..1383f78bb 100644 --- a/roles/kubernetes/node/templates/vsphere-cloud-config.j2 +++ b/roles/kubernetes/node/templates/vsphere-cloud-config.j2 @@ -14,6 +14,9 @@ server = "{{ vsphere_vcenter_ip }}" {% if vsphere_vm_uuid is defined and vsphere_vm_uuid != "" %} vm-uuid = "{{ vsphere_vm_uuid }}" {% endif %} +{% if vsphere_vm_name is defined and vsphere_vm_name != "" %} +vm-name = "{{ vsphere_vm_name }}" +{% endif %} {% endif %} {% if kube_version | version_compare('v1.9.2', '>=') %}