templates/packer: switch to fedora-40
Fedora 38 is EOL, and packit no longer builds rpms for it. The current python3.12 + ansible 2.12 combination which is the default on fedora 40 doesn't work, so switch to python3.9.
This commit is contained in:
parent
5d1094a94e
commit
a96f1b6d31
5 changed files with 29 additions and 16 deletions
|
|
@ -8,7 +8,7 @@ export BUILD_RPMS=false
|
|||
# Fedora community workers use osbuild form rpmrepo + composer from
|
||||
# copr, as the osbuild rpms from copr disappear too quickly.
|
||||
export ANSIBLE_TAGS="fedora"
|
||||
FEDORA=fedora-38
|
||||
FEDORA=fedora-40
|
||||
export PACKER_ONLY_EXCEPT=--only=amazon-ebs."$FEDORA"-x86_64,amazon-ebs."$FEDORA"-aarch64
|
||||
COMMIT_SHA="${COMMIT_SHA:-$(git rev-parse HEAD)}"
|
||||
|
||||
|
|
|
|||
|
|
@ -70,6 +70,12 @@ EOF
|
|||
if [[ $osbuild_commit != "null" ]]; then
|
||||
tee -a "$item/group_vars/all.yml" <<EOF
|
||||
osbuild_commit: $osbuild_commit
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [[ "$item" == templates/packer/ansible/inventory/fedora* ]]; then
|
||||
tee -a "$item/group_vars/all.yml" <<EOF
|
||||
ansible_python_interpreter: /usr/bin/python3.9
|
||||
EOF
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue