Skip to content

Commit 6dabd39

Browse files
committed
USHIFT-6718: Update package sources files
1 parent 9ab49ba commit 6dabd39

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

test/kickstart-templates/includes/post-cos9rpm.cfg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ EOF
2222
# openshift-client and crio from OpenShift Mirror.
2323
# Excludes all to avoid unintentionally sourcing packages from here that
2424
# should come from a centos repos.
25-
OCPVERSION=4.REPLACE_MINOR_VERSION
25+
OCPMAJOR=REPLACE_MAJOR_VERSION
26+
OCPMINOR=REPLACE_MINOR_VERSION
27+
OCPVERSION="${OCPMAJOR}.${OCPMINOR}"
2628
OCPREPO="openshift-${OCPVERSION}-mirror"
2729
cat > "/etc/yum.repos.d/${OCPREPO}.repo" <<EOF
2830
[${OCPREPO}]
2931
name=Openshift ${OCPVERSION} Mirror
30-
baseurl="https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/dependencies/rpms/${OCPVERSION}-el9-beta/"
32+
baseurl="https://mirror.openshift.com/pub/openshift-v${OCPMAJOR}/$(uname -m)/dependencies/rpms/${OCPVERSION}-el9-beta/"
3133
gpgcheck=0
3234
enabled=1
3335
EOF

test/package-sources/rhocp-y.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{- if env.Getenv "RHOCP_MINOR_Y" "" -}}
22
id = "rhocp-y"
3-
name = "Red Hat OpenShift Container Platform 4.{{ .Env.RHOCP_MINOR_Y }} for RHEL 9"
3+
name = "Red Hat OpenShift Container Platform {{ .Env.RHOCP_MAJOR_Y }}.{{ .Env.RHOCP_MINOR_Y }} for RHEL 9"
44
type = "yum-baseurl"
5-
url = "https://cdn.redhat.com/content/dist/layered/rhel9/{{ .Env.UNAME_M }}/rhocp/4.{{ .Env.RHOCP_MINOR_Y }}/os"
5+
url = "https://cdn.redhat.com/content/dist/layered/rhel9/{{ .Env.UNAME_M }}/rhocp/{{ .Env.RHOCP_MAJOR_Y }}.{{ .Env.RHOCP_MINOR_Y }}/os"
66
# Reenable GPG check when build platform switches to RHEL 9.8
77
check_gpg = false
88
check_ssl = true

test/package-sources/rhocp-y1.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{- if env.Getenv "RHOCP_MINOR_Y1" "" -}}
22
id = "rhocp-y1"
3-
name = "Red Hat OpenShift Container Platform 4.{{ .Env.RHOCP_MINOR_Y1 }} for RHEL 9"
3+
name = "Red Hat OpenShift Container Platform {{ .Env.RHOCP_MAJOR_Y1 }}.{{ .Env.RHOCP_MINOR_Y1 }} for RHEL 9"
44
type = "yum-baseurl"
5-
url = "https://cdn.redhat.com/content/dist/layered/rhel9/{{ .Env.UNAME_M }}/rhocp/4.{{ .Env.RHOCP_MINOR_Y1 }}/os"
5+
url = "https://cdn.redhat.com/content/dist/layered/rhel9/{{ .Env.UNAME_M }}/rhocp/{{ .Env.RHOCP_MAJOR_Y1 }}.{{ .Env.RHOCP_MINOR_Y1 }}/os"
66
# Reenable GPG check when build platform switches to RHEL 9.8
77
check_gpg = false
88
check_ssl = true

test/package-sources/rhocp-y2.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{{- if env.Getenv "RHOCP_MINOR_Y2" "" -}}
22
id = "rhocp-y2"
3-
name = "Red Hat OpenShift Container Platform 4.{{ .Env.RHOCP_MINOR_Y2 }} for RHEL 9"
3+
name = "Red Hat OpenShift Container Platform {{ .Env.RHOCP_MAJOR_Y2 }}.{{ .Env.RHOCP_MINOR_Y2 }} for RHEL 9"
44
type = "yum-baseurl"
5-
url = "https://cdn.redhat.com/content/dist/layered/rhel9/{{ .Env.UNAME_M }}/rhocp/4.{{ .Env.RHOCP_MINOR_Y2 }}/os"
5+
url = "https://cdn.redhat.com/content/dist/layered/rhel9/{{ .Env.UNAME_M }}/rhocp/{{ .Env.RHOCP_MAJOR_Y2 }}.{{ .Env.RHOCP_MINOR_Y2 }}/os"
66
# Reenable GPG check when build platform switches to RHEL 9.8
77
check_gpg = false
88
check_ssl = true

0 commit comments

Comments
 (0)