Using Vagrant to deploy to *any* machine

54 views
Skip to first unread message

Francisco Santos

unread,
Jul 20, 2015, 6:47:24 AM7/20/15
to vagra...@googlegroups.com
Hello, I have a question regarding Vagrant, I've been searching around but never seen anyone explaining such a case. I'm worried Vagrant is not quite the tool to serve my purpose.

So, I've been developing a web-app, it uses Laravel, a couple of dependencies, connections to two different DB's, and it's been developed though Windows OS using Xampp.
Now I'm searching for a deployment solution. I don't know if the target machine will run Windows or Linux or whatever... all I know it's going to be in a private network and will *probably* use VM's. My initial thought was to download and install a VM with Virtual Box, some lightweight linux server and configure all that stuff I need (Apache, mySQL... etc...)

Then I found Vagrant and Homestead and considered trying those out. To my knowledge this tool is used to have several developers in different machine developing with the same environment. So two different people may be running Virtual Box and the other VMWare, but because they both installed and configured Vagrant (which is a pain to do by the way), can run the same settings in a VM to test and work on their project.

Will this also work for me? I want to configure Vagrant in my machine (using Homestead), then just put the final VM in a .zip or something and move it to the final server, where it should be as simple as unzipping the thing and opening it up. Can Vagrant do this? Or will I also have to configure Vagrant in every machine I go to?

Thanks in advance

Alvaro Miranda Aguilera

unread,
Jul 20, 2015, 5:46:33 PM7/20/15
to vagra...@googlegroups.com
Hello,

Have a look at packer.io that is a tool that build templates or boxes
(in vagrant speak)

You can have 1 iso, a bunch of scripts in 1 packe template, and packer
will create several outputs

in your case, seems packer will help you since you can create

- vmware for vagrant
- vmware for stand alone
- virtualbox for vagrant
- virtualbox for stand alone

so if you met a developer who use virtualbox but doesn't use vagrant,
you can give him a .ova that he will double click and end with a VM
without
vagrant

If you haven't used packer before, feel free to mail the packer
mailing list and I can help to get you started

https://packer.io/
https://packer.io/community
http://groups.google.com/group/packer-tool

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/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/3e3b878c-afda-4059-aacd-fc7aeb9cf37a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages