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 1
/
Copy pathVagrantfile
70 lines (51 loc) · 2.49 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
# -*- 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-7-1611-x86_64"
dbasm.vm.box_url = "https://dl.dropboxusercontent.com/s/e7o5lvlpletkp2i/centos-7-1611-x86_64.box"
dbasm.vm.provider :vmware_fusion do |v, override|
override.vm.box = "centos-7-1611-x86_64-vmware"
override.vm.box_url = "https://dl.dropboxusercontent.com/s/6hqh2ntbiyu3srt/centos-7-1611-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
end