vagrant: update layout
This commit is contained in:
parent
2a13f9991c
commit
5db27db9dd
37
vagrant.md
37
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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue