update templates for OCP

This commit is contained in:
Louis Abel 2023-04-10 18:11:48 -07:00
parent b20d289a5e
commit 9f18a95d63
Signed by untrusted user: label
GPG key ID: B37E62D143879B36

View file

@ -2,7 +2,7 @@
%include rocky-cloud-parts-lvm.ks
%include rocky-cloud-ocp-packages.ks
repo --name "sig-cloud-common" --baseurl=http://dl.rockylinux.org/stg/sig/9/cloud/$basearch/cloud-common/ --includepkgs="oci-utils"
repo --name "sig-cloud-common" --baseurl=http://dl.rockylinux.org/stg/sig/9/cloud/$basearch/cloud-common/ --includepkgs="oci-utils,python3-circuitbreaker,python3-daemon,python3-sdnotify,python39-oci-sdk" --cost=100
repo --name "extras" --baseurl=http://dl.rockylinux.org/stg/rocky/9/extras/$basearch/os/
repo --name=epel --cost=200 --baseurl=https://dl.fedoraproject.org/pub/epel/9/Everything/$basearch/
@ -87,6 +87,9 @@ sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
# disable cloud kernel repo as it's not needed
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/Rocky-SIG-Cloud-Kernel.repo
dnf clean all
# XXX instance type markers - MUST match Rocky Infra expectation
@ -329,6 +332,8 @@ if [ -d $DRACUT_CFG ]; then
fi
echo "$(date) - OCI initramfs network modification script done."
true
%end