Skip to content

Commit 5db27db

Browse files
committed
vagrant: update layout
1 parent 2a13f99 commit 5db27db

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

Diff for: vagrant.md

+24-13
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
11
---
22
title: Vagrant
33
category: Devops
4+
layout: 2017/sheet
5+
intro: |
6+
[Vagrant](http://vagrantup.com) lets you build isolated virtual environments for your apps.
47
---
58

69
### Get started
710

811
Add some base boxes:
12+
{: .-setup}
913

10-
$ vagrant box add precise32 http://files.vagrantup.com/precise32.box
11-
$ vagrant box add precise64 http://files.vagrantup.com/precise64.box
14+
```bash
15+
vagrant box add precise64 http://files.vagrantup.com/precise64.box
16+
```
1217

1318
Work it:
1419

15-
$ mkdir test_box
16-
$ cd test_box
17-
$ vagrant init precise64
20+
```bash
21+
mkdir test_box
22+
cd test_box
23+
vagrant init precise64
24+
```
1825

1926
Run it:
2027

21-
$ vagrant up
22-
$ vagrant ssh
28+
```bash
29+
vagrant up
30+
vagrant ssh
31+
```
2332

2433
To stop, use one of the following:
2534

26-
$ vagrant ssh # then: sudo shutdown -h now
27-
$ vagrant suspend
28-
$ vagrant destroy # !!
35+
```bash
36+
vagrant ssh # then: sudo shutdown -h now
37+
vagrant suspend
38+
vagrant destroy # !!
39+
```
2940

30-
### Reference
31-
32-
* [Vagrant](http://vagrantup.com)
41+
### Also see
3342

43+
* [Vagrant website](http://vagrantup.com) _(vagrantup.com)_
44+
* [Vagrantfile cheatsheet](./vagrantfile)

Diff for: vagrantfile.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
22
title: Vagrantfile
33
category: Devops
4+
layout: 2017/sheet
45
---
56

7+
## Vagrantfile
8+
{: .-one-column}
9+
610
```rb
711
Vagrant.configure("2") do |config|
812
# All Vagrant configuration is done here. The most common configuration
@@ -120,4 +124,4 @@ end
120124

121125
## Also see
122126

123-
* [Vagrant](vagrant.html)
127+
* [Vagrant cheatsheet](./vagrant)

0 commit comments

Comments
 (0)