github.com/mmcquillan/packer@v1.1.1-0.20171009221028-c85cf0483a5d/website/source/docs/post-processors/vsphere-template.html.md (about)

     1  ---
     2  description: |
     3      The Packer vSphere Template post-processor takes an artifact from the VMware-iso builder built on ESXi (i.e. remote)
     4      and allows to mark a VM as a template and leaving it in a path of choice. 
     5  layout: docs
     6  page_title: 'vSphere Template - Post-Processors'
     7  sidebar_current: 'docs-post-processors-vSphere-template'
     8  ---
     9  
    10  # vSphere Template Post-Processor
    11  
    12  Type: `vsphere-template`
    13  
    14  The Packer vSphere template post-processor takes an artifact from the VMware-iso builder built on ESXi (i.e. remote) and
    15  allows to mark a VM as a template and leaving it in a path of choice.
    16  
    17  ## Example
    18  
    19  An example is shown below, showing only the post-processor configuration:
    20  
    21  ``` json
    22  {  
    23     "type": "vsphere-template",
    24     "host": "vcenter.local",
    25     "insecure": true,
    26     "username": "root",
    27     "password": "secret",      
    28     "datacenter": "mydatacenter",
    29     "folder": "/packer-templates/os/distro-7"   
    30  }
    31  ```
    32  
    33  ## Configuration
    34  
    35  There are many configuration options available for the post-processor. They are
    36  segmented below into two categories: required and optional parameters. Within
    37  each category, the available configuration keys are alphabetized.
    38  
    39  Required:
    40  
    41  -   `host` (string) - The vSphere host that contains the VM built by the vmware-iso. 
    42  
    43  -   `password` (string) - Password to use to authenticate to the vSphere endpoint.
    44  
    45  -   `username` (string) - The username to use to authenticate to the vSphere endpoint.
    46  
    47  Optional:
    48  
    49  -   `datacenter` (string) - If you have more than one, you will need to specify which one the ESXi used.
    50  
    51  -   `folder` (string) - Target path where the template will be created. 
    52  
    53  -   `insecure` (boolean) - If it's true skip verification of server certificate. Default is false