-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathVagrantfile
69 lines (68 loc) · 3.39 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Vagrant.configure("2") do |config|
config.vm.define :percona1 do |percona1_config|
percona1_config.vm.box = "centos64"
percona1_config.vm.hostname = "percona1"
#percona1_config.ssh.max_tries = 100
percona1_config.vm.provider :virtualbox do |percona1_vb|
percona1_vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50", "--memory", "256", "--ioapic", "on"]
#percona1_vb.gui = true
end
percona1_config.vm.network :private_network, ip: "192.168.90.2"
percona1_config.vm.network :forwarded_port, guest: 22, host: 1234
percona1_config.vm.provision :puppet do |percona1_puppet|
#percona1_puppet.pp_path = "/tmp/vagrant-puppet"
percona1_puppet.manifests_path = "manifests"
percona1_puppet.module_path = "modules"
percona1_puppet.manifest_file = "site.pp"
percona1_puppet.options = "--verbose"
end
end
config.vm.define :percona2 do |percona2_config|
percona2_config.vm.box = "centos64"
percona2_config.vm.hostname = "percona2"
#percona2_config.ssh.max_tries = 100
#percona1_config.vm.boot_mode = :gui
percona2_config.vm.provider :virtualbox do |percona2_vb|
percona2_vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50", "--memory", "256", "--ioapic", "on"]
end
percona2_config.vm.network :private_network, ip: "192.168.90.3"
percona2_config.vm.provision :puppet do |percona2_puppet|
#percona2_puppet.pp_path = "/tmp/vagrant-puppet"
percona2_puppet.manifests_path = "manifests"
percona2_puppet.module_path = "modules"
percona2_puppet.manifest_file = "site.pp"
percona2_puppet.options = "--verbose"
end
end
config.vm.define :percona3 do |percona3_config|
percona3_config.vm.box = "centos64"
percona3_config.vm.hostname = "percona3"
#percona3_config.ssh.max_tries = 100
#percona1_config.vm.boot_mode = :gui
percona3_config.vm.provider :virtualbox do |percona3_vb|
percona3_vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50", "--memory", "256", "--ioapic", "on"]
end
percona3_config.vm.network :private_network, ip: "192.168.90.4"
percona3_config.vm.provision :puppet do |percona3_puppet|
#percona3_puppet.pp_path = "/tmp/vagrant-puppet"
percona3_puppet.manifests_path = "manifests"
percona3_puppet.module_path = "modules"
percona3_puppet.manifest_file = "site.pp"
percona3_puppet.options = "--verbose"
end
end
config.vm.define :percona4 do |percona4_config|
percona4_config.vm.box = "centos64"
percona4_config.vm.hostname = "percona4"
percona4_config.vm.provider :virtualbox do |percona4_vb|
percona4_vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50", "--memory", "256", "--ioapic", "on"]
end
percona4_config.vm.network :private_network, ip: "192.168.90.5"
percona4_config.vm.provision :puppet do |percona4_puppet|
percona4_puppet.manifests_path = "manifests"
percona4_puppet.module_path = "modules"
percona4_puppet.manifest_file = "site.pp"
percona4_puppet.options = "--verbose"
end
end
end