vagrant/restic-minio/Vagrantfile
2025-02-10 13:10:14 +01:00

48 lines
1.5 KiB
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# Base VM OS configuration.
config.vm.box = "debian/bookworm64"
config.ssh.insert_key = false
config.vm.synced_folder '.', '/vagrant', disabled: true
# General VirtualBox VM configuration.
config.vm.provider :virtualbox do |v|
v.memory = 1024
v.cpus = 1
v.linked_clone = true
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--ioapic", "on"]
v.check_guest_additions = false
end
# Minio.
config.vm.define "minio" do |minio|
minio.vm.box = "debian/bookworm64"
minio.vm.hostname = "minio"
minio.vm.network :private_network, ip: "192.168.56.5"
minio.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", 1024]
v.cpus = 1
end
minio.vm.provision "shell",
inline: "timedatectl set-timezone Europe/Paris ; apt-get update ; apt-get install -y vim curl wget"
minio.vm.provision "shell", path: "provision/install-minio.sh"
end
# Restic.
config.vm.define "restic" do |restic|
restic.vm.hostname = "restic"
restic.vm.network :private_network, ip: "192.168.56.2"
restic.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--memory", 1024]
end
restic.vm.provision "shell",
inline: "timedatectl set-timezone Europe/Paris ; apt-get update ; apt-get install -y vim curl wget"
restic.vm.provision "shell", path: "provision/install-restic.sh"
end
end