-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
59 lines (54 loc) · 2.48 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.define :fpm do |fpm_config|
fpm_config.vm.box = "ubuntu"
#fpm_config.vm.network :bridged, :bridge => "en0: Wi-Fi (AirPort)"
fpm_config.vm.network :hostonly, "10.17.3.7"
fpm_config.vm.customize [ "modifyvm", :id, "--memory", "1024"]
fpm_config.vm.provision :puppet, :facter => { "fqdn" => "c0rwin.vm.net"} do |puppet|
#fpm_config.vm.provision :puppet do |puppet|
#puppet.module_path = "/Users/c0rwin/.puppet/modules/"
puppet.module_path = "modules"
puppet.manifests_path = "manifests"
puppet.manifest_file = "fpm.pp"
end
end
config.vm.define :g4c do |g4c_config|
g4c_config.vm.box = "ubuntu"
#g4c_config.vm.network :bridged, :bridge => "en0: Wi-Fi (AirPort)"
g4c_config.vm.network :bridged
g4c_config.vm.forward_port 80, 8080
g4c_config.vm.customize [ "modifyvm", :id, "--memory", "1024"]
g4c_config.vm.provision :puppet, :facter => { "fqdn" => "c0rwin.vm.net"} do |puppet|
#g4c_config.vm.provision :puppet do |puppet|
puppet.module_path = "~/vagrant/manifests/"
puppet.module_path = "modules"
puppet.manifests_path = "manifests"
puppet.manifest_file = "g4c.pp"
end
end
config.vm.define :hadoop_master do |hadoop_config|
hadoop_config.vm.box = "ubuntu"
hadoop_config.vm.network :hostonly, "10.17.3.10"
hadoop_config.vm.host_name = "master"
hadoop_config.vm.customize [ "modifyvm", :id, "--memory", "1024"]
hadoop_config.vm.provision :puppet, :facter => { "fqdn" => "master"} do |puppet|
puppet.module_path = "modules"
puppet.manifests_path = "manifests"
puppet.manifest_file = "hadoop.pp"
end
end
config.vm.define :hadoop_slave do |hadoop_config|
hadoop_config.vm.box = "ubuntu"
hadoop_config.vm.network :hostonly, "10.17.3.12"
hadoop_config.vm.host_name = "slave"
hadoop_config.vm.customize [ "modifyvm", :id, "--memory", "1024"]
hadoop_config.vm.provision :puppet, :facter => { "fqdn" => "slave"} do |puppet|
puppet.module_path = "modules"
puppet.manifests_path = "manifests"
puppet.manifest_file = "hadoop.pp"
end
end
end