add 8u5 Vagrantfiles
This commit is contained in:
parent
5af819724f
commit
48717b2f58
36
centos/Vagrantfile
vendored
Normal file
36
centos/Vagrantfile
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "generic/centos8"
|
||||
config.vm.hostname = "centos8u5-repotesting.example.org"
|
||||
|
||||
config.vm.synced_folder "../vagrantdata", "/home/vagrant/data"
|
||||
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.gui = true
|
||||
vb.memory = "2048"
|
||||
vb.cpus = "2"
|
||||
end
|
||||
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
dnf -y clean all
|
||||
dnf -y update
|
||||
SHELL
|
||||
|
||||
config.vm.provision :reload
|
||||
|
||||
config.vm.provision "shell", inline: <<-SHELL
|
||||
dnf -y --enablerepo=epel,powertools install rpminspect rpminspect-data-centos tree htop vim-enhanced
|
||||
dnf -y install gcc make perl kernel-devel kernel-headers bzip2 dkms
|
||||
cd /dev/shm
|
||||
curl -LOR https://www.virtualbox.org/download/testcase/VBoxGuestAdditions_6.1.31-148488.iso
|
||||
mkdir -p /mnt/cdrom
|
||||
mount -o loop /dev/shm/VBoxGuestAdditions_6.1.31-148488.iso
|
||||
cd /mnt/cdrom
|
||||
./VBoxLinuxAdditions.run
|
||||
modinfo vboxguest
|
||||
modinfo vboxsf
|
||||
SHELL
|
||||
|
||||
end
|
62
rhel/Vagrantfile
vendored
Normal file
62
rhel/Vagrantfile
vendored
Normal file
@ -0,0 +1,62 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
require 'yaml'
|
||||
|
||||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
||||
VAGRANTFILE_API_VERSION = "2"
|
||||
|
||||
# configs, custom updates defaults
|
||||
defaults_cfg = YAML.load_file('vagrant-settings.yaml_defaults')
|
||||
if File.exist?('vagrant-settings.yaml')
|
||||
custom_cfg = YAML.load_file('vagrant-settings.yaml')
|
||||
cfg = defaults_cfg.merge(custom_cfg)
|
||||
else
|
||||
cfg = defaults_cfg
|
||||
end
|
||||
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.provider "virtualbox" do |vb|
|
||||
vb.gui = true
|
||||
vb.memory = "2048"
|
||||
vb.cpus = "2"
|
||||
end
|
||||
|
||||
config.vm.define "rhel8u5" do |rhel8u5|
|
||||
rhel8u5.vm.box = "generic/rhel8"
|
||||
rhel8u5.vm.hostname = "rhel8u5-repotesting.example.org"
|
||||
|
||||
rhel8u5.vm.synced_folder "../vagrantdata", "/home/vagrant/data"
|
||||
|
||||
rhel8u5.trigger.before :destroy do |trigger|
|
||||
trigger.warn = "Unregistering from rhsm"
|
||||
trigger.run_remote = {inline: "subscription-manager remove --all; subscription-manager unregister"}
|
||||
end
|
||||
|
||||
rhel8u5.vm.provision "shell", inline: <<-SHELL
|
||||
subscription-manager register --force \
|
||||
--auto-attach \
|
||||
--username=#{cfg["rhsm_username"]} \
|
||||
--password=#{cfg["rhsm_password"]}
|
||||
SHELL
|
||||
|
||||
rhel8u5.vm.provision "shell", inline: <<-SHELL
|
||||
dnf config-manager --set-enabled codeready-builder-for-rhel-8-x86_64-rpms
|
||||
dnf config-manager --set-enabled rhel-8-for-x86_64-appstream-rpms
|
||||
dnf config-manager --set-enabled rhel-8-for-x86_64-baseos-rpms
|
||||
dnf config-manager --set-enabled rhel-8-for-x86_64-highavailability-rpms
|
||||
dnf config-manager --set-enabled rhel-8-for-x86_64-resilientstorage-rpms
|
||||
dnf config-manager --set-enabled rhel-8-for-x86_64-rt-rpms
|
||||
dnf config-manager --set-enabled rhel-8-for-x86_64-supplementary-rpms
|
||||
dnf -y update
|
||||
SHELL
|
||||
|
||||
rhel8u5.vm.provision "shell", inline: <<-SHELL
|
||||
dnf -y --enablerepo=epel install rpminspect rpminspect-data-fedora tree htop vim-enhanced
|
||||
SHELL
|
||||
|
||||
rhel8u5.vm.provision :reload
|
||||
|
||||
end
|
||||
|
||||
end
|
2
rhel/vagrant-settings.yaml_defaults
Normal file
2
rhel/vagrant-settings.yaml_defaults
Normal file
@ -0,0 +1,2 @@
|
||||
rhsm_username: admin
|
||||
rhsm_password: secret
|
35
rocky/Vagrantfile
vendored
Normal file
35
rocky/Vagrantfile
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure("2") do |rocky8u5|
|
||||
# The custom/rocky8u5 was created from generic/centos8 and migrate2rocky.sh
|
||||
rocky8u5.vm.box = "custom/rocky8u5"
|
||||
rocky8u5.vm.hostname = "rocky8u5-repotesting.example.org"
|
||||
|
||||
rocky8u5.vm.synced_folder "../vagrantdata", "/home/vagrant/data"
|
||||
|
||||
rocky8u5.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
|
||||
rocky8u5.vm.provision "shell", inline: <<-SHELL
|
||||
dnf -y --enablerepo=extras,powertools update
|
||||
SHELL
|
||||
|
||||
rocky8u5.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://www.virtualbox.org/download/testcase/VBoxGuestAdditions_6.1.29-148164.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
|
Loading…
Reference in New Issue
Block a user