Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 3. Installing Satellite Server
When you install Satellite Server from a connected network, you can obtain packages and receive updates directly from the Red Hat Content Delivery Network.
You cannot register Satellite Server to itself.
Use the following procedures to install Satellite Server, perform the initial configuration, and import subscription manifests. For more information on subscription manifests, see Managing Red Hat Subscriptions in the Content Management Guide.
Note that the Satellite installation script is based on Puppet, which means that if you run the installation script more than once, it might overwrite any manual configuration changes. To avoid this and determine which future changes apply, use the --noop argument when you run the installation script. This argument ensures that no actual changes are made. Potential changes are written to /var/log/foreman-installer/satellite.log.
Files are always backed up and so you can revert any unwanted changes. For example, in the foreman-installer logs, you can see an entry similar to the following about Filebucket:
/Stage[main]/Dhcp/File[/etc/dhcp/dhcpd.conf]: Filebucketed /etc/dhcp/dhcpd.conf to puppet with sum 622d9820b8e764ab124367c68f5fa3a1
/Stage[main]/Dhcp/File[/etc/dhcp/dhcpd.conf]: Filebucketed /etc/dhcp/dhcpd.conf to puppet with sum 622d9820b8e764ab124367c68f5fa3a1
You can restore the previous file as follows:
puppet filebucket -l \ restore /etc/dhcp/dhcpd.conf 622d9820b8e764ab124367c68f5fa3a1
# puppet filebucket -l \
restore /etc/dhcp/dhcpd.conf 622d9820b8e764ab124367c68f5fa3a1
3.1. Configuring the HTTP Proxy to Connect to Red Hat CDN Link kopierenLink in die Zwischenablage kopiert!
Prerequisites
Your network gateway and the HTTP proxy must allow access to the following hosts:
| Host name | Port | Protocol |
|---|---|---|
| subscription.rhsm.redhat.com | 443 | HTTPS |
| cdn.redhat.com | 443 | HTTPS |
| *.akamaiedge.net | 443 | HTTPS |
| cert.console.redhat.com (if using Red Hat Insights) | 443 | HTTPS |
| api.access.redhat.com (if using Red Hat Insights) | 443 | HTTPS |
| cert-api.access.redhat.com (if using Red Hat Insights) | 443 | HTTPS |
Satellite Server uses SSL to communicate with the Red Hat CDN securely. Use of an SSL interception proxy interferes with this communication. These hosts must be whitelisted on the proxy.
For a list of IP addresses used by the Red Hat CDN (cdn.redhat.com), see the Knowledgebase article Public CIDR Lists for Red Hat on the Red Hat Customer Portal.
To configure the subscription-manager with the HTTP proxy, follow the procedure below.
Procedure
On Satellite Server, complete the following details in the
/etc/rhsm/rhsm.conffile:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.2. Registering to Red Hat Subscription Management Link kopierenLink in die Zwischenablage kopiert!
Registering the host to Red Hat Subscription Management enables the host to subscribe to and consume content for any subscriptions available to the user. This includes content such as Red Hat Enterprise Linux and Red Hat Satellite. For Red Hat Enterprise Linux 7, it also provides access to Red Hat Software Collections (RHSCL).
Procedure
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 registerCopy to Clipboard Copied! Toggle word wrap Toggle overflow The command displays output similar to the following:
subscription-manager register
# subscription-manager register Username: user_name Password: The system has been registered with ID: 541084ff2-44cab-4eb1-9fa1-7683431bcf9aCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.3. Attaching the Satellite Infrastructure Subscription Link kopierenLink in die Zwischenablage kopiert!
Skip this step if you have SCA enabled on Red Hat Customer Portal. There is no requirement of attaching the Red Hat Satellite Infrastructure Subscription to the Satellite Server using subscription-manager. For more information about SCA, see Simple Content Access.
After you have registered Satellite Server, you must identify your subscription Pool ID and attach an available subscription. The Red Hat Satellite Infrastructure subscription provides access to the Red Hat Satellite and Red Hat Enterprise Linux content. For Red Hat Enterprise Linux 7, it also provides access to Red Hat Software Collections (RHSCL). This is the only subscription required.
Red Hat Satellite Infrastructure is included with all subscriptions that include Satellite, formerly known as Smart Management. For more information, see Satellite Infrastructure Subscriptions MCT3718 MCT3719 in the Red Hat Knowledgebase.
Subscriptions are classified as available if they are not already attached to a system. If you are unable to find an available Satellite subscription, see the Red Hat Knowledgebase solution How do I figure out which subscriptions have been consumed by clients registered under Red Hat Subscription Manager? to run a script to see if another system is consuming your subscription.
Procedure
Identify the Pool ID of the Satellite Infrastructure subscription:
subscription-manager list --all --available --matches 'Red Hat Satellite Infrastructure Subscription'
# subscription-manager list --all --available --matches 'Red Hat Satellite Infrastructure Subscription'Copy to Clipboard Copied! Toggle word wrap Toggle overflow The command displays output similar to the following:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Make a note of the subscription Pool ID. Your subscription Pool ID is different from the example provided.
Attach the Satellite Infrastructure subscription to the base operating system that your Satellite Server is running on. If SCA is enabled on Satellite Server, you can skip this step:
subscription-manager attach --pool=pool_id
# subscription-manager attach --pool=pool_idCopy to Clipboard Copied! Toggle word wrap Toggle overflow The command displays output similar to the following:
Successfully attached a subscription for: Red Hat Satellite Infrastructure Subscription
Successfully attached a subscription for: Red Hat Satellite Infrastructure SubscriptionCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Verify that the Satellite Infrastructure subscription is attached:
subscription-manager list --consumed
# subscription-manager list --consumedCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.4. Configuring Repositories Link kopierenLink in die Zwischenablage kopiert!
Use this procedure to enable the repositories that are required to install Satellite Server. Choose from the available list which operating system and version you are installing on:
3.4.1. Red Hat Enterprise Linux 8 Link kopierenLink in die Zwischenablage kopiert!
Disable all repositories:
subscription-manager repos --disable "*"
# subscription-manager repos --disable "*"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the following repositories:
subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms \ --enable=rhel-8-for-x86_64-appstream-rpms \ --enable=satellite-6.11-for-rhel-8-x86_64-rpms \ --enable=satellite-maintenance-6.11-for-rhel-8-x86_64-rpms
# subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms \ --enable=rhel-8-for-x86_64-appstream-rpms \ --enable=satellite-6.11-for-rhel-8-x86_64-rpms \ --enable=satellite-maintenance-6.11-for-rhel-8-x86_64-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the module:
dnf module enable satellite:el8
# dnf module enable satellite:el8Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteEnablement of the module
satellite:el8warns about a conflict withpostgresql:10andruby:2.5as these modules are set to the default module versions on Red Hat Enterprise Linux 8. The modulesatellite:el8has a dependency for the modulespostgresql:12andruby:2.7that will be enabled with thesatellite:el8module. These warnings do not cause installation process failure, hence can be ignored safely. For more information about modules and lifecycle streams on Red Hat Enterprise Linux 8, see Red Hat Enterprise Linux Application Streams Life Cycle.
3.4.2. Red Hat Enterprise Linux 7 Link kopierenLink in die Zwischenablage kopiert!
Disable all repositories:
subscription-manager repos --disable "*"
# subscription-manager repos --disable "*"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the following repositories:
subscription-manager repos --enable=rhel-7-server-rpms \ --enable=rhel-server-rhscl-7-rpms \ --enable=rhel-7-server-ansible-2.9-rpms \ --enable=rhel-7-server-satellite-6.11-rpms \ --enable=rhel-7-server-satellite-maintenance-6.11-rpms
# subscription-manager repos --enable=rhel-7-server-rpms \ --enable=rhel-server-rhscl-7-rpms \ --enable=rhel-7-server-ansible-2.9-rpms \ --enable=rhel-7-server-satellite-6.11-rpms \ --enable=rhel-7-server-satellite-maintenance-6.11-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
If you are installing Satellite Server as a virtual machine hosted on Red Hat Virtualization, you must also enable the Red Hat Common repository, and install Red Hat Virtualization guest agents and drivers. For more information, see Installing the Guest Agents and Drivers on Red Hat Enterprise Linux in the Virtual Machine Management Guide.
3.5. Installing Satellite Server Packages Link kopierenLink in die Zwischenablage kopiert!
3.5.1. Red Hat Enterprise Linux 8 Link kopierenLink in die Zwischenablage kopiert!
Procedure
Update all packages:
dnf update
# dnf updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install Satellite Server packages:
dnf install satellite
# dnf install satelliteCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.5.2. Red Hat Enterprise Linux 7 Link kopierenLink in die Zwischenablage kopiert!
Update all packages:
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install Satellite Server packages:
yum install satellite
# yum install satelliteCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.6. Synchronizing the System Clock With chronyd Link kopierenLink in die Zwischenablage kopiert!
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 Using the Chrony suite to configure NTP in Red Hat Enterprise Linux 8 Configuring basic system settings, and 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
3.7. Installing the SOS Package on the Base Operating System Link kopierenLink in die Zwischenablage kopiert!
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
3.8. Configuring Satellite Server Link kopierenLink in die Zwischenablage kopiert!
Install Satellite Server using the satellite-installer installation script.
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.
Depending on the options that you use when running the Satellite installer, the configuration can take several minutes to complete.
3.8.1. Configuring Satellite Installation Link kopierenLink in die Zwischenablage kopiert!
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 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 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. 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
-
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. -
Remote Execution is the primary method of managing packages on Content Hosts. If you want to use the deprecated Katello Agent instead of Remote Execution SSH, use the
--foreman-proxy-content-enable-katello-agent=trueoption to enable it. The same option should be given on any Capsule Server as well as Satellite Server. -
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. -
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 Applying Custom Configuration to Satellite.
Procedure
Enter the following command with any additional options that you want to use:
satellite-installer --scenario satellite \ --foreman-initial-organization "My_Organization" \ --foreman-initial-location "My_Location" \ --foreman-initial-admin-username admin_user_name \ --foreman-initial-admin-password admin_password
# satellite-installer --scenario satellite \ --foreman-initial-organization "My_Organization" \ --foreman-initial-location "My_Location" \ --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.
3.9. Importing a Red Hat Subscription Manifest into Satellite Server Link kopierenLink in die Zwischenablage kopiert!
Use the following procedure to import a Red Hat subscription manifest into Satellite Server.
Prerequisites
- You must have a Red Hat subscription manifest file exported from the Customer Portal. For more information, see Creating and Managing Manifests in Using Red Hat Subscription Management.
Procedure
- In the Satellite web UI, ensure the context is set to the organization you want to use.
- In the Satellite web UI, navigate to Content > Subscriptions and click Manage Manifest.
- In the Manage Manifest window, click Browse.
- Navigate to the location that contains the Red Hat subscription manifest file, then click Open. If the Manage Manifest window does not close automatically, click Close to return to the Subscriptions window.
CLI procedure
Copy the Red Hat 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 Red Hat subscription manifest file:hammer subscription upload \ --file ~/manifest_file.zip \ --organization "My_Organization"
# hammer subscription upload \ --file ~/manifest_file.zip \ --organization "My_Organization"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
You can now enable repositories and import Red Hat content. For more information, see Importing Content in the Content Management guide.