Saturday, April 20, 2024
 Popular · Latest · Hot · Upcoming
19
rated 0 times [  19] [ 0]  / answers: 1 / hits: 4396  / 2 Years ago, sun, may 22, 2022, 2:04:48

Are they both solving the same problem? Or are they for two different sets of problems? If so for what i it better to use vagrant, and for what better to use juju?


More From » server

 Answers
7

quick version:



vagrant is a tool for working with virtualbox instances. This is typically used during development (on a mac) to test-deploy your app into virtual machines that look more like your eventual production (i.e., linux) environment. It's got a customizable (ruby) stack of handlers to create such a virtual environment any way you'd like. Vagrant is a powerful tool to programmatically manage virtual environments and provides for all sorts of "local" variations of continuous-integration-style development techniques. It's most often used to run Ubuntu VMs on a Mac, but will run on various platforms and deploy various target operating systems. Afaik, it only works with virtualbox as an underlying "provider".



juju is a tool to orchestrate services using various different underlying providers: ec2 clouds, openstack clouds, lxc VMs, and MaaS servers. It shares a "local development" story (using lxc containers instead of virtualbox VMs) with vagrant, but that's really the only overlap. In fact, I'd like to see a vagrant provider written for juju so juju can drive virtualbox containers on a local environment with the same ease that it drives cloud and lxc images. That'd be a great fit! Also, juju really derives a lot of its value from the set of charms/services that can be spun up straight out-of-the-box, whereas vagrant's essentially a lower-level local container provider.



In fact we provide a Vagrant box with Juju so that users can test the local provider from within a VM:





Note that there have been efforts to "unify" deployment scripts around vagrant so that the same scripts can be used to deploy to cloud instances as well as vagrant boxes. These appear to be mostly one-off asides from vagrant proper, and frankly just highlight the need for a tool like juju.


[#34290] Sunday, May 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mouedi

Total Points: 420
Total Questions: 109
Total Answers: 116

Location: Philippines
Member since Wed, Aug 19, 2020
4 Years ago
;