mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 13:20:42 +00:00
- Added provider-specific memory allocation (8192 MB) for VirtualBox and Libvirt. - Configured synced folder using rsync with `.git/` and `target/` exclusions. - Streamlined provisioning by replacing GCC dependencies with Rust and updating package installation list. - Removed redundant provisioning script for Rust setup.
24 lines
581 B
Ruby
24 lines
581 B
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.box = "openindiana/hipster"
|
|
|
|
config.vm.synced_folder ".", "/vagrant", type: "rsync",
|
|
rsync__exclude: [".git/", "target/"]
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
vb.memory = "8192"
|
|
end
|
|
|
|
config.vm.provider "libvirt" do |lv|
|
|
lv.memory = "8192"
|
|
end
|
|
|
|
config.vm.provision "shell", inline: <<-SHELL
|
|
set -ex
|
|
pkg install -v developer/lang/rustc build-essential jq
|
|
mkdir /ws
|
|
chown vagrant:vagrant /ws
|
|
zfs create -o mountpoint=/zones rpool/zones
|
|
SHELL
|
|
end
|