Skip to content

Commit

Permalink
render vsphere_resource_pool only if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Xuxe committed Jan 31, 2018
1 parent fc29764 commit 9cdd221
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/kubernetes/preinstall/templates/vsphere-cloud-config.j2
Expand Up @@ -14,7 +14,11 @@ server = "{{ vsphere_vcenter_ip }}"
datacenter = "{{ vsphere_datacenter }}"
folder = "{{ vsphere_working_dir }}"
default-datastore = "{{ vsphere_datastore }}"

{% if vsphere_resource_pool is defined and vsphere_resource_pool != "" %}
resourcepool-path = "{{ vsphere_resource_pool }}"
{% endif %}


[Disk]
scsicontrollertype = {{ vsphere_scsi_controller_type }}
Expand Down

0 comments on commit 9cdd221

Please sign in to comment.