A Vagrant plugin that forwards notify-send
from guest to host machine and
notifies provisioning status. See it in action
This project is looking for maintainers, please see GH-24 for more.
Make sure you have Vagrant 1.4+ around and run:
$ vagrant plugin install vagrant-notify
Whenever you run vagrant up
, a Ruby TCPServer
will fire up on a port within the usable port range
and a script
will be copied over to the guest machine to replace the original notify-send
command.
Apart from redirecting notify-send
from the guest VM to the host, whenever
a Vagrant 1.4+ provisioner starts or completes running you'll also receive
notifications like:
Since Linux distributions have notify-send
pre-installed, everything should work out of the box.
You will need to create a notify-send
script, available on $PATH
. The script can forward the message to either
Growl with GrowlNotify (version 1.2.2 is free but unreliable)
or to the Notification Center available on OS X 10.8+
using f.ex. terminal-notifier.
A (too) primitive script integrating with Growl:
#!/bin/bash
growlnotify -t "Vagrant VM" -m "$*"
vagrant suspend
does not stop the notification server
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request