Repository is archived
No commit activity in last 3 years
No release in over 3 years
Find out the status of all of the Vagrant VMs you manage
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

vagrant-global-status

A proof of concept Vagrant plugin that keeps track of vagrant machines and provides a command for listing the status of all known machines.

NOTICE: This plugin is no longer being maintained as its functionality has been implemented on Vagrant core and will be available with Vagrant 1.6+.

Installation

Make sure you have Vagrant 1.1+ and run:

vagrant plugin install vagrant-global-status

Usage

vagrant global-status [--all]

    -a, --all       Displays information about all machines (instead of just the active ones)
    -h, --help      Print this help

How does it work?

Whenever you vagrant up a VM, the plugin will register the machine name and path to its Vagrantfile on a global state file under ~/.vagrant.d. That is enough information for the global-status command to do its job and parse machine's statuses.

After a vagrant destroy, the VM will get removed from the global state file and will no longer show up by default on vagrant global-status unless you pass in -a to it.

Besides that, the plugin is smart enough to detect multiple combinations of Vagrant environments and is able to get the status for a machine that is used for development of a Vagrant plugin using Bundler.

Current limitations / ideas for contributions

  • Keeps track of active vagrant-lxc and VirtualBox VMs only
  • Detect orphaned machines

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request