-
Notifications
You must be signed in to change notification settings - Fork 2
/
Vagrantfile
50 lines (35 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
$project_name = 'aj'
# 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.box = "trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.provider "virtualbox" do |v|
v.memory = 2024
v.cpus = 4
end
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.vm.hostname = "#{$project_name}.dev"
config.vm.network :private_network, ip: "192.168.144.102"
# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
#possible for nfs, not currently working
#config.vm.synced_folder "sites-available", "/root/sites-available",
#:nfs => true
#config.vm.synced_folder "www", "/var/www",
# :nfs => true
#"Normal" file sync
config.vm.synced_folder "sites-available", "/root/sites-available",
:owner=>'root', :group=>'root', :mount_options=>['dmode=775,fmode=775']
config.vm.synced_folder "www", "/var/www",
:owner=>'www-data', :group=>'www-data', :mount_options=>['dmode=775,fmode=775']
#config.vm.synced_f#older "www", "/var/www",
# :nfs => true
# config.vm.synced_folder "www", "/var/www", type: "rsync", rsync__exclude: "./git/"
config.vm.provision :shell, :path => "bootstrap.sh"
end