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: '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 |
11 sudo apt-get update && sudo apt-get install -y puppet | 11 sudo apt-get update && sudo apt-get install -y puppet |
12 fi' | 12 fi' |
13 | 13 |
14 manifest_files = ['vagrant.pp', 'nodes.pp'] | 14 manifest_files = ['vagrant.pp', 'nodes.pp'] |
15 manifest_files.each do |manifest_file| | 15 manifest_files.each do |manifest_file| |
16 config.vm.provision :puppet do |puppet| | 16 config.vm.provision :puppet do |puppet| |
(...skipping 24 matching lines...) Expand all Loading... |
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 define_standard_vm config, 'server13', '10.8.0.108' |
43 define_standard_vm config, 'server14', '10.8.0.109' | 43 define_standard_vm config, 'server14', '10.8.0.109' |
44 define_standard_vm config, 'server15', '10.8.0.110' | 44 define_standard_vm config, 'server15', '10.8.0.110' |
45 define_standard_vm config, 'server17', '10.8.0.112' | 45 define_standard_vm config, 'server17', '10.8.0.112' |
46 define_standard_vm config, 'server18', '10.8.0.113' | 46 define_standard_vm config, 'server18', '10.8.0.113' |
47 define_standard_vm config, 'server19', '10.8.0.114' | 47 define_standard_vm config, 'server19', '10.8.0.114' |
48 define_standard_vm config, 'server20', '10.8.0.115' | 48 define_standard_vm config, 'server20', '10.8.0.115' |
49 define_standard_vm config, 'server21', '10.8.0.116' | 49 define_standard_vm config, 'server21', '10.8.0.116' |
50 end | 50 end |
OLD | NEW |