Skip to content

Instantly share code, notes, and snippets.

@elyezer
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elyezer/591ea0547a85b5a66b7d to your computer and use it in GitHub Desktop.
Save elyezer/591ea0547a85b5a66b7d to your computer and use it in GitHub Desktop.
How to install Foreman from an ISO on Amazon EC2
# 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