mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 20:36:12 +02:00
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:
parent
4be84b8a0a
commit
b3810c7e75
2 changed files with 22 additions and 0 deletions
13
test/ansible/vagrant/fedora-41/Vagrantfile
vendored
Normal file
13
test/ansible/vagrant/fedora-41/Vagrantfile
vendored
Normal 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)
|
9
test/ansible/vagrant/fedora-41/skip
Normal file
9
test/ansible/vagrant/fedora-41/skip
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue