From cbb0c413dcb55ce9ab720ec5c722c824820a6a0c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 12 Apr 2010 00:51:12 -0700 Subject: [PATCH] Load Vagrantfile in include/ directory for boxes if it exists --- templates/package_Vagrantfile.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/package_Vagrantfile.erb b/templates/package_Vagrantfile.erb index edafe8f91..f3d5d6523 100644 --- a/templates/package_Vagrantfile.erb +++ b/templates/package_Vagrantfile.erb @@ -4,3 +4,8 @@ Vagrant::Config.run do |config| # the actual `Vagrantfile` in this box. config.vm.base_mac = "<%= base_mac %>" end + +# Load include vagrant file if it exists after the auto-generated +# so it can override any of the settings +include_vagrantfile = File.expand_path(File.join(File.dirname(__FILE__), "include", "Vagrantfile")) +load include_vagrantfile if File.exist?(include_vagrantfile)