-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathVagrantfile
38 lines (29 loc) · 1.33 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
# -*- 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|
# Latest Ubuntu 18.04 box.
config.vm.box = "open-lms-open-source/ubuntu-18.04-moodle-dev"
config.vm.box_version = "2.0.0"
# Host manager plugin settings. This updates /etc/hosts on guest and host.
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.hostmanager.aliases = %w(moodle.test core-moodle.test webgrind.test)
# Forward port for MySQL.
config.vm.network "forwarded_port", guest: 3306, host: 3306
# Forward port for PostgreSQL.
config.vm.network "forwarded_port", guest: 5432, host: 5432
# Create a private network, which allows host-only access to the machine using a specific IP.
config.vm.network "private_network", ip: "192.168.100.100"
# If true, then any SSH connections made will enable agent forwarding.
config.ssh.forward_agent = true
# Mount current directory to the /vagrant directory in the VM.
config.vm.synced_folder ".", "/vagrant", type: "nfs"
# Customize virtual machine.
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--name", "moodle-dev-example"]
vb.cpus = 2
end
end