Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Setting things up for ventriloquist
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrehm committed Sep 10, 2013
1 parent 951d99b commit 93a34a9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@ task :rebuild do
unless `vagrant plugin list`.include? 'vagrant-cachier'
sh 'vagrant plugin install vagrant-cachier'
end
unless `vagrant plugin list`.include? 'ventriloquist'
sh 'vagrant plugin install ventriloquist'
end

sh "vagrant destroy -f"

provider = ENV['PROVIDER'] || ENV['VAGRANT_DEFAULT_PROVIDER']
extra = provider ? "--provider=#{provider}" : ''
sh "vagrant up --no-provision #{extra}"
sh 'vagrant ssh -c "sudo apt-get update && sudo apt-get upgrade -y"'
sh 'vagrant reload'

sh 'vagrant ssh -c "rm /home/vagrant/.rbenv/cache/*"'
sh 'vagrant reload --provision'

unless provider == 'lxc'
# FROM: https://gist.github.com/3775253
Expand Down
18 changes: 17 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# vi: set ft=ruby :

Vagrant.configure('2') do |config|
config.vm.box = "quantal64"
config.vm.box = "raring64"

config.vm.network :private_network, ip: "192.168.50.33"

Expand All @@ -16,6 +16,22 @@ Vagrant.configure('2') do |config|

config.vm.provider :lxc do |lxc, lxc_config|
lxc_config.vm.box_url = "http://dl.dropbox.com/u/13510779/lxc-quantal-amd64-2013-07-12.box"
lxc.customize 'aa_profile', 'unconfined'
end

# Required to boot nested containers
config.vm.provision :shell, inline: %[
if ! [ -f /etc/default/lxc ]; then
cat <<STR > /etc/default/lxc
LXC_AUTO="false"
USE_LXC_BRIDGE="false"
STR
fi
]

config.vm.provision :ventriloquist do |env|
env.services << %w( pg elasticsearch memcached redis )
env.platforms << %w( ruby phantomjs nodejs )
end

config.vm.provision :puppet do |puppet|
Expand Down

0 comments on commit 93a34a9

Please sign in to comment.