Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

Commit

Permalink
#315: Added support for BEET_PLAY -> beetbox.sh arg. (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher authored and thom8 committed Aug 20, 2016
1 parent 0b3715f commit abb90cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .beetbox/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit abb90cc

Please sign in to comment.