3 ms·
I've worked with Ansible, but not with Vagrant. I was under the impression that Vagrant solved the same problem as Ansible. So what's the advantage of a hybri
by csense 11y ago
I've worked with Ansible, but not with Vagrant. I was under the impression that Vagrant solved the same problem as Ansible. So what's the advantage of a hybrid Vagrant / Ansible solution instead of all-Ansible or all-Vagrant?
- johnthedebs 11y agoThey don't solve the same problem; Ansible (as you must know) is for configuration management and remote execution while Vagrant is a set of tools around VMs to help with development. I use them together for almost every project I work on, Vagrant spins up the virtual machine and Ansible sets everything up on it (as well as taking care of provisioning servers when I'm ready to deploy). Small plug for my personal open source project using these two technologies (and many others): https://github.com/johnthedebs/basicproject https://github.com/johnthedebs/basicproject
- jrickert 11y agoVagrant is a tool that simplifies the management of virtual machines for development. You create a configuration file for a project, and then with one command pull down an image, provision it, and open it up to network connections. It provides a cross-platform layer of abstraction above VirtualBox (or VMware). Vagrant gives you your choice of provisioning tools, so you can run shell scripts, Ansible, Chef, Puppet, or even Docker containers to get your virtual machine set up to match your production environment (or however else you need it). Vagrant and Ansible make a great pair for the same reasons Ansible is great for provisioning other environments. It speeds up the provisioning process, leaves no extra dependencies installed on your virtual machine, and runs idempotently making it easy to work out the kinks in your server configurations.