diff options
Diffstat (limited to 'vagrant/freebsd12/Vagrantfile')
-rw-r--r-- | vagrant/freebsd12/Vagrantfile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vagrant/freebsd12/Vagrantfile b/vagrant/freebsd12/Vagrantfile new file mode 100644 index 0000000..213c18c --- /dev/null +++ b/vagrant/freebsd12/Vagrantfile @@ -0,0 +1,30 @@ +# -*- mode: ruby -*- +# vi: set ft=ruby : + +Vagrant.configure("2") do |config| + config.vm.box = "roboxes/freebsd12" + + 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-freebsd12" + end + + config.vm.provision "shell", inline: <<-SHELL + pkg update + pkg install -y fusefs-libs pkgconf ruby + + kldload fuse.ko + echo 'fuse_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 |