16306: Merge branch 'master'
[arvados.git] / tools / salt-install / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3 # Copyright (C) The Arvados Authors. All rights reserved.
4 #
5 # SPDX-License-Identifier: AGPL-3.0
6
7 # Vagrantfile API/syntax version. Don"t touch unless you know what you"re doing!
8 VAGRANTFILE_API_VERSION = "2".freeze
9
10 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
11   config.ssh.insert_key = false
12   config.ssh.forward_x11 = true
13
14   config.vm.define "arvados" do |arv|
15     arv.vm.box = "bento/debian-10"
16     arv.vm.hostname = "vagrant.local"
17     # CPU/RAM
18     config.vm.provider :virtualbox do |v|
19       v.memory = 2048
20       v.cpus = 2
21     end
22
23     # Networking
24     arv.vm.network "forwarded_port", guest: 8443, host: 8443
25     arv.vm.network "forwarded_port", guest: 25100, host: 25100
26     arv.vm.network "forwarded_port", guest: 9002, host: 9002
27     arv.vm.network "forwarded_port", guest: 9000, host: 9000
28     arv.vm.network "forwarded_port", guest: 8900, host: 8900
29     arv.vm.network "forwarded_port", guest: 8002, host: 8002
30     arv.vm.network "forwarded_port", guest: 8001, host: 8001
31     arv.vm.network "forwarded_port", guest: 8000, host: 8000
32     arv.vm.network "forwarded_port", guest: 3001, host: 3001
33     arv.vm.provision "shell",
34                      path: "provision.sh",
35                      args: [
36                        # "--debug",
37                        "--test",
38                        "--vagrant",
39                        "--ssl-port=8443"
40                      ].join(" ")
41   end
42 end