Merge pull request #5765 from lmayorga1980/master

improve documentation when vmware-iso is used on amazon-import post-p…
This commit is contained in:
SwampDragons 2018-01-08 09:12:01 -08:00 committed by GitHub
commit df790a889d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

View File

@ -104,6 +104,38 @@ Here is a basic example. This assumes that the builder has produced an OVA artif
} }
``` ```
## VMWare Example
This is an example that uses `vmware-iso` builder and exports the `.ova` file using ovftool.
``` json
"post-processors" : [
[
{
"type": "shell-local",
"inline": [ "/usr/bin/ovftool <packer-output-directory>/<vmware-name>.vmx <packer-output-directory>/<vmware-name>.ova" ]
},
{
"files": [
"<packer-output-directory>/<vmware-name>.ova"
],
"type": "artifice"
},
{
"type": "amazon-import",
"access_key": "YOUR KEY HERE",
"secret_key": "YOUR SECRET KEY HERE",
"region": "us-east-1",
"s3_bucket_name": "importbucket",
"license_type": "BYOL",
"tags": {
"Description": "packer amazon-import {{timestamp}}"
}
}
]
]
```
-&gt; **Note:** Packer can also read the access key and secret access key from -&gt; **Note:** Packer can also read the access key and secret access key from
environmental variables. See the configuration reference in the section above environmental variables. See the configuration reference in the section above
for more information on what environmental variables Packer will look for. for more information on what environmental variables Packer will look for.