-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
59 lines (48 loc) · 1.59 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANT_PLUGINS = [ 'vagrant-hostmanager', 'vagrant-vbguest' ]
_retry = false
VAGRANT_PLUGINS.each do |plugin|
unless Vagrant.has_plugin? plugin
system "vagrant plugin install #{plugin}"
_retry = true
end
end
if (_retry)
exec "vagrant " + ARGV.join(' ')
end
Vagrant.require_version ">= 1.7.0"
Vagrant.configure(2) do |config|
# We're using a default ubuntu box with php 5.5.9 installed.
config.vm.box = "ubuntu/trusty64"
# Enable ssh agent forwarding
config.ssh.forward_agent = true
# Enable vagrant-hostmanager
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.ignore_private_ip = false
config.hostmanager.include_offline = true
# Define our main vhost
config.vm.define 'wsupg' do |node|
node.vm.hostname = 'wsupg.dev'
node.vm.network :private_network, ip: '192.168.42.42'
node.hostmanager.aliases = %w(www.wsupg.dev fr.wsupg.dev es.wsupg.dev)
config.vm.synced_folder "./src",
"/var/www/wsupg",
:nfs => true,
:linux__nfs_options => ["rw,no_subtree_check,async,all_squash"],
:bsd__nfs_options => ["rw,no_subtree_check,async,all_squash"]
end
# Providers
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
# Provisioners
config.vm.provision "shell" do |s|
s.path = "provision/setup.sh"
end
end