Vagrant

An Alfred Workflow


Short Description

Control a Vagrant instance.

Last Updated

26 Mar 2014

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
No Yes Yes Yes Yes
 

Version

1.0.2
 

Bundle ID

com.bartzy.alfred.vagrant
 

Author

Applications

Vagrant Workflow

This workflow allows you to control a single Vagrant instance of your choice.

You can start, stop, restart and view the status of a Vagrant machine. You can also configure the Vagrant machine you want to control via this workflow.

The packaged workflow can be downloaded here.

Workflow screenshot

* To configure the Vagrant workflow, you need to type vg configure with a space, and then choose a Vagrantfile you want to control.

sudo note

If you would like to run the vagrant executable with sudo (for forwarding privileged ports, for example), you would need to do 2 things:

  1. Change use_sudo=false to use_sudo=true in the workflow files action.sh and status.sh.
  2. Add this line to your sudoers file via sudo visudo:

    %admin ALL = (root) NOPASSWD: /usr/bin/vagrant status, /usr/bin/vagrant status *, /usr/bin/vagrant up, /usr/bin/vagrant halt, /usr/bin/vagrant reload
    

If you run Vagrant with your own user, no extra steps are needed to use this workflow.

Screenshots