Hello Aaron,

If you have other uses for OVA then its fine but if you exclusively using
it to upload to vSphere then its not required as the vSphere post-processor
uses the ovftool to convert the generated vmx and uploads it to the vCenter
as a OVF Template (in vSphere Client you see it as a VM) and then the
vSphere-teplate marks it as template.

Thanks

On Tue, May 8, 2018 at 5:07 PM, Aaron Kulbe <[email protected]> wrote:

> I’m using the ovftool post-processor because I also want to generate an
> OVA for use outside of vSphere. Are you saying I can still do that with the
> vSphere plugin?
>
>
>
> *From: *<[email protected]> on behalf of Ayesha Sultana <
> [email protected]>
> *Reply-To: *"[email protected]" <[email protected]>
> *Date: *Tuesday, May 8, 2018 at 1:36 PM
>
> *To: *"[email protected]" <[email protected]>
> *Subject: *Re: [packer] vsphere-template post-processor syntax
>
>
>
> Hello Aaron,
>
> I am not sure why you are using the ovftool post-processor - as the
> vsphere already does that.  For your code to work use this format:
>
> "post-processors": [
>
>     [
>
>       {
>
>           "type": "vagrant",
>
>       },
>
>       {
>
>           "type": "vsphere",
>
>       },
>
>      {
>
>         "type": "vsphere-template",
>
>      }
>
>   ]
>
>  ]
>
>
>
> The reason to have it in the [] block is to pass the artifact from the
> previous post-processor - specially in case of using the vSphere and the
> vSphere-template (to mark it as template it needs to know what was
> processed by the vSphere post processor)  I really feel that you don't need
> the ovftool processor.
>
>
>
> Try this within the array block of [] and it should work.
>
>
>
> Thanks
>
>
>
>
>
> On Tue, May 8, 2018 at 3:03 PM, Aaron Kulbe <[email protected]>
> wrote:
>
> Hi Alvaro,
>
>
>
> Thank you for responding. I have four total post-processors running, as
> shown below. If I use the double brackets as you mentioned previously, and
> try them around all four post-processors, it doesn’t work. If I
> double-bracket around just vsphere and vsphere-template, and remove vagrant
> and ovftool blocks, it works. Is there any way to do all four
> post-processors? I’m not sure how to format it.
>
>
>
> "post-processors": [
>
>     {
>
>       "type": "vagrant",
>
>     },
>
>     {
>
>       "type": "ovftool",
>
>     },
>
>     {
>
>       "type": "vsphere",
>
>     },
>
>     {
>
>       "type": "vsphere-template",
>
>     }
>
>   ]
>
>
>
> *From: *<[email protected]> on behalf of Alvaro Miranda
> Aguilera <[email protected]>
> *Reply-To: *"[email protected]" <[email protected]>
> *Date: *Tuesday, May 8, 2018 at 8:17 AM
> *To: *"[email protected]" <[email protected]>
> *Subject: *Re: [packer] vsphere-template post-processor syntax
>
>
>
> Hello
>
> check the documentation
>
>
>
> are double brackets
>
>
>
> [ [ ] ]
>
>
>
> https://www.packer.io/docs/post-processors/vsphere-
> template.html#using-the-vsphere-template-with-local-builders
>
>
>
> alvaro
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/CAHqq0ewK4OtFZfn5jZwtn2-mw0q1hNB9bTMvYp5zoP%3DiDqtfeQ%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/packer-tool/CAHqq0ewK4OtFZfn5jZwtn2-mw0q1hNB9bTMvYp5zoP%3DiDqtfeQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
>
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/E495E980-D937-42B8-9A80-06DA9175004C%40longviewbits.com
> <https://groups.google.com/d/msgid/packer-tool/E495E980-D937-42B8-9A80-06DA9175004C%40longviewbits.com?utm_medium=email&utm_source=footer>.
>
>
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/CADg8VGrAioK_nKrQf1tEAwiYEPsY4cfM9SVeNMpgmD
> z5zCZT1Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/packer-tool/CADg8VGrAioK_nKrQf1tEAwiYEPsY4cfM9SVeNMpgmDz5zCZT1Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/993328A8-4A3E-47FC-A2E6-D19D189AE7F1%40longviewbits.com
> <https://groups.google.com/d/msgid/packer-tool/993328A8-4A3E-47FC-A2E6-D19D189AE7F1%40longviewbits.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CADg8VGoFjf8s9TUQEyL60%2BiNZT08H4Tqw9QODV4kuKCDjkkjzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to