enhance: add fedora 41 (40, with provision to upgrade to 41 since there no image so far on vagrant cloud) (#3328)

This commit is contained in:
Laurence Jones 2024-11-13 14:17:15 +00:00 committed by GitHub
parent 4be84b8a0a
commit b3810c7e75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,13 @@
# frozen_string_literal: true
Vagrant.configure('2') do |config|
config.vm.box = "fedora/40-cloud-base"
config.vm.provision "shell", inline: <<-SHELL
SHELL
config.vm.provision "shell" do |s|
s.inline = "sudo dnf upgrade --refresh -y && sudo dnf install dnf-plugin-system-upgrade -y && sudo dnf system-upgrade download --releasever=41 -y && sudo dnf system-upgrade reboot -y"
end
end
common = '../common'
load common if File.exist?(common)

View file

@ -0,0 +1,9 @@
#!/bin/sh
die() {
echo "$@" >&2
exit 1
}
[ "${DB_BACKEND}" = "mysql" ] && die "mysql role does not support this distribution"
exit 0