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