Chapter 2. Installing Satellite Server
When the intended host for Satellite Server is in a disconnected environment, you can install Satellite Server by using an external computer to download an ISO image of the packages, and copying the packages to the system you want to install Satellite Server on. This method is not recommended for any other situation as ISO images might not contain the latest updates, bug fixes, and functionality.
Use the following procedures to install Satellite Server, perform the initial configuration, and import subscription manifests.
Before you continue, consider which manifests are relevant for your environment. For more information on manifests, see Managing Subscriptions in the Content Management Guide.
You cannot register Satellite Server to itself.
2.1. Downloading the Binary DVD Images Copy linkLink copied to clipboard!
Use this procedure to download the ISO images for Red Hat Enterprise Linux and Red Hat Satellite.
Procedure
- Go to Red Hat Customer Portal and log in.
- Click DOWNLOADS.
- Select Red Hat Enterprise Linux.
Ensure that you have the correct product and version for your environment.
- Product Variant is set to Red Hat Enterprise Linux Server.
- Version is set to the latest minor version of the product you plan to use as the base operating system.
- Architecture is set to the 64 bit version.
- On the Product Software tab, download the Binary DVD image for the latest Red Hat Enterprise Linux Server version.
- Click DOWNLOADS and select Red Hat Satellite.
Ensure that you have the correct product and version for your environment.
- Product Variant is set to Red Hat Satellite.
- Version is set to the latest minor version of the product you plan to use as the base operating system.
- Architecture is set to the 64 bit version.
- On the Product Software tab, download the Binary DVD image for the latest Red Hat Satellite version.
Copy the ISO files to
/var/tmpon the Satellite base operating system or other accessible storage device.scp localfile username@hostname:remotefile
# scp localfile username@hostname:remotefileCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.2. Configuring the Base Operating System with Offline Repositories Copy linkLink copied to clipboard!
Use this procedure to configure offline repositories for the Red Hat Enterprise Linux and Red Hat Satellite ISO images.
Procedure
Create a directory to serve as the mount point for the ISO file corresponding to the base operating system’s version.
mkdir /media/rhel7-server
# mkdir /media/rhel7-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow Mount the ISO image for Red Hat Enterprise Linux to the mount point.
mount -o loop rhel7-Server-DVD.iso /media/rhel7-server
# mount -o loop rhel7-Server-DVD.iso /media/rhel7-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the ISO file’s repository data file.
cp /media/rhel7-server/media.repo /etc/yum.repos.d/rhel7-server.repo
# cp /media/rhel7-server/media.repo /etc/yum.repos.d/rhel7-server.repoCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the repository data file and add the
baseurldirective.baseurl=file:///media/rhel7-server/
baseurl=file:///media/rhel7-server/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the repository has been configured.
yum repolist
# yum repolistCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a directory to serve as the mount point for the ISO file of the Satellite Server.
mkdir /media/sat6
# mkdir /media/sat6Copy to Clipboard Copied! Toggle word wrap Toggle overflow Mount the ISO image for Red Hat Satellite Server to the mount point.
mount -o loop sat6-DVD.iso /media/sat6
# mount -o loop sat6-DVD.iso /media/sat6Copy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3. Installing the Satellite Packages from the Offline Repositories Copy linkLink copied to clipboard!
Use this procedure to install the Satellite packages from the offline repositories.
Procedure
Ensure the ISO images for Red Hat Enterprise Linux Server and Red Hat Satellite are mounted:
findmnt -t iso9660
# findmnt -t iso9660Copy to Clipboard Copied! Toggle word wrap Toggle overflow Import the Red Hat GPG keys:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-releaseCopy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure the base operating system is up to date with the Binary DVD image:
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow Change to the directory where the Satellite ISO is mounted:
cd /media/sat6/
# cd /media/sat6/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Run the installation script in the mounted directory:
./install_packages
# ./install_packagesCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you have successfully installed the Satellite packages, the following message is displayed:
Install is complete. Please run satellite-installer --scenario satellite.
2.4. Resolving Package Dependency Errors Copy linkLink copied to clipboard!
If there are package dependency errors during installation of Satellite Server packages, you can resolve the errors by downloading and installing packages from Red Hat Customer Portal. For more information about resolving dependency errors, see the KCS solution How can I use the yum output to solve yum dependency errors?.
If you have successfully installed the Satellite packages, skip this procedure.
Procedure
- Go to the Red Hat Customer Portal and log in.
- Click DOWNLOADS.
- Click the Product that contains the package that you want to download.
- Ensure that you have the correct Product Variant, Version, and Architecture for your environment.
- Click the Packages tab.
- In the Search field, enter the name of the package.
- Click the package.
- From the Version list, select the version of the package.
- At the bottom of the page, click Download Now.
- Copy the package to the Satellite base operating system.
On Satellite Server, change to the directory where the package is located:
cd /path-to-package/
# cd /path-to-package/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the package locally:
yum localinstall package_name
# yum localinstall package_nameCopy to Clipboard Copied! Toggle word wrap Toggle overflow Change to the directory where the Satellite ISO is mounted:
cd /media/sat6/
# cd /media/sat6/Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that you have resoled the package dependency errors by installing the Satellite Server packages. If there are further package dependency errors, repeat this procedure.
./install_packages
# ./install_packagesCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you have successfully installed the Satellite packages, the following message is displayed:
Install is complete. Please run satellite-installer --scenario satellite.
2.5. Synchronizing the System Clock With chronyd Copy linkLink copied to clipboard!
To minimize the effects of time drift, you must synchronize the system clock on the base operating system on which you want to install Satellite Server with Network Time Protocol (NTP) servers. If the base operating system clock is configured incorrectly, certificate verification might fail.
For more information about the chrony suite, see Configuring NTP Using the chrony Suite in the Red Hat Enterprise Linux 7 System Administrator’s Guide.
Procedure
Install the
chronypackage:yum install chrony
# yum install chronyCopy to Clipboard Copied! Toggle word wrap Toggle overflow Start and enable the
chronydservice:systemctl start chronyd systemctl enable chronyd
# systemctl start chronyd # systemctl enable chronydCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.6. Installing the SOS Package on the Base Operating System Copy linkLink copied to clipboard!
Install the sos package on the base operating system so that you can collect configuration and diagnostic information from a Red Hat Enterprise Linux system. You can also use it to provide the initial system analysis, which is required when opening a service request with Red Hat Technical Support. For more information on using sos, see the Knowledgebase solution What is a sosreport and how to create one in Red Hat Enterprise Linux 4.6 and later? on the Red Hat Customer Portal.
Procedure
Install the sos package:
yum install sos
# yum install sosCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.7. Configuring Satellite Server Copy linkLink copied to clipboard!
Install Satellite Server using the satellite-installer installation script. Choose from one of the following methods:
- Section 2.7.1, “Configuring Satellite Manually”. This method is performed by running the installation script with one or more command options. The command options override the corresponding default initial configuration options and are recorded in the Satellite answer file. You can run the script as often as needed to configure any necessary options.
-
Section 2.7.2, “Configuring Satellite Automatically using an Answer File”. This method is performed by using an answer file to automate the configuration process when running the installation script. The default Satellite answer file is
/etc/foreman-installer/scenarios.d/satellite-answers.yaml. The answer file in use is set by theanswer_filedirective in the/etc/foreman-installer/scenarios.d/satellite.yamlconfiguration file.
Depending on the options that you use when running the Satellite installer, the configuration can take several minutes to complete. An administrator can view the answer file to see previously used options for both methods.
2.7.1. Configuring Satellite Manually Copy linkLink copied to clipboard!
This initial configuration procedure creates an organization, location, user name, and password. After the initial configuration, you can create additional organizations and locations if required. The initial configuration also installs MongoDB and PostgreSQL databases on the same server.
The installation process can take tens of minutes to complete. If you are connecting remotely to the system, use a utility such as screen or tmux that allows suspending and reattaching a communication session so that you can check the installation progress in case you become disconnected from the remote system. The Red Hat Knowledgebase article How to use the screen command describes installing screen; alternately see the screen manual page for more information. If you lose connection to the shell where the installation command is running, see the log at /var/log/foreman-installer/satellite.log to determine if the process completed successfully.
Considerations for Manual Configuration
-
Use the
satellite-installer --scenario satellite --helpcommand to display the available options and any default values. If you do not specify any values, the default values are used. -
Specify a meaningful value for the option:
--foreman-initial-organization. This can be your company name. An internal label that matches the value is also created and cannot be changed afterwards. If you do not specify a value, an organization called Default Organization with the label Default_Organization is created. You can rename the organization name but not the label. -
By default, all configuration files configured by the installer are managed by Puppet. When
satellite-installerruns, it overwrites any manual changes to the Puppet managed files with the initial values. By default, Satellite Server is installed with the Puppet agent running as a service. If required, you can disable Puppet agent on Satellite Server using the--puppet-runmode=noneoption. -
If you want to manage DNS files and DHCP files manually, use the
--foreman-proxy-dns-managed=falseand--foreman-proxy-dhcp-managed=falseoptions so that Puppet does not manage the files related to the respective services. For more information on how to apply custom configuration on other services, see Appendix A, Applying Custom Configuration to Red Hat Satellite.
Procedure
Enter the following command with any additional options that you want to use:
satellite-installer --scenario satellite \ --foreman-initial-organization "initial_organization_name" \ --foreman-initial-location "initial_location_name" \ --foreman-initial-admin-username admin_user_name \ --foreman-initial-admin-password admin_password
# satellite-installer --scenario satellite \ --foreman-initial-organization "initial_organization_name" \ --foreman-initial-location "initial_location_name" \ --foreman-initial-admin-username admin_user_name \ --foreman-initial-admin-password admin_passwordCopy to Clipboard Copied! Toggle word wrap Toggle overflow The script displays its progress and writes logs to
/var/log/foreman-installer/satellite.log.Unmount the ISO images:
umount /media/sat6 umount /media/rhel7-server
# umount /media/sat6 # umount /media/rhel7-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.7.2. Configuring Satellite Automatically using an Answer File Copy linkLink copied to clipboard!
You can use answer files to automate installations with customized options. The initial answer file is sparsely populated. After you run the satellite-installer script the first time, the answer file is populated with the standard parameter values for installation. You can change the configuration of Satellite Server at any time.
You should use the FQDN instead of the IP address where possible in case of network changes.
Procedure
Copy the default answer file
/etc/foreman-installer/scenarios.d/satellite-answers.yamlto a location on your local file system.cp /etc/foreman-installer/scenarios.d/satellite-answers.yaml \ /etc/foreman-installer/scenarios.d/my-answer-file.yaml
# cp /etc/foreman-installer/scenarios.d/satellite-answers.yaml \ /etc/foreman-installer/scenarios.d/my-answer-file.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
To view all of the configurable options, enter the
satellite-installer --scenario satellite --helpcommand. - Open your copy of the answer file, edit the values to suit your environment, and save the file.
Open the
/etc/foreman-installer/scenarios.d/satellite.yamlfile and edit the answer file entry to point to your custom answer file.:answer_file: /etc/foreman-installer/scenarios.d/my-answer-file.yaml
:answer_file: /etc/foreman-installer/scenarios.d/my-answer-file.yamlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Run the
satellite-installerscript.satellite-installer --scenario satellite
# satellite-installer --scenario satelliteCopy to Clipboard Copied! Toggle word wrap Toggle overflow Unmount the ISO images.
umount /media/sat6 umount /media/rhel7-server
# umount /media/sat6 # umount /media/rhel7-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.8. Enabling the Disconnected Mode Copy linkLink copied to clipboard!
Enable the disconnected mode on Satellite Server. When the disconnected mode is enabled, Satellite Server does not access the Red Hat Content Delivery Network (CDN).
Procedure
- In the Satellite web UI, navigate to Administer > Settings.
- Click the Content tab.
-
Set the
Disconnected modevalue toYes.
For CLI Users
Enter the following command on Satellite Server:
hammer settings set --name content_disconnected --value true
# hammer settings set --name content_disconnected --value trueCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.9. Importing a Subscription Manifest into Satellite Server Copy linkLink copied to clipboard!
Use the following procedure to import a Subscription Manifest into Satellite Server.
Prerequisites
- You must have a Subscription Manifest file exported from the Customer Portal. For more information, see Using Manifests in the Using Red Hat Subscription Management guide.
- Ensure that you enable the disconnected mode on your Satellite Server. For more information, see Section 2.8, “Enabling the Disconnected Mode”.
Procedure
- In the Satellite web UI, ensure the context is set to the organization you want to use.
- Navigate to Content > Subscriptions and click Manage Manifest.
- In the Manage Manifest window, click Browse.
- Navigate to the location that contains the Subscription Manifest file, then click Open. If the Manage Manifest window does not close automatically, click Close to return to the Subscriptions window.
For CLI Users
Copy the Subscription Manifest file from your client to Satellite Server:
scp ~/manifest_file.zip root@satellite.example.com:~/.
$ scp ~/manifest_file.zip root@satellite.example.com:~/.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Log in to Satellite Server as the
rootuser and import the Subscription Manifest file:hammer subscription upload \ --file ~/manifest_file.zip \ --organization "organization_name"
# hammer subscription upload \ --file ~/manifest_file.zip \ --organization "organization_name"Copy to Clipboard Copied! Toggle word wrap Toggle overflow