From c19a5c6bb7128ed74249b43113468cf63815a8ce Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 21 Apr 2014 21:10:20 -0700 Subject: [PATCH] post-processors/vsphere: disk mode --- CHANGELOG.md | 3 ++- post-processor/vsphere/post-processor.go | 2 +- website/source/docs/post-processors/vsphere.html.markdown | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ca3da7fd..95b4a7949 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,8 @@ IMPROVEMENTS: * builder/vmware: add cloning support on Windows [GH-824] * command/build: Added '-parallel' flag so you can disable parallelization with `-no-parallel`. [GH-924] - * provisioner/ansible: Add inventory_file option [GH-1006] + * post-processors/vsphere: `disk_mode` option. [GH-778] + * provisioner/ansible: Add `inventory_file` option [GH-1006] BUG FIXES: diff --git a/post-processor/vsphere/post-processor.go b/post-processor/vsphere/post-processor.go index 6fdd2e2ce..29d0f32bc 100644 --- a/post-processor/vsphere/post-processor.go +++ b/post-processor/vsphere/post-processor.go @@ -20,7 +20,7 @@ type Config struct { Cluster string `mapstructure:"cluster"` Datacenter string `mapstructure:"datacenter"` Datastore string `mapstructure:"datastore"` - DiskMode string `mapstructure:"diskmode"` + DiskMode string `mapstructure:"disk_mode"` Host string `mapstructure:"host"` Password string `mapstructure:"password"` ResourcePool string `mapstructure:"resource_pool"` diff --git a/website/source/docs/post-processors/vsphere.html.markdown b/website/source/docs/post-processors/vsphere.html.markdown index d0b0506d7..742568dbe 100644 --- a/website/source/docs/post-processors/vsphere.html.markdown +++ b/website/source/docs/post-processors/vsphere.html.markdown @@ -45,5 +45,8 @@ Required: Optional: +* `disk_mode` (string) - Target disk format. See `ovftool` manual for + available options. By default, "thick" will be used. + * `insecure` (bool) - Whether or not the connection to vSphere can be done over an insecure connection. By default this is false.