Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 1.26 KB

README.md

File metadata and controls

45 lines (25 loc) · 1.26 KB

Vagrant box provisioning scripts

Requirements

How to use:

  1. Run vagrant up.

The Vagrantfile is configured to run the Ansible playbook automatically.

  1. Run vagrant package --output dev-box-0.0.2.box (or whatever version the git repo is on) from the project root directory.

This will output a file called dev-box-0.0.2.box which can then be uploaded to the Vagrant Cloud.

Workflow

Before a box is built/"deployed" from this codebase, the code should be merged to master, a release created and checked out before running vagrant package.

Local Testing

To test a packaged box locally with another project,

run vagrant box add --name <boxName>.

This will make the box accesible in any directory on your machine.

You can then alter an existing Vagrantfile to use the new test box

Vagrant.configure("2") do |config|
       config.vm.box = "<boxName>"
       ...

More information

Ansible Documentation

Vagrant Ansible provisioning

Vagrant Package command