From abb90cce63e2f7a2c1b758ae394316dd2f1c47a6 Mon Sep 17 00:00:00 2001 From: Stuart Clark Date: Sat, 20 Aug 2016 11:05:55 +1000 Subject: [PATCH] #315: Added support for BEET_PLAY -> beetbox.sh arg. (#316) --- .beetbox/Vagrantfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.beetbox/Vagrantfile b/.beetbox/Vagrantfile index 90da342..b298059 100644 --- a/.beetbox/Vagrantfile +++ b/.beetbox/Vagrantfile @@ -18,6 +18,7 @@ vconfig = { 'vagrant_ip' => '0.0.0.0', 'vagrant_memory' => 1024, 'vagrant_cpus' => 2, + 'beet_provision_playbook' => 'provision', 'beet_home' => '/beetbox', 'beet_base' => '/var/beetbox', 'beet_domain' => beet_root.split('/').last.gsub(/[\._]/, '-') + ".local", @@ -136,7 +137,8 @@ Vagrant.configure("2") do |config| # Provision box beet_sh = "#{vconfig['beet_home']}/provisioning/beetbox.sh" - local_provision = "sudo chmod +x #{beet_sh} && #{debug_mode} #{beet_sh}" + beet_sh_playbook = ENV['BEET_PLAY'] || "#{vconfig['beet_provision_playbook']}" + local_provision = "sudo chmod +x #{beet_sh} && #{debug_mode} #{beet_sh} #{beet_sh_playbook}" remote_provision = "sudo apt-get -y install curl && curl -fsSL http://bit.ly/beetbuild | UBUNTU_INIT=true bash -Ee" node.vm.provision "ansible", type: "shell" do |s| s.privileged = false