Browse Source

Merge pull request #2750 from w-leads/feature/add-vmname-to-vcp-config

Add vm_name option to vsphere cloud provider config
pull/2893/head
Andreas Krüger 6 years ago
committed by GitHub
parent
commit
3a569c9dcb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. 3
      roles/kubernetes/node/templates/vsphere-cloud-config.j2

3
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', '>=') %}

Loading…
Cancel
Save