From f8a015b1da713146ae53e28070d4a4eab14bc43a Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: May 17 2023 11:44:35 +0000 Subject: Added snippet doc about internal RHEL mirror tree refresh Signed-off-by: Fabian Arrotin --- diff --git a/docs/operations/intro.md b/docs/operations/intro.md index cda1b51..e13edb8 100644 --- a/docs/operations/intro.md +++ b/docs/operations/intro.md @@ -20,6 +20,32 @@ We point to an internal mirror for deployments and also use some TLS certs (subs Deployed and maintained versions (in ansible roles and repositories) : * RHEL 8 + * RHEL 9 !!! note - See internal ansible inventory `group_vars/all` doc/notes/snippet around the `rhel_*` variables about how to use this, not covered in public documentation for obvious easons + See internal ansible inventory `group_vars/all` doc/notes/snippet around the `rhel_*` variables about how to use this, not covered in public documentation for obvious reasons + +#### Refreshing RHEL mirror content for new major.minor releases +On the deployment mirrors that host installable trees for RHEL deployment (pxe based, through ansible) we need to manually refresh the content when there is a new major.minor release. +One has just to connect on such mirrors and call (as root), the distributed script `/usr/libexec/centos/pull_rhel_iso` + +That script needs some parameters so you'll need to connect to https://access.redhat.com with a valid user and then feed needed information to be able to download .iso for each arch/release : + +``` +/usr/libexec/centos/pull_rhel_iso + +This script will let you create installable tree for RHEL deployments +You'll need first to login to access.redhat.com to retrieve temporary download links for iso images +You need to call the script like this : /usr/libexec/centos/pull_rhel_iso -arguments + + -i : full path to iso image (required, default:none, don't forget to quote it) + -v : RHEL version (required , default:none, example "8.5") + -a : RHEL architecture for .iso + -c : iso checksum from access.redhat.com for .iso (required , default:none, ) + -h : display this help + +``` +#### Keeping internal mirror up2date for RHEL +In the centos infra, we can either use internal mirror (to speed up updates accross internal fleet) or just use the classical Red Hat CDN. It's all defined through ansible (see note before about group_vars/host_vars) +The internal mirrors have distributed script/template that would fetch/reposync repositories for all used versions/releases/architectures +