2018-01-31 16:15:46 +08:00
|
|
|
[Global]
|
2018-01-31 23:51:23 +08:00
|
|
|
user = "{{ vsphere_user }}"
|
2018-01-31 16:15:46 +08:00
|
|
|
password = "{{ vsphere_password }}"
|
|
|
|
port = {{ vsphere_vcenter_port }}
|
2018-01-31 23:51:23 +08:00
|
|
|
insecure-flag = {{ vsphere_insecure }}
|
|
|
|
|
2018-10-17 06:33:30 +08:00
|
|
|
{% if kube_version is version('v1.9.2', '>=') %}
|
2018-01-31 23:51:23 +08:00
|
|
|
datacenters = "{{ vsphere_datacenter }}"
|
|
|
|
{% else %}
|
|
|
|
datastore = "{{ vsphere_datastore }}"
|
|
|
|
datacenter = "{{ vsphere_datacenter }}"
|
|
|
|
working-dir = "{{ vsphere_working_dir }}"
|
|
|
|
server = "{{ vsphere_vcenter_ip }}"
|
|
|
|
{% if vsphere_vm_uuid is defined and vsphere_vm_uuid != "" %}
|
|
|
|
vm-uuid = "{{ vsphere_vm_uuid }}"
|
|
|
|
{% endif %}
|
2018-05-09 03:23:58 +08:00
|
|
|
{% if vsphere_vm_name is defined and vsphere_vm_name != "" %}
|
|
|
|
vm-name = "{{ vsphere_vm_name }}"
|
|
|
|
{% endif %}
|
2018-01-31 23:51:23 +08:00
|
|
|
{% endif %}
|
|
|
|
|
2018-10-17 06:33:30 +08:00
|
|
|
{% if kube_version is version('v1.9.2', '>=') %}
|
2018-01-31 16:15:46 +08:00
|
|
|
|
|
|
|
[VirtualCenter "{{ vsphere_vcenter_ip }}"]
|
|
|
|
|
2018-01-31 23:51:23 +08:00
|
|
|
|
2018-01-31 16:15:46 +08:00
|
|
|
[Workspace]
|
|
|
|
server = "{{ vsphere_vcenter_ip }}"
|
|
|
|
datacenter = "{{ vsphere_datacenter }}"
|
|
|
|
folder = "{{ vsphere_working_dir }}"
|
|
|
|
default-datastore = "{{ vsphere_datastore }}"
|
2018-01-31 16:56:43 +08:00
|
|
|
{% if vsphere_resource_pool is defined and vsphere_resource_pool != "" %}
|
2018-01-31 16:15:46 +08:00
|
|
|
resourcepool-path = "{{ vsphere_resource_pool }}"
|
2018-01-31 16:56:43 +08:00
|
|
|
{% endif %}
|
2018-01-31 16:15:46 +08:00
|
|
|
{% endif %}
|
|
|
|
|
2017-02-17 11:59:40 +08:00
|
|
|
|
|
|
|
[Disk]
|
|
|
|
scsicontrollertype = {{ vsphere_scsi_controller_type }}
|
|
|
|
|
|
|
|
{% if vsphere_public_network is defined and vsphere_public_network != "" %}
|
|
|
|
[Network]
|
|
|
|
public-network = {{ vsphere_public_network }}
|
2018-01-31 23:51:23 +08:00
|
|
|
{% endif %}
|