aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/freebsd14/Vagrantfile
blob: f42d6ba09c6c839fce397cc29650885945061fc5 (plain) (blame)
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
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
  config.vm.box = "roboxes/freebsd14"

  config.vm.synced_folder ".", "/vagrant", disabled: true
  config.vm.synced_folder "../../", "/bindfs",
    type: "rsync",
    rsync__auto: false,
    rsync__exclude: ["vagrant"],
    rsync__args: ["-av", "--delete-after"]

  config.vm.provider "virtualbox" do |v|
    v.name = "bindfs-freebsd14"
  end
  config.vm.provider "libvirt" do |v|
    v.driver = if File.exist?('/dev/kvm') then 'kvm' else 'qemu' end
  end

  config.vm.provision "shell", inline: <<-SHELL
    pkg update
    pkg install -y fusefs-libs3 pkgconf autoconf automake libtool ruby

    kldload fusefs
    echo 'fusefs_load="YES"' >> /boot/loader.conf

    sysctl vfs.usermount=1
    echo vfs.usermount=1 >> /etc/sysctl.conf

    pw groupmod operator -m vagrant  # For access to /dev/fuse
  SHELL
end