-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
86 lines (67 loc) · 2.03 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "Berkshelf-CentOS-6.3-x86_64-minimal"
#config.vm.box_url = "https://dl.dropbox.com/u/31081437/Berkshelf-CentOS-6.3-x86_64-minimal.box"
config.vm.box_url = "https://s3.amazonaws.com/itmat-public/centos-6.3-chef-10.14.2.box"
config.vm.define "myserver1" do |myserver1|
myserver1.vm.hostname = "myserver1"
myserver1.vm.network :private_network, ip: "33.33.33.11"
myserver1.vm.network :public_network
myserver1.vm.provision :chef_solo do |chef|
chef.json = {
:java => {:jdk_version => "7"}
}
chef.run_list = [
"recipe[java]",
"recipe[wildfly-clu::default]",
"recipe[wildfly-clu::logs]",
"recipe[wildfly-clu::domain]"
]
end
end
config.vm.define "myserver2" do |myserver2|
myserver2.vm.hostname = "myserver2"
myserver2.vm.network :private_network, ip: "33.33.33.12"
myserver2.vm.network :public_network
myserver2.vm.provision :chef_solo do |chef|
chef.json = {
:java => {:jdk_version => "7"}
}
chef.run_list = [
"recipe[java]",
"recipe[wildfly-clu::default]",
"recipe[wildfly-clu::logs]",
"recipe[wildfly-clu::domain]"
]
end
end
config.vm.define "myserver3" do |myserver3|
myserver3.vm.hostname = "myserver3"
myserver3.vm.network :private_network, ip: "33.33.33.13"
myserver3.vm.network :public_network
myserver3.vm.provision :chef_solo do |chef|
chef.json = {
:java => {:jdk_version => "7"}
}
chef.run_list = [
"recipe[java]",
"recipe[wildfly-clu::default]",
"recipe[wildfly-clu::logs]",
"recipe[wildfly-clu::domain]"
]
end
end
config.berkshelf.enabled = true
config.vm.provision :chef_solo do |chef|
chef.json = {
:java => {:jdk_version => "7"}
}
chef.run_list = [
#"recipe[java]",
#"recipe[wildfly-clu::default]",
#"recipe[wildfly-clu::logs]",
#"recipe[wildfly-clu::domain]"
]
end
end