Skip to content

Instantly share code, notes, and snippets.

@stanchan
Created December 21, 2016 16:34
Show Gist options
  • Save stanchan/97d0dfa74b608e8bf4e1b2186c55374f to your computer and use it in GitHub Desktop.
Save stanchan/97d0dfa74b608e8bf4e1b2186c55374f to your computer and use it in GitHub Desktop.
Vagrant Host Updater Changes
# Allow passwordless startup of Vagrant with vagrant-hostsupdater.
Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts
Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/local/opt/gnu-sed/libexec/gnubin/sed -i -e /*/ d /etc/hosts
%admin ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment