This repository has been archived by the owner on Apr 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathVagrantfile
45 lines (36 loc) · 1.6 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
# -*- 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 "db12102" , primary: true do |db12102|
db12102.vm.box = "centos-6.5-x86_64"
db12102.vm.box_url = ["http://nunki.diocesanas.org/mv/vagrant/centos-6.5-x86_64.box",
"https://dl.dropboxusercontent.com/s/np39xdpw05wfmv4/centos-6.5-x86_64.box"]
db12102.vm.hostname = "db12c.example.com"
db12102.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777","fmode=777"]
db12102.vm.synced_folder "./oracle12ee", "/software"
db12102.vm.network :private_network, ip: "10.10.10.9"
db12102.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm" , :id, "--memory", "2048"]
vb.gui = false
vb.customize ["modifyvm" , :id, "--name" , "db12102"]
vb.customize ["modifyvm" , :id, "--cpus" , 2]
end
db12102.vm.provision :shell, inline: <<-SHELL
ln -sf /vagrant/puppet/hiera.yaml /etc/puppet/hiera.yaml
rm -rf /etc/puppet/modules
ln -sf /vagrant/puppet/modules /etc/puppet/modules
SHELL
db12102.vm.provision :puppet do |puppet|
puppet.manifests_path = "puppet/manifests"
puppet.module_path = "puppet/modules"
puppet.manifest_file = "db.pp"
puppet.options = "--verbose --hiera_config /vagrant/puppet/hiera.yaml"
puppet.facter = {
"environment" => "development",
"vm_type" => "vagrant",
}
end
end
end