Adding /etc/hosts entry to host machine on vagrant up -


is possible 1 modify files on host machine during vagrant up process? example, adding entry host machine's /etc/hosts file avoid having manually?

the solution use vagrant-hostsupdater

vagrant plugin install vagrant-hostsupdater 

this plugin adds entry /etc/hosts file on host system.

on , reload commands, tries add information, if not existant in hosts file. if needs added, asked administrator password, since uses sudo edit file.

on halt, suspend , destroy, entries removed again.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -