diff --git a/README.md b/README.md index ad78831..2970483 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,18 @@ # "The" Vagrant +Add a customizable vagrant environment into a project. + _Note: If you are instantiating a project, you likely want to start with [drupal-skeleton](https://github.com/palantirnet/drupal-skeleton)._ -Add a customizable vagrant environment into a project. +## Dependencies + +This Vagrant configuration requires the following plugins: + +* [vagrant-hostmanager](https://github.com/devopsgroup-io/vagrant-hostmanager) +* [vagrant-auto_network](https://github.com/oscar-stack/vagrant-auto_network) +* [vagrant-triggers](https://github.com/emyl/vagrant-triggers) + +## Installation ## Adding the-vagrant with composer diff --git a/conf/vagrant/Vagrantfile b/conf/vagrant/Vagrantfile index 3c450ad..a53489a 100644 --- a/conf/vagrant/Vagrantfile +++ b/conf/vagrant/Vagrantfile @@ -1,7 +1,7 @@ # -*- mode: ruby -*- # vi: set ft=ruby : -%w{ vagrant-hostmanager vagrant-auto_network }.each do |plugin| +%w{ vagrant-hostmanager vagrant-auto_network vagrant-triggers }.each do |plugin| unless Vagrant.has_plugin?(plugin) raise "#{plugin} plugin is not installed. Please install with: vagrant plugin install #{plugin}" end @@ -56,4 +56,8 @@ Vagrant.configure(2) do |config| } end + config.trigger.before [:up, :reload] do + run "composer install --ignore-platform-reqs" + end + end