From 92249f4fd474eaf3ba182a536100aeaf73857610 Mon Sep 17 00:00:00 2001 From: Laurence Date: Tue, 12 Nov 2024 17:23:30 +0000 Subject: [PATCH] enhance: add fedora 41 (40, with provision to upgrade to 41 since there no image so far on vagrant cloud) --- test/ansible/vagrant/fedora-41/Vagrantfile | 13 +++++++++++++ test/ansible/vagrant/fedora-41/skip | 9 +++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/ansible/vagrant/fedora-41/Vagrantfile create mode 100644 test/ansible/vagrant/fedora-41/skip diff --git a/test/ansible/vagrant/fedora-41/Vagrantfile b/test/ansible/vagrant/fedora-41/Vagrantfile new file mode 100644 index 00000000000..3f905f51671 --- /dev/null +++ b/test/ansible/vagrant/fedora-41/Vagrantfile @@ -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) diff --git a/test/ansible/vagrant/fedora-41/skip b/test/ansible/vagrant/fedora-41/skip new file mode 100644 index 00000000000..4f1a9063d2b --- /dev/null +++ b/test/ansible/vagrant/fedora-41/skip @@ -0,0 +1,9 @@ +#!/bin/sh + +die() { + echo "$@" >&2 + exit 1 +} + +[ "${DB_BACKEND}" = "mysql" ] && die "mysql role does not support this distribution" +exit 0