-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
Vagrantfile
41 lines (31 loc) · 1.36 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Run the following command to set up this Vagrant box:
# ansible-playbook site.yml --limit=vagrant
# It takes around 20 minutes to complete the first setup/provision/deploy.
# Your new local OFN instance will then be available at: http://localhost:8080
# 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|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
config.vm.box = "generic/ubuntu2004"
# VM network config.
config.vm.network "forwarded_port", guest: 22, host: 2222
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 443, host: 4433
config.vm.network "private_network", ip: "192.168.50.4"
config.ssh.insert_key = false
config.vm.provider :libvirt do |box|
box.memory = 2500
box.nic_model_type = "virtio"
end
config.vm.provider :virtualbox do |vbox|
# Set box memory.
vbox.customize ["modifyvm", :id, "--memory", "2500"]
# Optimise virtualbox.
vbox.customize [ "modifyvm", :id, "--nictype1", "virtio" ]
vbox.customize [ "modifyvm", :id, "--nictype2", "virtio" ]
end
end