Skip to content

Commit 7e69666

Browse files
Himani Anil Deshpandehanwen-cluster
authored andcommitted
Removing centos usage in ImageBuilder
1 parent cfb5988 commit 7e69666

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

cli/src/pcluster/resources/imagebuilder/parallelcluster.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ phases:
131131
set -v
132132
OS='{{ build.OperatingSystemName.outputs.stdout }}'
133133
134-
if [ `echo "${!OS}" | grep -E '^(alinux|centos|rhel|rocky)'` ]; then
134+
if [ `echo "${!OS}" | grep -E '^(alinux|rhel|rocky)'` ]; then
135135
PLATFORM='RHEL'
136136
elif [ `echo "${!OS}" | grep -E '^ubuntu'` ]; then
137137
PLATFORM='DEBIAN'
@@ -169,7 +169,7 @@ phases:
169169
set -v
170170
if [ ${CfnParamUpdateOsAndReboot} == false ]; then
171171
RELEASE='{{ build.OperatingSystemRelease.outputs.stdout }}'
172-
if [ `echo "${!RELEASE}" | grep -Ev '^(amzn|centos|ubuntu|rhel|rocky)'` ]; then
172+
if [ `echo "${!RELEASE}" | grep -Ev '^(amzn|ubuntu|rhel|rocky)'` ]; then
173173
echo "This component does not support '${!RELEASE}'. Failing build."
174174
exit {{ FailExitCode }}
175175
fi
@@ -253,12 +253,6 @@ phases:
253253
fi
254254
yum -y update krb5-libs
255255
yum -y groupinstall development && sudo yum -y install curl wget jq
256-
257-
258-
if [[ ${!OS} =~ ^centos ]]; then
259-
/bin/sed -r -i -e 's/SELINUX=enforcing/SELINUX=permissive/' /etc/selinux/config
260-
grub2-mkconfig -o /boot/grub2/grub.cfg
261-
fi
262256
elif [[ ${!PLATFORM} == DEBIAN ]]; then
263257
if [[ "${CfnParamUpdateOsAndReboot}" == "false" ]]; then
264258
# disable apt-daily.timer to avoid dpkg lock

cli/src/pcluster/resources/imagebuilder/update_and_reboot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ phases:
6969
set -v
7070
OS='{{ build.OperatingSystemName.outputs.stdout }}'
7171
72-
if [ `echo "${!OS}" | grep -E '^(alinux|centos|rhel|rocky)'` ]; then
72+
if [ `echo "${!OS}" | grep -E '^(alinux|rhel|rocky)'` ]; then
7373
PLATFORM='RHEL'
7474
elif [ `echo "${!OS}" | grep -E '^ubuntu'` ]; then
7575
PLATFORM='DEBIAN'
@@ -85,7 +85,7 @@ phases:
8585
- |
8686
set -v
8787
RELEASE='{{ build.OperatingSystemRelease.outputs.stdout }}'
88-
if [ `echo "${!RELEASE}" | grep -Ev '^(amzn|centos|ubuntu|rhel|rocky)'` ]; then
88+
if [ `echo "${!RELEASE}" | grep -Ev '^(amzn|ubuntu|rhel|rocky)'` ]; then
8989
echo "This component does not support '${!RELEASE}'. Failing build."
9090
exit {{ FailExitCode }}
9191
fi

0 commit comments

Comments
 (0)