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

Delta Between Two Patch Sets: Vagrantfile

Issue 4768985027444736: 1369 - Integrate ensure_dependencies.py (Closed)
Left Patch Set: Updates since last patch set: Created Sept. 18, 2014, 12:59 p.m.
Right 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « .hgsubstate ('k') | dependencies » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 VAGRANTFILE_API_VERSION = "2" 1 VAGRANTFILE_API_VERSION = "2"
2 system("python ensure_dependencies.py") 2 REPOSITORY_DIR = File.dirname(__FILE__)
Wladimir Palant 2014/09/18 13:24:46 This assumes that Vagrantfile is located in the cu
mathias 2014/09/18 14:11:20 Done.
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
3 10
4 def define_standard_vm(config, host_name, ip) 11 def define_standard_vm(config, host_name, ip)
5 config.vm.define host_name do |config| 12 config.vm.define host_name do |config|
6 config.vm.box = 'precise64' 13 config.vm.box = 'precise64'
7 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'
8 config.vm.host_name = "#{host_name}.adblockplus.org" 15 config.vm.host_name = "#{host_name}.adblockplus.org"
9 config.vm.network :private_network, ip: ip 16 config.vm.network :private_network, ip: ip
10 config.vm.provider :virtualbox do |vb| 17 config.vm.provider :virtualbox do |vb|
11 vb.customize ["modifyvm", :id, "--cpus", 1] 18 vb.customize ["modifyvm", :id, "--cpus", 1]
12 19
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 define_standard_vm config, 'filter10', '10.8.0.136' 75 define_standard_vm config, 'filter10', '10.8.0.136'
69 define_standard_vm config, 'filter11', '10.8.0.137' 76 define_standard_vm config, 'filter11', '10.8.0.137'
70 define_standard_vm config, 'filter12', '10.8.0.138' 77 define_standard_vm config, 'filter12', '10.8.0.138'
71 define_standard_vm config, 'filter13', '10.8.0.139' 78 define_standard_vm config, 'filter13', '10.8.0.139'
72 define_standard_vm config, 'filter14', '10.8.0.140' 79 define_standard_vm config, 'filter14', '10.8.0.140'
73 define_standard_vm config, 'filter15', '10.8.0.141' 80 define_standard_vm config, 'filter15', '10.8.0.141'
74 define_standard_vm config, 'filter16', '10.8.0.142' 81 define_standard_vm config, 'filter16', '10.8.0.142'
75 define_standard_vm config, 'filter17', '10.8.0.143' 82 define_standard_vm config, 'filter17', '10.8.0.143'
76 define_standard_vm config, 'filter18', '10.8.0.144' 83 define_standard_vm config, 'filter18', '10.8.0.144'
77 end 84 end
LEFTRIGHT

Powered by Google App Engine
This is Rietveld