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
132 lines (96 loc) · 4.79 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# -*- 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 "dbasm", primary: true do |dbasm|
dbasm.vm.box = "centos-6.8-x86_64"
dbasm.vm.box_url = "https://dl.dropboxusercontent.com/s/7875ao1yenb2gcv/centos-6.8-x86_64.box"
dbasm.vm.provider :vmware_fusion do |v, override|
override.vm.box = "centos-6.8-x86_64-vmware"
override.vm.box_url = "https://dl.dropboxusercontent.com/s/sfzbfhilc5665io/centos-6.8-x86_64-vmware.box"
end
dbasm.vm.hostname = "dbasm.example.com"
dbasm.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777","fmode=777"]
dbasm.vm.synced_folder "/Users/edwinbiemond/software", "/software"
dbasm.vm.network :private_network, ip: "10.10.10.7"
dbasm.vm.provider :vmware_fusion do |vb|
vb.vmx["numvcpus"] = "2"
vb.vmx["memsize"] = "7548"
end
dbasm.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm" , :id, "--memory", "7548"]
vb.customize ["modifyvm" , :id, "--name" , "dbasm"]
vb.customize ["modifyvm" , :id, "--cpus" , 2]
end
dbasm.vm.provision :shell, :inline => "mkdir -p /etc/puppet;ln -sf /vagrant/puppet/hiera.yaml /etc/puppet/hiera.yaml;rm -rf /etc/puppet/modules;ln -sf /vagrant/puppet/modules /etc/puppet/modules"
dbasm.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.manifests_path = "puppet/manifests"
# puppet.module_path = "puppet/modules"
# puppet.manifest_file = "site.pp"
#puppet.options = "--verbose --hiera_config /vagrant/puppet/hiera.yaml"
puppet.options = [
'--verbose',
'--report',
'--trace',
# '--debug',
# '--parser future',
'--strict_variables',
'--hiera_config /vagrant/puppet/hiera.yaml'
]
puppet.facter = {
"environment" => "development",
"vm_type" => "vagrant",
}
end
end
config.vm.define "dbclient", primary: true do |dbclient|
dbclient.vm.box = "centos-6.8-x86_64"
dbclient.vm.box_url = "https://dl.dropboxusercontent.com/s/7875ao1yenb2gcv/centos-6.8-x86_64.box"
dbclient.vm.provider :vmware_fusion do |v, override|
override.vm.box = "centos-6.8-x86_64-vmware"
override.vm.box_url = "https://dl.dropboxusercontent.com/s/sfzbfhilc5665io/centos-6.8-x86_64-vmware.box"
end
dbclient.vm.hostname = "dbclient.example.com"
dbclient.vm.synced_folder ".", "/vagrant", :mount_options => ["dmode=777","fmode=777"]
dbclient.vm.synced_folder "/Users/edwinbiemond/software", "/software"
dbclient.vm.network :private_network, ip: "10.10.10.8"
dbclient.vm.provider :vmware_fusion do |vb|
vb.vmx["numvcpus"] = "2"
vb.vmx["memsize"] = "2548"
end
dbclient.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm" , :id, "--memory", "2548"]
vb.customize ["modifyvm" , :id, "--name" , "dbclient"]
vb.customize ["modifyvm" , :id, "--cpus" , 2]
end
dbclient.vm.provision :shell, :inline => "mkdir -p /etc/puppet;ln -sf /vagrant/puppet/hiera.yaml /etc/puppet/hiera.yaml;rm -rf /etc/puppet/modules;ln -sf /vagrant/puppet/modules /etc/puppet/modules"
dbclient.vm.provision :puppet do |puppet|
puppet.environment_path = "puppet/environments"
puppet.environment = "development"
puppet.manifests_path = "puppet/environments/development/manifests"
puppet.manifest_file = "client.pp"
# puppet.manifests_path = "puppet/manifests"
# puppet.module_path = "puppet/modules"
# puppet.manifest_file = "site.pp"
#puppet.options = "--verbose --hiera_config /vagrant/puppet/hiera.yaml"
puppet.options = [
'--verbose',
'--report',
'--trace',
# '--debug',
# '--parser future',
'--strict_variables',
'--hiera_config /vagrant/puppet/hiera.yaml'
]
puppet.facter = {
"environment" => "development",
"vm_type" => "vagrant",
}
end
end
end