Skip to content
Newer
Older
100644 25 lines (19 sloc) 486 Bytes
c6e0043 @svenfuchs extract vagrant config to travis/worker lib
svenfuchs authored
1 $: << 'lib'
4586709 @svenfuchs extract workers config to a yaml file
svenfuchs authored
2 require 'yaml'
5086603 @svenfuchs the gem is called bundler, stupid
svenfuchs authored
3 require 'bundler/setup'
c6e0043 @svenfuchs extract vagrant config to travis/worker lib
svenfuchs authored
4 require 'travis/worker'
c4e2cef @michaelklishin Don't ignore Vagrantfile
michaelklishin authored
5
440c160 @svenfuchs join .worker.yml with .vms.yml and Worker::Config with Worker::Vagran…
svenfuchs authored
6 config = Travis::Worker.config.vms
c4e2cef @michaelklishin Don't ignore Vagrantfile
michaelklishin authored
7
4586709 @svenfuchs extract workers config to a yaml file
svenfuchs authored
8 Vagrant::Config.run do |c|
4dfcce4 @michaelklishin See travis-ci/travis-cookbooks#86 and travis-ci/travis-boxes#6
michaelklishin authored
9 c.ssh.username = "travis"
10
d0f3020 @svenfuchs replace Hashie by custom Hashr class, split yml files so we can keep …
svenfuchs authored
11 config.names.each_with_index do |name, num|
5dcb5fd @svenfuchs update the Vagrantfile
svenfuchs authored
12 c.vm.define(name) do |box|
8d3f922 @joshk some minor corrections to the vagrantfile
joshk authored
13 box.vm.box = config.name_prefix
e818b87 @svenfuchs re-add our custom vbox vm naming to the vagrantfile
svenfuchs authored
14
70a52f4 @joshk update to vagrant 0.9
joshk authored
15 box.vm.forward_port(22, 2220 + num + 1, :name => 'ssh')
16
17 box.vm.customize [
18 "modifyvm", :id,
19 "--name", name,
20 "--nictype1", "Am79C973"
21 ]
4586709 @svenfuchs extract workers config to a yaml file
svenfuchs authored
22 end
23 end
67bcc00 @svenfuchs make it so that bundle exec is not required for running vagrant
svenfuchs authored
24 end
Something went wrong with that request. Please try again.