-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile_example
More file actions
executable file
·39 lines (34 loc) · 1.38 KB
/
Vagrantfile_example
File metadata and controls
executable file
·39 lines (34 loc) · 1.38 KB
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
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.network :private_network, ip: "192.168.33.33"
config.vm.synced_folder "sites/", "/var/www/", create: true, mount_options: ['dmode=777', 'fmode=776']
config.vm.network :forwarded_port, host: 1080, guest: 1080
if Vagrant.has_plugin? 'vagrant-hostmanager'
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.manage_guest = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
config.vm.define 'dev-box' do |node|
node.hostmanager.aliases = %w(cu-local.carleton.ca, cuhome-local.carleton.ca, intranet-local.carleton.ca, ccms-local.carleton.ca, framework-local.carleton.ca)
end
else
puts 'vagrant-hostsupdater missing, please install the plugin:'
puts 'vagrant plugin install vagrant-hostmanager'
end
config.vm.provision :ansible do |ansible|
ansible.playbook = "ansible/playbook.yml"
end
config.vm.provider :virtualbox do |v|
v.name = "dev-box"
v.customize [
"modifyvm", :id,
"--name", "dev-box",
"--memory", 1024,
"--natdnshostresolver1", "on",
"--natdnsproxy1", "on",
"--cpus", 1,
]
end
end