-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Vagrantfile
42 lines (34 loc) · 1.28 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
42
# frozen_string_literal: true
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Uncomment machines you want to test
test_machines = {
# debian: { box: "bento/debian-11" },
# ubuntu: { box: "bento/ubuntu-22.04" },
# fedora: { box: "bento/fedora-latest" },
# redhat: { box: "bento/centos-stream-9" },
# gentoo: { box: "generic/gentoo" },
# The `vagrant` user group does not exist in this box.
# suse: { box: "bento/opensuse-leap-15", args: { group: 'users' } },
# When you add a new test machine, please ensure that it will stay
# available and regularly updated for future tests. We recommend to
# use officially supported boxes, as stated in the Vagrant documentation.
# See https://goo.gl/LbkPVF
}
require File.expand_path('spec/vagrantfile_helper', __dir__)
Vagrant.configure('2') do |config|
# Common configuration
config.vm.provider 'virtualbox' do |vb|
vb.memory = 4096
vb.cpus = 2
end
# For a more detailled output when you test, set this to true.
config.bindfs.debug = false
config.bindfs.force_empty_mountpoints = true
test_machines.each do |distro, options|
config.vm.define "vagrant-bindfs-test-#{distro}" do |machine|
machine.vm.box = options[:box]
tests_setup(machine, (options[:args] || {}))
end
end
end