Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added RHEL8 script #62

Merged
merged 1 commit into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions scripts/base/rhel8.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
set -e

#### BASIC IMAGE
yum install -y wget qemu-img libgcrypt
cd /tmp
wget -q https://oos.eu-west-2.outscale.com/omi/qcow/rhel-8.4-x86_64-kvm.qcow2
mv *.qcow2 rhel8.qcow2
qemu-img convert ./rhel8.qcow2 -O raw /dev/sda
2 changes: 1 addition & 1 deletion scripts/linux/rhel-activation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ "$1" == "rhel"*"csp" ]]; then
curl -k --output /mnt/tmp/katello-ca-consumer-latest.noarch.rpm https://169.254.169.254:4888/pub/katello-ca-consumer-latest.noarch.rpm
chroot /mnt yum localinstall -y /tmp/katello-ca-consumer-latest.noarch.rpm

if [[ "$1" == "rhel9csp" ]]; then
if [[ "$1" == "rhel8csp" ]] && [[ "$1" == "rhel9csp" ]]; then
cp /tmp/cloudinit-specific/05_rhel9.cfg /mnt/etc/cloud/cloud.cfg.d/
fi
fi
Loading