jeremyfelt/varying-vagrant-vagrants — pull request #7 by TheLastCicada (2013-02-12 06:04:31+00:00)
Title: Fix cron issue in WordPress by updating hosts file

Add commands to set the URL you want to use with this
Vagrant to be 127.0.0.1 in the /etc/hosts file. This
allows the webserver to be self-aware and know to look
locally for this domain. This allows it to call itself
to run wp-cron. List the domain names you want to use
in DOMAINS. It checks if that exact record exists in the
host file and adds it if it does not.

Future issue to fix: if you add a new domain to the string,
it will add a new record and leave the old record. Need to
change this to update the record, or delete the old record...
....or something. This works fine for now, multiple records
should not be any problem.