Skip to content

Vagrant plugin that forwards fsnotify notifications from the host to the guest

License

Notifications You must be signed in to change notification settings

pward123/savi-vagrant-notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

savi-vagrant-notify

A vagrant plugin that removes the need for port forwarding udp in the otherwise excellent vagrant-notify-forwarder plugin.

Instead of sending the udp notification to 127.0.0.1, this plugin looks up the public ip of the guest vm and forwards all notifications to that address.

Thanks to vagrant-address for figuring out how to look up the address.

The remainder of this document has only minor changes from the document in the original.

Vagrant file system notification forwarder plugin

A vagrant plugin that uses notify-forwarder to forward file system events from the host to the guest automatically on all shared folders.

This is useful for auto reloading file systems that rebuild when files change. Normally, they have to use CPU intensive polling when watching shared folders. This plugin makes them able to use inotify or similar for improved performance and reduced CPU usage.

Installation and usage

$ vagrant plugin install savi-vagrant-notify
$ vagrant reload

The server and guest binaries will be automatically downloaded from the notify-forwarder repo's releases and verified with SHA256.

Permissions

The client in the guest OS will run as root by default, assuming passwordless sudo works. If this does not work, you can disable privilege escalation in your Vagrantfile:

config.notify_forwarder.run_as_root = false

Supported operating systems

To conserve size and dependencies, the plugin downloads binaries for supported platforms. This plugin supports the same host/guest platforms as notify-forwarder itself:

  • FreeBSD 64 bit as guest,
  • Linux 64 bit as host and guest, and
  • Mac OS X 64 bit as host and guest.

If you're running an unsupported host or guest and want to disable this plugin for a specific machine, add the following line to your Vagrantfile:

config.notify_forwarder.enable = false

Contributors

About

Vagrant plugin that forwards fsnotify notifications from the host to the guest

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published