Skip to content
Matt-Yorkley edited this page Apr 27, 2019 · 13 revisions

Vagrant can be used for testing the provisioning and deployment processes locally. You will need a recent version of Vagrant installed, as well as Ansible. Vagrant also requires a VM provider, and ours is set up to work with Virtualbox. Tested with Vagrant 2.1.1 and Virtualbox 5.2.10.

Building the Vagrant server

Create and boot a virtual machine:

vagrant up

Run the deployment:

ansible-playbook site.yml --limit vagrant

If everything was successful, you can visit your site at http://localhost:8080/. Be aware that the installation of a TLS certificate via certbot is skipped here. You can't test that locally. You need a live server for testing those.

Continue with the Administration of your application server.