Skip to content

Commit

Permalink
Pin minor version only if customer has not done so already
Browse files Browse the repository at this point in the history
  • Loading branch information
hgreebe committed Dec 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 96990c5 commit a9b81e3
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cli/src/pcluster/resources/imagebuilder/parallelcluster.yaml
Original file line number Diff line number Diff line change
@@ -195,8 +195,11 @@ phases:
if [[ ${!PLATFORM} == RHEL ]]; then
if [[ ${!OS} == rhel9 ]] || [[ ${!OS} == rocky9 ]]; then
echo ${!VERSION} > /etc/yum/vars/releasever
yum clean all
if [[ ! -f /etc/yum/vars/releasever ]]; then
echo "yes" > /opt/parallelcluster/pin_releasesever
echo ${!VERSION} > /etc/yum/vars/releasever
yum clean all
fi
fi
yum -y update krb5-libs
yum -y groupinstall development && sudo yum -y install curl wget jq
Original file line number Diff line number Diff line change
@@ -168,9 +168,12 @@ phases:
PLATFORM='{{ build.PlatformName.outputs.stdout }}'
VERSION='{{ build.OperatingSystemVersion.outputs.stdout }}'
if [[ ${!OS} == rhel9 ]] || [[ ${!OS} == rocky9 ]]; then
if [[ ! -f /etc/yum/vars/releasever ]]; then
echo "yes" > /opt/parallelcluster/pin_releasesever
echo ${!VERSION} > /etc/yum/vars/releasever
yum clean all
fi
fi
if [[ ${!PLATFORM} == RHEL ]]; then
yum -y install jq

0 comments on commit a9b81e3

Please sign in to comment.