Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: Vagrantfile

Issue 4768985027444736: 1369 - Integrate ensure_dependencies.py (Closed)
Patch Set: Updates since last patch set: Created Sept. 18, 2014, 2:10 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « .hgsubstate ('k') | dependencies » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 VAGRANTFILE_API_VERSION = "2" 1 VAGRANTFILE_API_VERSION = "2"
2 REPOSITORY_DIR = File.dirname(__FILE__)
3 DEPENDENCY_SCRIPT = File.join(REPOSITORY_DIR, "ensure_dependencies.py")
4
5 if !system("python", DEPENDENCY_SCRIPT)
6 error = Vagrant::Errors::VagrantError
7 error.error_message("Failed to ensure dependencies being up-to-date!")
8 raise error
9 end
2 10
3 def define_standard_vm(config, host_name, ip) 11 def define_standard_vm(config, host_name, ip)
4 config.vm.define host_name do |config| 12 config.vm.define host_name do |config|
5 config.vm.box = 'precise64' 13 config.vm.box = 'precise64'
6 config.vm.box_url = 'http://cloud-images.ubuntu.com/vagrant/precise/current/ precise-server-cloudimg-amd64-vagrant-disk1.box' 14 config.vm.box_url = 'http://cloud-images.ubuntu.com/vagrant/precise/current/ precise-server-cloudimg-amd64-vagrant-disk1.box'
7 config.vm.host_name = "#{host_name}.adblockplus.org" 15 config.vm.host_name = "#{host_name}.adblockplus.org"
8 config.vm.network :private_network, ip: ip 16 config.vm.network :private_network, ip: ip
9 config.vm.provider :virtualbox do |vb| 17 config.vm.provider :virtualbox do |vb|
10 vb.customize ["modifyvm", :id, "--cpus", 1] 18 vb.customize ["modifyvm", :id, "--cpus", 1]
11 19
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 define_standard_vm config, 'filter10', '10.8.0.136' 75 define_standard_vm config, 'filter10', '10.8.0.136'
68 define_standard_vm config, 'filter11', '10.8.0.137' 76 define_standard_vm config, 'filter11', '10.8.0.137'
69 define_standard_vm config, 'filter12', '10.8.0.138' 77 define_standard_vm config, 'filter12', '10.8.0.138'
70 define_standard_vm config, 'filter13', '10.8.0.139' 78 define_standard_vm config, 'filter13', '10.8.0.139'
71 define_standard_vm config, 'filter14', '10.8.0.140' 79 define_standard_vm config, 'filter14', '10.8.0.140'
72 define_standard_vm config, 'filter15', '10.8.0.141' 80 define_standard_vm config, 'filter15', '10.8.0.141'
73 define_standard_vm config, 'filter16', '10.8.0.142' 81 define_standard_vm config, 'filter16', '10.8.0.142'
74 define_standard_vm config, 'filter17', '10.8.0.143' 82 define_standard_vm config, 'filter17', '10.8.0.143'
75 define_standard_vm config, 'filter18', '10.8.0.144' 83 define_standard_vm config, 'filter18', '10.8.0.144'
76 end 84 end
OLDNEW
« no previous file with comments | « .hgsubstate ('k') | dependencies » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld