-
Notifications
You must be signed in to change notification settings - Fork 486
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: add fedora 41 (40, with provision to upgrade to 41 since the…
…re no image so far on vagrant cloud) (#3328)
- Loading branch information
1 parent
4be84b8
commit b3810c7
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
die() { | ||
echo "$@" >&2 | ||
exit 1 | ||
} | ||
|
||
[ "${DB_BACKEND}" = "mysql" ] && die "mysql role does not support this distribution" | ||
exit 0 |