Chapter 3. Installation Scenarios
3.1. Scenario 1: Installing Satellite with Embedded Database Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
This scenario details the steps for an Embedded Database Installation. You would use an Embedded Database Installation to contain the whole Red Hat Satellite infrastructure within a single host.
This scenario only requires a single host with Red Hat Enterprise Linux 6 installed as the operating system.
3.1.1. Downloading the Installation Media Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The Satellite 5.8 installation media is available for download from the Red Hat Customer Portal in ISO format.
Procedure 3.1. Download the Installation Media
- Log on to the Customer Portal.
- Click Downloads.
- Click Red Hat Satellite.
- Select 5.8 for RHEL 6 from the Versions drop-down list.
- Select x86_64 or s390x from the Architecture list.
- Download the Red Hat Satellite 5.8 Binary DVD.
- Depending on your preferred installation source, either copy the DVD ISO image to the Satellite host, or burn it to DVD media.
- If you will be mounting the ISO image and running the installation program from there, copy the ISO image to the Satellite host.
scp satellite.iso root@hostname:/root
# scp satellite.iso root@hostname:/root
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note
If you will be installing a Managed DB instance, also copy the ISO image to that host. - If you will be mounting a DVD and running the installation program from there, burn the DVD ISO image to DVD media.
3.1.2. Mounting the Installation Media Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Mount the disc or ISO image on the server chosen to host Red Hat Satellite.
Procedure 3.2. Mounting from a disc
- Log into the machine as
root
. - Insert the Red Hat Satellite Server CD or DVD containing the installation files.
- Red Hat Enterprise Linux might automount the disc. If so, it mounts the disc to the
/media/cdrom/
directory. If Red Hat Enterprise Linux does not automount the disc, manually mount it to the/media/cdrom/
directory with the following command:mkdir /media/cdrom mount /dev/cdrom /media/cdrom
# mkdir /media/cdrom # mount /dev/cdrom /media/cdrom
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 3.3. Mounting from an ISO image
- Log into the host as
root
. - Mount the ISO image to a location on your filesystem:
mkdir /media/cdrom mount -o loop iso_filename /media/cdrom
# mkdir /media/cdrom # mount -o loop iso_filename /media/cdrom
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The installation media is mounted at
/media/cdrom/
. Use this location to access the Red Hat Satellite installation program.
3.1.3. Generating a Manifest Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
In previous versions of Red Hat Satellite 5, details of product subscriptions and content repositories were contained in a Satellite Certificate. You downloaded the certificate from the Red Hat Customer Portal and imported it into Satellite. From Satellite 5.8, all content and subscriptions are hosted by the Red Hat Content Delivery Network (CDN), replacing Red Hat Network.
The Red Hat Customer Portal enables you to group subscriptions into multiple subscription allocations. The Red Hat CDN uses a Subscription Manifest, instead of the certificate. A Subscription Manifest is an exported file that lists the subscriptions in one subscription allocation.
Note
If you are installing multiple instances of Satellite 5.8, ensure you divide the available subscriptions amongst the individual subscription allocations. For example, if you intend running two instances of Satellite 5.8, you might divide the subscriptions equally between the two subscription allocations.
Procedure 3.4. Generate New Satellite 5.8 Manifest
- Log on to the Customer Portal and navigate to Subscriptions in the upper-left corner.
- Navigate to Subscription Allocations.
- Click New subscription allocation.
- Enter a name in the Name field, select Satellite 5.8 from the Type drop-down list, and click Create.
- Navigate to the Subscription tab and click .
- For each product to be attached to the manifest, specify the desired quantity in the Entitlements field, and click Submit. It may take several minutes for the subscriptions to be attached.
- Clickand save the manifest file locally.
- Log out of the Customer Portal.
- Access the terminal on the host to which the manifest file was downloaded.If the Satellite server is available via the network, copy the manifest file to the Satellite host. In this example, the file is copied to the
/root
directory.scp manifest_file.zip root@satellite.example.com:/root
# scp manifest_file.zip root@satellite.example.com:/root
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the Satellite server is disconnected, copy the manifest file to portable media, and on the Satellite server, copy the manifest file from the portable media.
3.1.4. Installing Behind a HTTP Proxy: Pre-Configuration (Optional) Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Note
- This section only applies to networks behind a HTTP proxy.
- Satellite does not support NTLM as a HTTP access authentication method. Only Basic access authentication, and Digest access authentication methods are supported.
The registration of the Red Hat Enterprise Linux host requires communication between itself and the Red Hat Content Delivery Network. If there is an HTTP proxy between these two, Subscription Manager must be configured with the proxy server's details, and credentials.
Edit the configuration file
/etc/rhsm/rhsm.conf
, and edit the following lines, adding details of the HTTP proxy, and credentials.
proxy_hostname = proxy_hostname proxy_port = proxy_port proxy_user = proxy_user proxy_password = proxy_password
proxy_hostname = proxy_hostname
proxy_port = proxy_port
proxy_user = proxy_user
proxy_password = proxy_password
3.1.5. Registering Host with Red Hat Content Delivery Network Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Registering the host to the Red Hat Content Delivery Network entitles it to content available via subscriptions. This includes content such as Red Hat Enterprise Linux, Red Hat Software Collections (RHSCL), and Red Hat Satellite.
Register your system with the Red Hat Content Delivery Network, entering your Customer Portal user name and password when prompted:
subscription-manager register
# subscription-manager register
The command displays output similar to the following:
The system has been registered with ID: 541084ff2-44cab-4eb1-9fa1-7683431bcf9a
The system has been registered with ID: 541084ff2-44cab-4eb1-9fa1-7683431bcf9a
3.1.6. Activating the Satellite Repositories Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
Installation of Red Hat Satellite 5.8 requires specific repositories to be enabled. The list of available repositories is determined by the subscription attached to the host. The following instructions detail how to identify and attach the required subscription, also which repositories must be enabled.
Procedure 3.5. Activate the Satellite Repositories
- List all available subscriptions, and identify the Red Hat Satellite 5 subscription.The list of available subscriptions may be long, but if you pipe the output into a pager utility, such as
less
ormore
, you can read the output one screenful at a time.subscription-manager list --all --available | less
# subscription-manager list --all --available | less
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Note thePool ID
as this is required to attach the subscription. - Attach the subscription to the host.
subscription-manager attach --pool=pool_id
# subscription-manager attach --pool=pool_id
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The output should be similar to the following:Successfully attached a subscription for: Red Hat Satellite
Successfully attached a subscription for: Red Hat Satellite
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Disable all repositories.
subscription-manager repos --disable "*"
# subscription-manager repos --disable "*"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Enable the Red Hat Enterprise Linux 6 repository. The Red Hat Satellite 5.8 repository will be enabled automatically by the installation program.For AMD64 and Intel 64
subscription-manager repos --enable=rhel-6-server-rpms
# subscription-manager repos --enable=rhel-6-server-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For IBM System zsubscription-manager repos --enable=rhel-6-for-system-z-rpms
# subscription-manager repos --enable=rhel-6-for-system-z-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.1.7. Running the Installation Program Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The following procedure starts the installation program for Red Hat Satellite with an Embedded Database. Ensure you complete this procedure as the
root
user.
Warning
The installation program updates the kernel and all required packages.
Procedure 3.6. Running Installation Program
- Run the installation program from the
/media/cdrom/
directory:./install.pl
# ./install.pl
Copy to Clipboard Copied! Toggle word wrap Toggle overflow The installation program first verifies the requirements in Chapter 2, Requirements are met before proceeding.* Starting the Red Hat Satellite installer. * Performing pre-install checks. * Pre-install checks complete. Beginning installation.
* Starting the Red Hat Satellite installer. * Performing pre-install checks. * Pre-install checks complete. Beginning installation.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - The script performs host registration with Red Hat Subscription Manager (if not already done), installs and updates all required packages, and populates the database on the Managed Database Host.If the installation program prompts with the question, "Do you want the installer to resolve dependencies [y/N]?", reply
y
(Yes).Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.1.8. Configuring the Satellite Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
The Installation Script performs some basic configuration tasks on your Red Hat Satellite environment.
The Red Hat Satellite Installer downloads and installs the Red Hat GPG key and sets up the
/root/.gnupg/
directory, if required.
* Configuring tomcat. * Setting up users and groups. ** GPG: Initializing GPG and importing key.
* Configuring tomcat.
* Setting up users and groups.
** GPG: Initializing GPG and importing key.
At the prompt, enter the email address to which you would like notifications from Red Hat Satellite to be sent. Due to the large volume of emails, choose a general email address rather than the address of an individual.
You must enter an email address. Admin Email Address? admin@example.com * Performing initial configuration.
You must enter an email address.
Admin Email Address? admin@example.com
* Performing initial configuration.
To activate Red Hat Satellite, provide the location of your manifest file, downloaded in Section 3.1.3, “Generating a Manifest”.
The next step is to create a CA certificate for SSL access. Answer
y
to the Apache SSL configuration question, then answer the CA certificate questions.
- CA cert
- Enter a password for the certificate.
- Organization
- Enter the name of your organization.
- Organization Unit
- Enter the name of your department within your organization.
- Email Address
- Enter an email address to be associated with this certificate, such as the admin email entered in the steps above.
- City
- Enter your city.
- State
- Enter your state.
- Country
- Enter your country. The country code must be exactly two letters, or the certificate generation fails. Type
?
to see a list of country codes.
After the CA certificate is created, you are asked if you want to enable the services required by Cobbler. If you will be using PXE provisioning functionality, reply
y
.
* Setting up Cobbler.. cobblerd does not appear to be running/accessible Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]?
* Setting up Cobbler..
cobblerd does not appear to be running/accessible
Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services [Y]?
After Cobbler is configured, the installation script restarts the associated services.
* Restarting services. Installation complete. Visit https://satellite.example.com to create the Red Hat Satellite administrator account.
* Restarting services.
Installation complete.
Visit https://satellite.example.com to create the Red Hat Satellite administrator account.
If you will be using Cobbler for provisioning hosts, grant Cobbler write access to the
/tftpboot
directory.
setsebool -P cobbler_anon_write on
setsebool -P cobbler_anon_write on
The Red Hat Satellite installation is now complete. Continue with the instructions in Chapter 4, Configuration.
Note
As an additional post-installation measure, perform a package update on the Satellite 5 server to ensure you are using the latest packages. For more information, see Section 12.2, “Performing Critical Updates to the Server”.