Skip to content

brodster2/centos-vagrant-box-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Ansible provisioning script to create a LEMP stack development Vagrant box

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published