-
Notifications
You must be signed in to change notification settings - Fork 10
/
Vagrantfile
35 lines (32 loc) · 1.41 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.ssh.shell = "bash"
config.vm.box = "ubuntu/focal64"
# Installs ansible as it is not yet provided for focal.
# https://github.com/ansible/ansible/issues/69203
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install ansible acl -qq > /dev/null
SHELL
config.vm.provision "ansible_local" do |ansible|
ansible.playbook = "infra/playbooks/dev/playbook.yml"
end
config.vm.network :forwarded_port, guest: 80, host: 8001
config.vm.network :forwarded_port, guest: 8000, host: 8000
config.vm.network :forwarded_port, guest: 5432, host: 15432
config.vm.provider "virtualbox" do |vb|
# Customize the amount of memory on the VM:
vb.memory = "4096"
vb.cpus = "2"
# Enable "IO APIC" for better multicore performance, see
# https://serverfault.com/questions/74672/why-should-i-enable-io-apic-in-virtualbox
vb.customize ["modifyvm", :id, "--ioapic", "on"]
# Fix Ubuntu Focal box issue: https://bugs.launchpad.net/cloud-images/+bug/1829625
vb.customize [ "modifyvm", :id, "--uartmode1", "file", File::NULL ]
end
end