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