repotesting-vagrant/rocky/Vagrantfile

36 lines
1.1 KiB
Ruby

# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |rocky8u6|
rocky8u6.vm.box = "generic/rocky8"
rocky8u6.vm.box_version = "4.2.16"
rocky8u6.vm.hostname = "rocky8u7-repotesting.example.org"
rocky8u6.vm.synced_folder "../vagrantdata", "/home/vagrant/data"
rocky8u6.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.memory = "4096"
vb.cpus = "2"
end
# Enable provisioning with a shell script. Additional provisioners such as
rocky8u6.vm.provision "shell", inline: <<-SHELL
dnf -y --enablerepo=extras,powertools update
SHELL
rocky8u6.vm.provision "shell", inline: <<-SHELL
dnf -y --enablerepo=epel,powertools install rpminspect rpminspect-data-fedora tree htop vim-enhanced
dnf -y install gcc make perl kernel-devel kernel-headers bzip2 dkms
cd /dev/shm
curl -LOR https://download.virtualbox.org/virtualbox/6.1.34/VBoxGuestAdditions_6.1.34.iso
mkdir -p /mnt/cdrom
mount -o loop /dev/shm/VBoxGuestAdditions_6.1.29-148164.iso /mnt/cdrom
cd /mnt/cdrom
./VBoxLinuxAdditions.run
modinfo vboxguest
modinfo vboxsf
SHELL
end