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

#315: Added support for BEET_PLAY -> beetbox.sh arg. #316

Merged
merged 1 commit into from
Aug 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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