Este contenido no está disponible en el idioma seleccionado.
3.2. Scenario 2: Installing Satellite with Managed Database
- One host for the Satellite Server
- One host for the Managed Database
3.2.1. Downloading the Installation Media Copiar enlaceEnlace copiado en el portapapeles!
Procedure 3.7. 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 both the Satellite host and the Managed DB host.
scp satellite.iso root@satellite_hostname:/root scp satellite.iso root@manageddb_hostname:/root
# scp satellite.iso root@satellite_hostname:/root # scp satellite.iso root@manageddb_hostname:/rootCopy to Clipboard Copied! Toggle word wrap Toggle overflow - If you will be mounting a DVD and running the installation program from there, burn the DVD ISO image to DVD media.
3.2.2. Mounting the Installation Media Copiar enlaceEnlace copiado en el portapapeles!
Procedure 3.8. 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/cdromCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure 3.9. 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/cdromCopy to Clipboard Copied! Toggle word wrap Toggle overflow
/media/cdrom/. Use this location to access the Red Hat Satellite installation program.
3.2.3. Generating a Manifest Copiar enlaceEnlace copiado en el portapapeles!
Note
Procedure 3.10. 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.
- Click and save the manifest file locally.
- Log out of the Customer Portal.
- Access the shell prompt on the host to which the manifest file was downloaded.Copy the manifest file to the Satellite host. In this example, the file is copied to the
/rootdirectory.scp manifest_file.zip root@satellite.example.com:/root
# scp manifest_file.zip root@satellite.example.com:/rootCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2.4. Installing Behind a HTTP Proxy: Pre-Configuration (Optional) Copiar enlaceEnlace copiado en el portapapeles!
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.
/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.2.5. Registering Host with Red Hat Content Delivery Network Copiar enlaceEnlace copiado en el portapapeles!
Note
subscription-manager register
# subscription-manager register
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.2.6. Activating the Satellite Repositories Copiar enlaceEnlace copiado en el portapapeles!
Note
Procedure 3.11. 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
lessormore, you can read the output one screenful at a time.subscription-manager list --all --available | less
# subscription-manager list --all --available | lessCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note thePool IDas this is required to attach the subscription. - Attach the subscription to the host.
subscription-manager attach --pool=pool_id
# subscription-manager attach --pool=pool_idCopy 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 SatelliteCopy 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-rpmsCopy 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-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2.7. Installing the Managed Database Copiar enlaceEnlace copiado en el portapapeles!
Note
Procedure 3.12. Installing the Managed Database
- Log into the host to be used for the Managed Database as the
rootuser. - Navigate to the directory containing the Satellite installation program.
cd /media/cdrom
# cd /media/cdromCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the installation program with the
--managed-dboption../install.pl --managed-db
# ./install.pl --managed-dbCopy to Clipboard Copied! Toggle word wrap Toggle overflow - The installation program asks for the following information.
- Database name
- Database user
- Database password
- A comma-separated list of local addresses to listen. Leave blank for all addresses.
- A comma-separated list of remote addresses in address/netmask format. The Managed Database allows connections from these addresses.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2.8. Installing Satellite Copiar enlaceEnlace copiado en el portapapeles!
root user.
Warning
Procedure 3.13. Running Installation Script
- Run the installer script from the
/media/cdrom/directory:./install.pl --external-postgresql
# ./install.pl --external-postgresqlCopy 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.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2.9. Configuring the Satellite Copiar enlaceEnlace copiado en el portapapeles!
/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.
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.
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.
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]?
* Restarting services. Installation complete. Visit https://satellite.example.com to create the satellite administrator account.
* Restarting services.
Installation complete.
Visit https://satellite.example.com to create the satellite administrator account.
/tftpboot directory.
setsebool -P cobbler_anon_write on
setsebool -P cobbler_anon_write on