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