This builds a Vagrant Virtualbox Centos 7 server with Ansible installed. To automate the build, Packer is usued.
Set the installer_iso variable to the downloaded iso image or the http mirror location of the iso image. Also, set the istaller_checksum variable. This can be found on the mirror site with filename sha256sum.txt.
$ packer build centos7.json
Running with the included Vagrantfile will add a vagrant box to the "box list". If there is an existing box "centos7-virtualbox", it will be used instead of the new build.
To determine if box exist:
$ vagrant box list
If "centos7-virtualbox" exist, remove it first:
$ vagrant box remove centos7-virtualbox
Then run:
$ vagrant up