Last active
August 29, 2015 14:01
-
-
Save elyezer/591ea0547a85b5a66b7d to your computer and use it in GitHub Desktop.
How to install Foreman from an ISO on Amazon EC2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Subscribe and prepare repos | |
subscription-manager register --force --username=$USERNAME --password=$PASSWORD --autosubscribe | |
subscription-manager subscribe --pool=$POOLID | |
yum repolist | |
yum-config-manager --disable "*" | |
yum-config-manager --enable rhel-6-server-rpms | |
yum-config-manager --enable rhel-server-rhscl-6-beta-rpms | |
# Add the public DNS to /etc/hosts | |
vi /etc/hosts | |
# Remove Java 1.7 for now | |
rpm -e `rpm -qa | grep 1.7.0-openjdk` | |
# Mount the ISO and run the installer | |
mkdir ISO | |
mount *.iso ISO -t iso9660 -o loop | |
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release | |
cd ISO | |
./install_packages --nogpgsigs | |
katello-installer -v -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment