This repository has been archived by the owner on Mar 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
91 lines (90 loc) · 2.93 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.define "server1" do |server1|
server1.vm.provider "virtualbox" do |v|
v.cpus = 1
v.memory = 256
end
server1.vm.hostname = "server1"
server1.vm.box = "ubuntu/trusty64"
server1.vm.box_check_update = true
server1.vm.network "forwarded_port", guest: 80, host: 8080
server1.vm.network "private_network", ip: "192.168.0.10"
server1.vm.provision "puppet" do |puppet|
#puppet.options = "--verbose --debug"
#puppet.options = "--verbose"
puppet.manifests_path = "manifests"
puppet.manifest_file = "server1.pp"
puppet.module_path = "modules"
end
end
config.vm.define "server2" do |server2|
server2.vm.provider "virtualbox" do |v|
v.cpus = 1
v.memory = 256
end
server2.vm.hostname = "server2"
server2.vm.box = "ubuntu/trusty64"
server2.vm.box_check_update = true
server2.vm.network "private_network", ip: "192.168.0.11"
server2.vm.provision "puppet" do |puppet|
#puppet.options = "--verbose --debug"
#puppet.options = "--verbose"
puppet.manifests_path = "manifests"
puppet.manifest_file = "server2.pp"
puppet.module_path = "modules"
end
end
config.vm.define "server3" do |server3|
server3.vm.provider "virtualbox" do |v|
v.cpus = 1
v.memory = 256
end
server3.vm.hostname = "server3"
server3.vm.box = "ubuntu/trusty64"
server3.vm.box_check_update = true
server3.vm.network "private_network", ip: "192.168.0.12"
server3.vm.provision "puppet" do |puppet|
#puppet.options = "--verbose --debug"
#puppet.options = "--verbose"
puppet.manifests_path = "manifests"
puppet.manifest_file = "server3.pp"
puppet.module_path = "modules"
end
end
config.vm.define "redis1" do |redis1|
redis1.vm.provider "virtualbox" do |v|
v.cpus = 1
v.memory = 256
end
redis1.vm.hostname = "redis1"
redis1.vm.box = "ubuntu/trusty64"
redis1.vm.box_check_update = true
redis1.vm.network "private_network", ip: "192.168.0.100"
redis1.vm.provision "puppet" do |puppet|
#puppet.options = "--verbose --debug"
#puppet.options = "--verbose"
puppet.manifests_path = "manifests"
puppet.manifest_file = "redis1.pp"
puppet.module_path = "modules"
end
end
config.vm.define "redis2" do |redis2|
redis2.vm.provider "virtualbox" do |v|
v.cpus = 1
v.memory = 256
end
redis2.vm.hostname = "redis2"
redis2.vm.box = "ubuntu/trusty64"
redis2.vm.box_check_update = true
redis2.vm.network "private_network", ip: "192.168.0.101"
redis2.vm.provision "puppet" do |puppet|
#puppet.options = "--verbose --debug"
#puppet.options = "--verbose"
puppet.manifests_path = "manifests"
puppet.manifest_file = "redis2.pp"
puppet.module_path = "modules"
end
end
end