3 # Copyright (C) The Arvados Authors. All rights reserved.
5 # SPDX-License-Identifier: AGPL-3.0
7 # Vagrantfile API/syntax version. Don"t touch unless you know what you"re doing!
8 VAGRANTFILE_API_VERSION = "2".freeze
10 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
11 config.ssh.insert_key = false
12 config.ssh.forward_x11 = true
14 # A single_host multiple_hostnames example
15 config.vm.define "arvados-sh-mn" do |arv|
16 arv.vm.box = "bento/debian-10"
17 arv.vm.hostname = "harpo"
19 config.vm.provider :virtualbox do |v|
26 arv.vm.network "forwarded_port", guest: 8443, host: 8443
28 arv.vm.network "forwarded_port", guest: 25101, host: 25101
30 arv.vm.network "forwarded_port", guest: 9002, host: 9002
32 arv.vm.network "forwarded_port", guest: 8002, host: 8002
33 arv.vm.provision "shell",
34 inline: "cp -vr /vagrant/config_examples/single_host/multiple_hostnames /home/vagrant/local_config_dir;
35 cp -vr /vagrant/tests /home/vagrant/tests;
36 sed 's#cluster_fixme_or_this_wont_work#harpo#g;
37 s#domain_fixme_or_this_wont_work#local#g;
38 s/#\ BRANCH=\"master\"/\ BRANCH=\"master\"/g;
39 s#CONTROLLER_EXT_SSL_PORT=443#CONTROLLER_EXT_SSL_PORT=8443#g' \
40 /vagrant/local.params.example.single_host_multiple_hostnames > /tmp/local.params.single_host_multiple_hostnames"
41 arv.vm.provision "shell",
45 "--config /tmp/local.params.single_host_multiple_hostnames",
51 # A single_host single_hostname example
52 config.vm.define "arvados-sh-sn" do |arv|
53 arv.vm.box = "bento/debian-10"
54 arv.vm.hostname = "zeppo"
56 config.vm.provider :virtualbox do |v|
63 arv.vm.network "forwarded_port", guest: 9443, host: 9443
65 arv.vm.network "forwarded_port", guest: 9444, host: 9444
67 arv.vm.network "forwarded_port", guest: 9445, host: 9445
69 arv.vm.network "forwarded_port", guest: 35101, host: 35101
71 arv.vm.network "forwarded_port", guest: 11002, host: 11002
73 arv.vm.network "forwarded_port", guest: 14202, host: 14202
75 arv.vm.network "forwarded_port", guest: 18002, host: 18002
76 arv.vm.provision "shell",
77 inline: "cp -vr /vagrant/config_examples/single_host/single_hostname /home/vagrant/local_config_dir;
78 cp -vr /vagrant/tests /home/vagrant/tests;
79 sed 's#HOSTNAME_EXT=\"\"#HOSTNAME_EXT=\"zeppo.local\"#g;
80 s#cluster_fixme_or_this_wont_work#zeppo#g;
81 s/#\ BRANCH=\"master\"/\ BRANCH=\"master\"/g;
82 s#domain_fixme_or_this_wont_work#local#g;' \
83 /vagrant/local.params.example.single_host_single_hostname > /tmp/local.params.single_host_single_hostname"
84 arv.vm.provision "shell",
88 "--config /tmp/local.params.single_host_single_hostname",