A Vagrant virtual machine configuration and provisioner, for use as a test or development environment for Drupal applications.
NOTE this virtual machine should not be used in a production environment.
The Vagrant configuration and Puppet provisioning scripts
are contained in the /private
directory. Using the VM can be accomplished via
the following steps:
- Install Vagrant.
- Copy the entire
/private
directory to the root directory of your Drupal codebase. - Copy the
/private/example.config.yml
to/private/config.yml
, and edit it with your preferred hostname and IP address. - From the
/private
directory, runvagrant up
. This will create and provision the VM. - Run
vagrant plugin install vagrant-hostsupdater
to install a plugin to handle adding your host to/etc/hosts
. - Create or load your site database into the VM
mysql
server. For testing purposes the provisioner creates a user and database namedvagrant
. - Connect to your new test site in your browser at the URL you've chosen.
- Your site code is mounted on the Vagrant VM in the
/vagrant
directory.
In the /private
directory there is a folder for things to add to your docroot.
tag_dev
- A module that supplies customizabledrush golocal
,drush godev
, anddrush gotest
commands. Feel free to add onto them for project specific reasons to make your development experience smoother.setup.sh
- A basic site setup script that enables development modules after site install.