This repository has been archived by the owner on Feb 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
executable file
·114 lines (72 loc) · 3.63 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "emdb" , primary: true do |emdb|
emdb.vm.box = "OEL7_2-x86_64"
emdb.vm.box_url = "https://dl.dropboxusercontent.com/s/0yz6r876qkps68i/OEL7_2-x86_64.box"
emdb.vm.provider :vmware_fusion do |v, override|
override.vm.box = "OEL7_2-x86_64-vmware"
override.vm.box_url = "https://dl.dropboxusercontent.com/s/ymr62ku2vjjdhup/OEL7_2-x86_64-vmware.box"
end
emdb.vm.hostname = "emdb.example.com"
emdb.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777","fmode=777"]
emdb.vm.synced_folder "/Users/edwinbiemond/software", "/software"
emdb.vm.network :private_network, ip: "10.10.10.15"
emdb.vm.provider :vmware_fusion do |vb|
vb.vmx["numvcpus"] = "2"
vb.vmx["memsize"] = "3096"
end
emdb.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm" , :id, "--memory", "3096"]
vb.customize ["modifyvm" , :id, "--name" , "emdb"]
vb.customize ["modifyvm" , :id, "--cpus" , 2]
end
# emdb.vm.provision :shell, :inline => "ln -sf /vagrant/puppet/hiera.yaml /etc/puppet/hiera.yaml;rm -rf /etc/puppet/modules;ln -sf /vagrant/puppet/modules /etc/puppet/modules"
emdb.vm.provision :puppet do |puppet|
puppet.environment_path = "puppet/environments"
puppet.environment = "development"
puppet.manifests_path = "puppet/environments/development/manifests"
puppet.manifest_file = "db.pp"
puppet.options = "--verbose --detailed-exitcodes --report --trace --hiera_config /vagrant/puppet/environments/development/hiera.yaml"
puppet.facter = {
"environment" => "development",
"vm_type" => "vagrant",
}
end
end
config.vm.define "emapp" , primary: true do |emapp|
emapp.vm.box = "OEL7_2-x86_64"
emapp.vm.box_url = "https://dl.dropboxusercontent.com/s/0yz6r876qkps68i/OEL7_2-x86_64.box"
emapp.vm.provider :vmware_fusion do |v, override|
override.vm.box = "OEL7_2-x86_64-vmware"
override.vm.box_url = "https://dl.dropboxusercontent.com/s/ymr62ku2vjjdhup/OEL7_2-x86_64-vmware.box"
end
emapp.vm.hostname = "emapp.example.com"
emapp.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777","fmode=777"]
emapp.vm.synced_folder "/Users/edwinbiemond/software", "/software"
emapp.vm.network :private_network, ip: "10.10.10.25"
emapp.vm.provider :vmware_fusion do |vb|
vb.vmx["numvcpus"] = "2"
vb.vmx["memsize"] = "3372"
end
emapp.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm" , :id, "--memory", "3372"]
vb.customize ["modifyvm" , :id, "--name" , "emapp"]
vb.customize ["modifyvm" , :id, "--cpus" , 2]
end
# emapp.vm.provision :shell, :inline => "ln -sf /vagrant/puppet/hiera.yaml /etc/puppet/hiera.yaml;rm -rf /etc/puppet/modules;ln -sf /vagrant/puppet/modules /etc/puppet/modules"
emapp.vm.provision :puppet do |puppet|
puppet.environment_path = "puppet/environments"
puppet.environment = "development"
puppet.manifests_path = "puppet/environments/development/manifests"
puppet.manifest_file = "site.pp"
puppet.options = "--verbose --detailed-exitcodes --report --trace --hiera_config /vagrant/puppet/environments/development/hiera.yaml"
puppet.facter = {
"environment" => "development",
"vm_type" => "vagrant",
}
end
end
end