OLD | NEW |
1 def define_standard_vm(config, host_name, ip) | 1 def define_standard_vm(config, host_name, ip) |
2 config.vm.define host_name do |config| | 2 config.vm.define host_name do |config| |
3 config.vm.box = 'precise64' | 3 config.vm.box = 'precise64' |
4 config.vm.box_url = 'http://files.vagrantup.com/precise64.box' | 4 config.vm.box_url = 'http://files.vagrantup.com/precise64.box' |
5 config.vm.host_name = "#{host_name}.adblockplus.org" | 5 config.vm.host_name = "#{host_name}.adblockplus.org" |
6 config.vm.network :hostonly, ip, { nic_type: 'Am79C970A' } | 6 config.vm.network :hostonly, ip, { nic_type: 'Am79C970A' } |
7 config.vm.customize ["modifyvm", :id, "--cpus", 1] | 7 config.vm.customize ["modifyvm", :id, "--cpus", 1] |
8 | 8 |
9 config.vm.provision :shell, :inline => ' | 9 config.vm.provision :shell, :inline => ' |
10 if ! test -f /usr/bin/puppet; then | 10 if ! test -f /usr/bin/puppet; then |
(...skipping 21 matching lines...) Expand all Loading... |
32 define_standard_vm config, 'server5', '10.8.0.100' | 32 define_standard_vm config, 'server5', '10.8.0.100' |
33 define_standard_vm config, 'server6', '10.8.0.101' | 33 define_standard_vm config, 'server6', '10.8.0.101' |
34 define_standard_vm config, 'server7', '10.8.0.102' | 34 define_standard_vm config, 'server7', '10.8.0.102' |
35 define_standard_vm config, 'server8', '10.8.0.103' | 35 define_standard_vm config, 'server8', '10.8.0.103' |
36 define_standard_vm config, 'server9', '10.8.0.104' | 36 define_standard_vm config, 'server9', '10.8.0.104' |
37 define_standard_vm config, 'server10', '10.8.0.105' do |config| | 37 define_standard_vm config, 'server10', '10.8.0.105' do |config| |
38 config.vm.customize ["modifyvm", :id, "--memory", 1024] | 38 config.vm.customize ["modifyvm", :id, "--memory", 1024] |
39 end | 39 end |
40 define_standard_vm config, 'server11', '10.8.0.106' | 40 define_standard_vm config, 'server11', '10.8.0.106' |
41 define_standard_vm config, 'server12', '10.8.0.107' | 41 define_standard_vm config, 'server12', '10.8.0.107' |
| 42 define_standard_vm config, 'server13', '10.8.0.108' |
42 end | 43 end |
OLD | NEW |