-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
57 lines (42 loc) · 2.09 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
Vagrant.configure("2") do |config|
config.berkshelf.enabled = true
config.vm.define :centos do |default_config|
default_config.vm.hostname = "centos"
default_config.vm.box = "ri_centos_6.4_v13.5_rl5.8.13"
#default_config.vm.box = "ri_centos6.4_v13.4"
#default_config.vm.box_url = "https://s3.amazonaws.com/rgeyer/pub/ri_centos6.4_v13.4.box"
default_config.vm.network :private_network, ip: "33.33.33.9"
default_config.vm.network :forwarded_port, guest: 27017, host: 27017
default_config.vm.provision :shell,
inline: <<SCRIPT
mkdir -p /var/chef/cache
SCRIPT
default_config.rightscaleshim.run_list_dir = "runlists/centos"
default_config.rightscaleshim.shim_dir = "rightscaleshim/centos"
default_config.vm.provision :chef_solo do |chef|
chef.binary_env = "GEM_HOME=/opt/rightscale/sandbox/lib/ruby/gems/1.8"
chef.binary_path = "/opt/rightscale/sandbox/bin"
end
end
config.vm.define :ubuntu do |ubuntu_config|
ubuntu_config.vm.hostname = "ubuntu"
ubuntu_config.vm.box = "ri_ubuntu12.04_v5.8.8_vagrant"
ubuntu_config.vm.box_url = "https://s3.amazonaws.com/rgeyer/pub/ri_ubuntu12.04_v5.8.8_vagrant.box"
ubuntu_config.vm.network :private_network, ip: "33.33.33.10"
ubuntu_config.rightscaleshim.run_list_dir = "runlists/ubuntu"
ubuntu_config.rightscaleshim.shim_dir = "rightscaleshim/ubuntu"
ubuntu_config.vm.provision :chef_solo do |chef|
end
end
config.vm.define :testservices do |testservices_config|
testservices_config.vm.hostname = "testservices"
testservices_config.vm.box = "ri_centos6.3_v5.8.8"
testservices_config.vm.box_url = "https://s3.amazonaws.com/rgeyer/pub/ri_centos6.3_v5.8.8_vagrant.box"
testservices_config.vm.network :private_network, ip: "33.33.33.11"
testservices_config.vm.network :forwarded_port, guest: 27017, host: 27017
testservices_config.rightscaleshim.run_list_dir = "runlists/testservices"
testservices_config.rightscaleshim.shim_dir = "rightscaleshim/testservices"
testservices_config.vm.provision :chef_solo do |chef|
end
end
end