Skip to content

Commit

Permalink
Updated rhel8 subscription sctipt
Browse files Browse the repository at this point in the history
  • Loading branch information
ElstonLewis committed Jan 29, 2024
1 parent 6de58f4 commit 76ed1e8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions files/cloudinit-specific/05_rhel8.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rh_subscription:
activation-key: outscale-rhel8
org: Outscale
auto-attach: true
rhsm-baseurl: 'https://rhsatellite.outscale.internal:4888/pulp/repos'
server-hostname: 'rhsatellite.outscale.internal:4888'
6 changes: 5 additions & 1 deletion scripts/linux/rhel-activation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ 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" == "rhel8csp" ]] && [[ "$1" == "rhel9csp" ]]; then
if [[ "$1" == "rhel8csp" ]]; then
cp /tmp/cloudinit-specific/05_rhel8.cfg /mnt/etc/cloud/cloud.cfg.d/
fi

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

0 comments on commit 76ed1e8

Please sign in to comment.