forked from bdossantos/puppet-module-percona-xtradb-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
42 lines (35 loc) · 1.3 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "wheezy64"
# Customize memory
#config.vm.customize ["modifyvm", :id, "--memory", "256"]
config.vm.provision :puppet do |puppet|
#puppet.pp_path = "/vagrant"
puppet.manifests_path = "manifests"
puppet.module_path = "../"
puppet.manifest_file = "site.pp"
puppet.options = "--verbose"
end
# Percona1
config.vm.define :percona1 do |percona1_config|
percona1_config.vm.host_name = "percona1.local"
percona1_config.vm.network :hostonly, "192.168.33.10"
# Forward guest port 3306 to host port 33060
percona1_config.vm.forward_port 3306, 33060
end
# Percona2
config.vm.define :percona2 do |percona2_config|
percona2_config.vm.host_name = "percona2.local"
percona2_config.vm.network :hostonly, "192.168.33.11"
end
# Percona 3
config.vm.define :percona3 do |percona3_config|
percona3_config.vm.host_name = "percona3.local"
percona3_config.vm.network :hostonly, "192.168.33.12"
end
end