You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

  1. [Global]
  2. user = "{{ vsphere_user }}"
  3. password = "{{ vsphere_password }}"
  4. port = {{ vsphere_vcenter_port }}
  5. insecure-flag = {{ vsphere_insecure }}
  6. {% if kube_version is version('v1.9.2', '>=') %}
  7. datacenters = "{{ vsphere_datacenter }}"
  8. {% else %}
  9. datastore = "{{ vsphere_datastore }}"
  10. datacenter = "{{ vsphere_datacenter }}"
  11. working-dir = "{{ vsphere_working_dir }}"
  12. server = "{{ vsphere_vcenter_ip }}"
  13. {% if vsphere_vm_uuid is defined and vsphere_vm_uuid != "" %}
  14. vm-uuid = "{{ vsphere_vm_uuid }}"
  15. {% endif %}
  16. {% if vsphere_vm_name is defined and vsphere_vm_name != "" %}
  17. vm-name = "{{ vsphere_vm_name }}"
  18. {% endif %}
  19. {% endif %}
  20. {% if kube_version is version('v1.9.2', '>=') %}
  21. [VirtualCenter "{{ vsphere_vcenter_ip }}"]
  22. [Workspace]
  23. server = "{{ vsphere_vcenter_ip }}"
  24. datacenter = "{{ vsphere_datacenter }}"
  25. folder = "{{ vsphere_working_dir }}"
  26. default-datastore = "{{ vsphere_datastore }}"
  27. {% if vsphere_resource_pool is defined and vsphere_resource_pool != "" %}
  28. resourcepool-path = "{{ vsphere_resource_pool }}"
  29. {% endif %}
  30. {% endif %}
  31. [Disk]
  32. scsicontrollertype = {{ vsphere_scsi_controller_type }}
  33. {% if vsphere_public_network is defined and vsphere_public_network != "" %}
  34. [Network]
  35. public-network = {{ vsphere_public_network }}
  36. {% endif %}
  37. {% if kube_version is version('v1.12.0', '>=') %}
  38. [Labels]
  39. {% if vsphere_zone_category is defined and vsphere_zone_category != "" %}
  40. zone = {{ vsphere_zone_category }}
  41. {% endif %}
  42. {% if vsphere_region_category is defined and vsphere_region_category != "" %}
  43. region = {{ vsphere_region_category }}
  44. {% endif %}
  45. {% endif %}