Vagrant plugin that simplifies installation and usage of Vagga. It provides:
- Automatic Vagga installation into the vagrant box (only ubuntu/trusty64 was tested, open an issue if you have troubles with other boxes)
vagga
command for vagrant. Instead of SSH'ing into the machine you can use vagga likevagrant vagga <vagga arguments>
Install gem to vagrant:
$ vagrant plugin install vagrant-vagga
- Install Vagrant
- Add Vagrantfile with content like in Usage paragraph below
- Install vagrant-vagga plugin
- You're awesome!
Example project: https://github.com/rrader/vagrant-vagga/tree/master/example
Vagrantfile should contain provision line to install vagga on vagrant up
.
Also you can add protection for users without this plugin to remind them install it.
unless Vagrant.has_plugin?("vagrant-vagga")
abort 'vagrant-vagga plugin is not installed! Do first # vagrant plugin install vagrant-vagga'
end
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provision :vagga
end
Note: Currently, only the
ubuntu/trusty64
box has been tested with this plugin.
Your working directory with Vagrantfile should also contain vagga.yaml, which is implied by plugin logic.
$ vagrant vagga
[... long output spinning up the VM (only first time)]
Available commands:
run Run app
setup Setup application
test Run unit tests
$ vagrant vagga test
<...> # building images
If you want to use vagga-testing version of vagga, add config.vagga.testing = true
to your Vagrantfile.
http://docs.vagrantup.com/v2/plugins/development-basics.html
Bug reports and pull requests are welcome on GitHub at https://github.com/rrader/vagrant-vagga.
The gem is available as open source under the terms of the MIT License.