2015-12-02 14:23:39 +00:00
#+TITLE : Vagrant layer
2015-06-10 16:44:30 +00:00
[[file:img/vagrant.png ]]
2016-03-31 02:59:55 +00:00
* Table of Contents :TOC_4_gh:noexport:
- [[#description ][Description ]]
- [[#features ][Features: ]]
- [[#install ][Install ]]
- [[#layer ][Layer ]]
- [[#vagrant ][Vagrant ]]
- [[#testing ][Testing ]]
- [[#keybindings ][Keybindings ]]
2015-06-10 16:44:30 +00:00
* Description
This layer adds support for working with Vagrant using [[https://github.com/ottbot/vagrant.el ][vagrant.el ]] and
[[https://github.com/dougm/vagrant-tramp ][vagrant-tramp ]].
2015-06-10 21:16:01 +00:00
** Features:
2015-06-10 16:44:30 +00:00
- Manage boxes (under the ~SPC V~ prefix)
- Remote editing on Vagrant boxes via Tramp
* Install
** Layer
2016-01-06 05:21:55 +00:00
To use this configuration layer, add it to your =~/.spacemacs= . You will need to
add =vagrant= to the existing =dotspacemacs-configuration-layers= list in this
file.
2015-06-10 16:44:30 +00:00
*Note:* Since vagrant files are written in =ruby= it is recommended
to install the =ruby= layer as well.
** Vagrant
Follow the [[http://docs.vagrantup.com/v2/installation/index.html ][Installing Vagrant ]] and [[http://docs.vagrantup.com/v2/getting-started/index.html ][Getting Started ]] guides in
Vagrant's documentation.
** Testing
If you'd like to test this layer out in a simple way (for example to
make sure you have Vagrant configured correctly) there is a [[file:Vagrantfile ][Vagrantfile ]]
in this directory.
* Keybindings
| Key Binding | Description |
|-------------+------------------------------------------------------------------------------------------------|
| ~SPC V D~ | destroy a box |
| ~SPC V e~ | edit the =Vagrantfile= |
| ~SPC V H~ | halt (shut down) a box |
| ~SPC V p~ | (re)provision a box that is already up |
| ~SPC V r~ | resume a suspended box (you can also use =SPC V V= for this) |
2016-01-21 15:15:10 +00:00
| ~SPC V R~ | reload a box |
2015-06-10 16:44:30 +00:00
| ~SPC V s~ | view the status of running boxes in the current project |
| ~SPC V S~ | suspend a box |
| ~SPC V t~ | start a =vagrant-tramp-term= session - after start, edit files at =/vagrant:box_name:filename= |
| ~SPC V V~ | bring up a Vagrant box |