Left: | ||
Right: |
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: '82543GC' } | 6 config.vm.network :hostonly, ip, { nic_type: '82543GC' } |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 define_standard_vm config, 'filter1', '10.8.0.120' | 43 define_standard_vm config, 'filter1', '10.8.0.120' |
44 define_standard_vm config, 'filter2', '10.8.0.121' | 44 define_standard_vm config, 'filter2', '10.8.0.121' |
45 define_standard_vm config, 'filter3', '10.8.0.122' | 45 define_standard_vm config, 'filter3', '10.8.0.122' |
46 define_standard_vm config, 'filter4', '10.8.0.123' | 46 define_standard_vm config, 'filter4', '10.8.0.123' |
47 define_standard_vm config, 'filter5', '10.8.0.124' | 47 define_standard_vm config, 'filter5', '10.8.0.124' |
48 define_standard_vm config, 'filter6', '10.8.0.125' | 48 define_standard_vm config, 'filter6', '10.8.0.125' |
49 define_standard_vm config, 'download1', '10.8.0.126' | 49 define_standard_vm config, 'download1', '10.8.0.126' |
50 define_standard_vm config, 'filtermaster1', '10.8.0.127' | 50 define_standard_vm config, 'filtermaster1', '10.8.0.127' |
51 define_standard_vm config, 'update1', '10.8.0.128' | 51 define_standard_vm config, 'update1', '10.8.0.128' |
52 define_standard_vm config, 'web1', '10.8.0.129' | 52 define_standard_vm config, 'web1', '10.8.0.129' |
53 define_standard_vm config, 'issues1', '10.8.0.130' | |
christian
2014/01/14 10:57:47
I just noticed that stats1 has already the IP addr
Felix Dahlke
2014/01/22 13:53:58
Yup, another server has been added in the mean tim
| |
53 end | 54 end |
OLD | NEW |