diff --git a/vagrant.md b/vagrant.md index fde1d35e..fbe92184 100644 --- a/vagrant.md +++ b/vagrant.md @@ -1,33 +1,44 @@ --- title: Vagrant category: Devops +layout: 2017/sheet +intro: | + [Vagrant](http://vagrantup.com) lets you build isolated virtual environments for your apps. --- ### Get started Add some base boxes: +{: .-setup} - $ vagrant box add precise32 http://files.vagrantup.com/precise32.box - $ vagrant box add precise64 http://files.vagrantup.com/precise64.box +```bash +vagrant box add precise64 http://files.vagrantup.com/precise64.box +``` Work it: - $ mkdir test_box - $ cd test_box - $ vagrant init precise64 +```bash +mkdir test_box +cd test_box +vagrant init precise64 +``` Run it: - $ vagrant up - $ vagrant ssh +```bash +vagrant up +vagrant ssh +``` To stop, use one of the following: - $ vagrant ssh # then: sudo shutdown -h now - $ vagrant suspend - $ vagrant destroy # !! +```bash +vagrant ssh # then: sudo shutdown -h now +vagrant suspend +vagrant destroy # !! +``` -### Reference - - * [Vagrant](http://vagrantup.com) +### Also see +* [Vagrant website](http://vagrantup.com) _(vagrantup.com)_ +* [Vagrantfile cheatsheet](./vagrantfile) diff --git a/vagrantfile.md b/vagrantfile.md index 10b6338f..50ad4a0b 100644 --- a/vagrantfile.md +++ b/vagrantfile.md @@ -1,8 +1,12 @@ --- title: Vagrantfile category: Devops +layout: 2017/sheet --- +## Vagrantfile +{: .-one-column} + ```rb Vagrant.configure("2") do |config| # All Vagrant configuration is done here. The most common configuration @@ -120,4 +124,4 @@ end ## Also see -* [Vagrant](vagrant.html) +* [Vagrant cheatsheet](./vagrant)