forked from anrizal/vagrant-debian-shell-drupal-8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
66 lines (51 loc) · 1.95 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
##### INFO #####
# vagrant file
#
# This vagrant file is intended for
# Host OS: non - Windows
# Provider: Virtual Box
# Vagrant: Vagrant 1.3.3
# Vagrant API: Version 2
# Provision: Shell
# Guest OS: Ubuntu 12.04 LTS 64bit
# For Application: Drupal 8
# Author: Arradi Nur Rizal
#=============================CONFIGURATION=================================
#Vagrant API Version
#Currently, there are only two supported versions: "1" and "2".
#Version 1 represents the configuration from Vagrant 1.0.x.
#"2" represents the configuration for 1.1+ leading up to 2.0.x.
VAGRANTFILE_API_VERSION = "2"
# The BOX used is Ubuntu 12.04 LTS 64 bit
BOX = "precise64"
BOX_URL = "http://files.vagrantup.com/precise64.box"
# We set the vm's memory to 1024 MB
MEMORY = "1024"
# Network Settings.
IP = "10.0.0.10"
# Share/synced folder configuration
HOST_FOLDER = "./sites"
GUEST_FOLDER = "/home/vagrant/sites"
#We use shell for provision
SHELL_PATH = "provision.sh"
#==========================================================================
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. For a detailed explanation
# and listing of configuration options, please view the documentation
# online. http://docs.vagrantup.com/v2/
# The BOX
config.vm.box = BOX
config.vm.box_url = BOX_URL
# We set the vm's memory, enable ioapic, set natdnsresolver
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", MEMORY]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
end
# Network Settings. Note, in 1.1++ no host only and no forward port option
config.vm.network :private_network, ip: IP
# Configure shared/synced folder. we do not use NFS for Windows Host
config.vm.synced_folder HOST_FOLDER, GUEST_FOLDER, id: "vagrant-root", nfs: true
# Provision
config.vm.provision :shell, :path=> SHELL_PATH
end