Difference between revisions of "Vagrant"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(6 intermediate revisions by 2 users not shown)
Line 10: Line 10:
  
 
== Installation ==
 
== Installation ==
* [[macOS]]: <code>[[brew cask install]] vagrant</code>
+
* [[macOS]]: <code>[[brew install vagrant]]</code>
 
* Ubuntu: <code>[[apt install vagrant]]</code>
 
* Ubuntu: <code>[[apt install vagrant]]</code>
  
 
== Vagrant Basic commands ==
 
== Vagrant Basic commands ==
 
* <code>[[vagrant up]]</code><ref>https://www.vagrantup.com/docs/cli/up.html</ref>  
 
* <code>[[vagrant up]]</code><ref>https://www.vagrantup.com/docs/cli/up.html</ref>  
** <code>vagrant up --debug</code> or <code>VAGRANT_LOG=loud vagrant up</code> for debugging  
+
** <code>vagrant up --debug</code> or <code>[[VAGRANT_LOG]]=loud vagrant up</code> for debugging  
 
purposes<ref>https://www.vagrantup.com/docs/other/debugging.html</ref>
 
purposes<ref>https://www.vagrantup.com/docs/other/debugging.html</ref>
 
* <code>[[vagrant init]]</code>
 
* <code>[[vagrant init]]</code>
Line 29: Line 29:
  
 
== Help ==
 
== Help ==
* [[vagrant --help]]
+
* <code>[[vagrant --help]]</code>
  
 
== Related terms ==
 
== Related terms ==
 
* [[Packer]]
 
* [[Packer]]
 +
* [[Provider (Terraform)]]
  
 
== See also ==
 
== See also ==
* {{DevOps}}
+
* {{Vagrant}}
 
* {{Virtualization}}
 
* {{Virtualization}}
 
* {{HashiCorp}}
 
* {{HashiCorp}}
 
 
  
 
[[Category:Virtualization]]
 
[[Category:Virtualization]]

Latest revision as of 12:34, 17 September 2022

Vagrant (2010) is an open-source software product for building and maintaining portable virtual development environments. The core idea behind its creation lies in the fact that the environment maintenance becomes increasingly difficult in a large project with multiple technical stacks.

Vagrant manages all the necessary configurations for the developers in order to avoid the unnecessary maintenance and setup time, and increases development productivity. Vagrant is written in the Ruby language, but its ecosystem supports development in almost all major languages.

Vagrant uses "Provisioners" and "Providers" as building blocks to manage the development environments. Provisioners are tools that allow users to customize the configuration of virtual environments. Puppet and Chef are the two most widely used provisioners in the Vagrant ecosystem. Providers are the services that Vagrant uses to set up and create virtual environments. Support for VirtualBox, Hyper-V, and Docker virtualization ships with Vagrant, while VMWare and AWS are supported via plugins.

Vagrant sits on top of virtualization software as a wrapper and helps the developer interact easily with the providers. It automates the configuration of virtual environments using Chef or Puppet, and the user does not have to directly use any other virtualization software.

Machine and software requirements are written in a file called Vagrantfile[1] to execute necessary steps in order to create a development-ready box. Box is a format and an extension ( .box) for Vagrant environments that is copied to another machine in order to replicate the same environment.

Installation[edit]

Vagrant Basic commands[edit]

purposes[3]

Help[edit]

Related terms[edit]

See also[edit]

  • https://www.vagrantup.com/docs/vagrantfile/
  • https://www.vagrantup.com/docs/cli/up.html
  • https://www.vagrantup.com/docs/other/debugging.html
  • Advertising: