1) refactoring vagrantfile to move volatile logic out of main body
2) review feedback
3) add regression test

Signed-off-by: rootfs <hchen@redhat.com>