From f3b62bc9fffcb64dd116919664766c54084c51ab Mon Sep 17 00:00:00 2001 From: Julio Tain Sueiras Date: Fri, 7 Dec 2018 20:51:25 -0500 Subject: [PATCH] Added remote options to vmware-vmx --- packer/builders/vmwarevmx.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packer/builders/vmwarevmx.go b/packer/builders/vmwarevmx.go index d2cc2ba..b02a4e5 100644 --- a/packer/builders/vmwarevmx.go +++ b/packer/builders/vmwarevmx.go @@ -22,6 +22,17 @@ func VMWareVMXResource() *schema.Resource { Type: schema.TypeList, Elem: communicators.SSHCommunicatorResource(), }, + "keep_registered": &schema.Schema{ + Optional: true, + Type: schema.TypeBool, + Description: "Set this to true if you would like to keep the VM registered with the remote ESXi server. This is convenient if you use packer to provision VMs on ESXi and don't want to use ovftool to deploy the resulting artifact (VMX or OVA or whatever you used as format). Defaults to false.", + }, + "skip_export": &schema.Schema{ + Optional: true, + Type: schema.TypeBool, + Description: "Defaults to false. When enabled, Packer will not export the VM. Useful if the build output is not the resultant image, but created inside the VM", + }, + "winrm": &schema.Schema{ Optional: true, Type: schema.TypeList,