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
Post a Comment