on providers you can filter on provider type or name (if you set one) and
that will allow you install vmware-tools only on vmware provider.

an example here:
https://github.com/kikitux/packer_xenial64/blob/master/vagrant/xenial64.json#L123-L125

Alvaro

On Tue, Jan 29, 2019 at 7:40 PM Reza A <[email protected]> wrote:

> Hi Everyone,
>
> I wanted to know if it's possible to have one file that can build in
> VMWare Workstation and AWS at the same time. I know a packer file can
> contain multiple builders, however there are slightly different ways to
> access the resources once they're up in each builder.
>
> For example when accessing an AWS instance you call the {{ .WinRMPassword
> }} variable to gain access, where as in Workstation I can provide the
> username and password. My thoughts are to change the AWS password via
> UserData when the instance is called to solve for this.
>
> However on my work station build I need to install VMWare-Tools, whereas
> this isn't required in AWS. I suppose I could have the script check for the
> environment type to make the decision if VMWare tools should be installed.
>
> I'm new to packer so I'd love to hear some feedback from the community on
> how to best approach this.
>
> Thanks,
>
> --
> 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/1214995427.3309.1548346033457.JavaMail.zimbra%40lethalnetworks.com
> <https://groups.google.com/d/msgid/packer-tool/1214995427.3309.1548346033457.JavaMail.zimbra%40lethalnetworks.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
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/CAHqq0ezutS%3Da%2BQ6h_jy1n%3DaqkWqX%3DAeWVRgcC3frMRNS%2BFXtvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to