Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 4. Performing Additional Configuration on Satellite Server
4.1. Using Red Hat Insights with Satellite Server Link kopierenLink in die Zwischenablage kopiert!
You can use Red Hat Insights to diagnose systems and downtime related to security exploits, performance degradation and stability failures. You can use the dashboard to quickly identify key risks to stability, security, and performance. You can sort by category, view details of the impact and resolution, and then determine what systems are affected.
Note that you do not require a Red Hat Insights entitlement in your subscription manifest. For more information about Satellite and Red Hat Insights, see Red Hat Insights on Satellite Red Hat Enterprise Linux (RHEL).
To maintain your Satellite Server, and improve your ability to monitor and diagnose problems you might have with Satellite, install Red Hat Insights on Satellite Server and register Satellite Server with Red Hat Insights.
Scheduling insights-client
Note that you can change the default schedule for running insights-client by configuring insights-client.timer on Satellite. For more information, see Changing the insights-client schedule in the Client Configuration Guide for Red Hat Insights.
Procedure
To install Red Hat Insights on Satellite Server, enter the following command:
satellite-maintain packages install insights-client
# satellite-maintain packages install insights-clientCopy to Clipboard Copied! Toggle word wrap Toggle overflow To register Satellite Server with Red Hat Insights, enter the following command:
satellite-installer --register-with-insights
# satellite-installer --register-with-insightsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.2. Disabling Registration to Red Hat Insights Link kopierenLink in die Zwischenablage kopiert!
After you install or upgrade Satellite, you can choose to unregister or register Red Hat Insights as needed. For example, if you need to use Satellite in a disconnected environment, you can unregister insights-client from Satellite Server.
Prerequisites
- You have registered Satellite to Red Hat Customer Portal.
Procedure
Optional: To unregister Red Hat Insights from Satellite Server, enter the following command:
insights-client --unregister
# insights-client --unregisterCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: To register Satellite Server with Red Hat Insights, enter the following command:
satellite-installer --register-with-insights
# satellite-installer --register-with-insightsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.3. Enabling the Satellite Client 6 Repository Link kopierenLink in die Zwischenablage kopiert!
The Satellite Client 6 repository provides the katello-agent, katello-host-tools, and puppet packages for clients registered to Satellite Server. You must enable the repository for each Red Hat Enterprise Linux version that you need to manage hosts. Continue with a procedure below according to the operating system version for which you want to enable the Satellite Client 6 repository.
4.3.1. Red Hat Enterprise Linux 9 & Red Hat Enterprise Linux 8 Link kopierenLink in die Zwischenablage kopiert!
To use the CLI instead of the Satellite web UI, see the procedure relevant for your Red Hat Enterprise Linux version:
Procedure
- In the Satellite web UI, navigate to Content > Red Hat Repositories.
- In the Available Repositories pane, enable the Recommended Repositories to get the list of repositories.
- Click Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) or Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs) to expand the repository set.
For the x86_64 architecture, click the + icon to enable the repository.
If the Satellite Client 6 items are not visible, it may be because they are not included in the Red Hat Subscription Manifest obtained from the Customer Portal. To correct that, log in to the Customer Portal, add these repositories, download the Red Hat Subscription Manifest and import it into Satellite. For more information, see Managing Red Hat Subscriptions in Managing Content.
Enable the Satellite Client 6 repository for every supported major version of Red Hat Enterprise Linux running on your hosts. After enabling a Red Hat repository, a Product for this repository is automatically created.
CLI procedure for Red Hat Enterprise Linux 9
Enable the Satellite Client 6 repository using the
hammer repository-set enablecommand:hammer repository-set enable \ --basearch="x86_64" \ --name "Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs)" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux for x86_64"
# hammer repository-set enable \ --basearch="x86_64" \ --name "Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs)" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux for x86_64"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
CLI procedure for Red Hat Enterprise Linux 8
Enable the Satellite Client 6 repository using the
hammer repository-set enablecommand:hammer repository-set enable \ --basearch="x86_64" \ --name "Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs)" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux for x86_64"
# hammer repository-set enable \ --basearch="x86_64" \ --name "Red Hat Satellite Client 6 for RHEL 8 x86_64 (RPMs)" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux for x86_64"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.3.2. Red Hat Enterprise Linux 7 & Red Hat Enterprise Linux 6 Link kopierenLink in die Zwischenablage kopiert!
You require Red Hat Enterprise Linux Extended Life Cycle Support (ELS) Add-on subscription to enable the repositories of Red Hat Enterprise Linux 6. For more information, see Red Hat Enterprise Linux Extended Life Cycle Support (ELS) Add-on guide.
To use the CLI instead of the Satellite web UI, see the procedure relevant for your Red Hat Enterprise Linux version:
Procedure
- In the Satellite web UI, navigate to Content > Red Hat Repositories.
- In the Available Repositories pane, enable the Recommended Repositories to get the list of repositories.
In the Available Repositories pane, click on Satellite Client 6 (for RHEL 7 Server) (RPMs) or Satellite Client 6 (for RHEL 6 Server - ELS) (RPMs) to expand the repository set.
If the Satellite Client 6 items are not visible, it may be because they are not included in the Red Hat Subscription Manifest obtained from the Customer Portal. To correct that, log in to the Customer Portal, add these repositories, download the Red Hat Subscription Manifest and import it into Satellite. For more information, see Managing Red Hat Subscriptions in Managing Content.
- For the x86_64 architecture, click the + icon to enable the repository. Enable the Satellite Client 6 repository for every supported major version of Red Hat Enterprise Linux running on your hosts. After enabling a Red Hat repository, a Product for this repository is automatically created.
CLI procedure for Red Hat Enterprise Linux 7
Enable the Satellite Client 6 repository using the
hammer repository-set enablecommand:hammer repository-set enable \ --basearch="x86_64" \ --name "Red Hat Satellite Client 6 (for RHEL 7 Server) (RPMs)" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux Server"
# hammer repository-set enable \ --basearch="x86_64" \ --name "Red Hat Satellite Client 6 (for RHEL 7 Server) (RPMs)" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux Server"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
CLI procedure for Red Hat Enterprise Linux 6
Enable the Satellite Client 6 repository using the
hammer repository-set enablecommand:hammer repository-set enable \ --basearch="x86_64" \ --name "Red Hat Satellite Client 6 (for RHEL 6 Server - ELS) (RPMs)" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux Server - Extended Life Cycle Support"
# hammer repository-set enable \ --basearch="x86_64" \ --name "Red Hat Satellite Client 6 (for RHEL 6 Server - ELS) (RPMs)" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux Server - Extended Life Cycle Support"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.4. Synchronizing the Satellite Client 6 Repository Link kopierenLink in die Zwischenablage kopiert!
Use this section to synchronize the Satellite Client 6 repository from the Red Hat Content Delivery Network (CDN) to your Satellite. This repository provides the katello-agent, katello-host-tools, and puppet packages for clients registered to Satellite Server. Continue with a procedure below according to the operating system version for which you want to synchronize the Satellite Client 6 repository.
4.4.1. Red Hat Enterprise Linux 9 & Red Hat Enterprise Linux 8 Link kopierenLink in die Zwischenablage kopiert!
To use the CLI instead of the Satellite web UI, see the procedure relevant for your Red Hat Enterprise Linux version:
Procedure
- In the Satellite web UI, navigate to Content > Sync Status.
- Click the arrow next to the Red Hat Enterprise Linux for x86_64 product to view available content.
- Select Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs or Red Hat Satellite Client 6 for RHEL 8 x86_64 RPMs whichever is applicable.
- Click Synchronize Now.
CLI procedure for Red Hat Enterprise Linux 9
Synchronize your Satellite Client 6 repository using the
hammer repository synchronizecommand:hammer repository synchronize \ --name "Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux for x86_64"
# hammer repository synchronize \ --name "Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux for x86_64"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
CLI procedure for Red Hat Enterprise Linux 8
Synchronize your Satellite Client 6 repository using the
hammer repository synchronizecommand:hammer repository synchronize \ --name "Red Hat Satellite Client 6 for RHEL 8 x86_64 RPMs" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux for x86_64"
# hammer repository synchronize \ --name "Red Hat Satellite Client 6 for RHEL 8 x86_64 RPMs" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux for x86_64"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.4.2. Red Hat Enterprise Linux 7 & Red Hat Enterprise Linux 6 Link kopierenLink in die Zwischenablage kopiert!
You require Red Hat Enterprise Linux Extended Life Cycle Support (ELS) Add-on subscription to synchronize the repositories of Red Hat Enterprise Linux 6. For more information, see Red Hat Enterprise Linux Extended Life Cycle Support (ELS) Add-on guide.
To use the CLI instead of the Satellite web UI, see the procedure relevant for your Red Hat Enterprise Linux version:
Procedure
- In the Satellite web UI, navigate to Content > Sync Status.
- Click the arrow next to the Red Hat Enterprise Linux Server or Red Hat Enterprise Linux Server - Extended Life Cycle Support whichever product is applicable to view available content.
- Select Red Hat Satellite Client 6 (for RHEL 7 Server) RPMs x86_64 or Red Hat Satellite Client 6 for RHEL 6 Server - ELS RPMs x86_64 based on your operating system version.
- Click Synchronize Now.
CLI procedure for Red Hat Enterprise Linux 7
Synchronize your Satellite Client 6 repository using the
hammer repository synchronizecommand:hammer repository synchronize \ --async \ --name "Red Hat Satellite Client 6 for RHEL 7 Server RPMs x86_64" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux Server"
# hammer repository synchronize \ --async \ --name "Red Hat Satellite Client 6 for RHEL 7 Server RPMs x86_64" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux Server"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
CLI procedure for Red Hat Enterprise Linux 6
Synchronize your Satellite Client 6 repository using the
hammer repository synchronizecommand:hammer repository synchronize \ --async \ --name "Red Hat Satellite Client 6 for RHEL 6 Server - ELS RPMs x86_64" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux Server - Extended Life Cycle Support"
# hammer repository synchronize \ --async \ --name "Red Hat Satellite Client 6 for RHEL 6 Server - ELS RPMs x86_64" \ --organization "My_Organization" \ --product "Red Hat Enterprise Linux Server - Extended Life Cycle Support"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.5. Configuring Satellite for UEFI HTTP Boot Provisioning in an IPv6 Network Link kopierenLink in die Zwischenablage kopiert!
Use this procedure to configure Satellite to provision hosts in an IPv6 network with UEFI HTTP Boot provisioning.
Prerequisites
- Ensure that your clients can access DHCP and HTTP servers.
- Ensure that the UDP ports 67 and 68 are accessible by clients so clients can send DHCP requests and receive DHCP offers.
- Ensure that the TCP port 8000 is open for clients to download files and Kickstart templates from Satellite and Capsules.
- Ensure that the host provisioning interface subnet has an HTTP Boot Capsule, and Templates Capsule set. For more information, see Adding a Subnet to Satellite Server in the Provisioning guide.
- In the Satellite web UI, navigate to Administer > Settings > Provisioning and ensure that the Token duration setting is not set to 0. Satellite cannot identify clients that are booting from the network by a remote IPv6 address because of unmanaged DHCPv6 service, therefore provisioning tokens must be enabled.
Procedure
- You must disable DHCP management in the installer or not use it.
- For all IPv6 subnets created in Satellite, set the DHCP Capsule to blank.
- Optional: If the host and the DHCP server are separated by a router, configure the DHCP relay agent and point to the DHCP server.
On Satellite or Capsule from which you provision, update the
grub2-efipackage to the latest version:satellite-maintain packages update grub2-efi
# satellite-maintain packages update grub2-efiCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Synchronize the Red Hat Enterprise Linux 8 kickstart repository.
4.6. Configuring Satellite Server with an HTTP Proxy Link kopierenLink in die Zwischenablage kopiert!
Use the following procedures to configure Satellite with an HTTP proxy.
4.6.1. Adding a Default HTTP Proxy to Satellite Link kopierenLink in die Zwischenablage kopiert!
If your network uses an HTTP Proxy, you can configure Satellite Server to use an HTTP proxy for requests to the Red Hat Content Delivery Network (CDN) or another content source. Use the FQDN instead of the IP address where possible to avoid losing connectivity because of network changes.
The following procedure configures a proxy only for downloading content for Satellite. To use the CLI instead of the Satellite web UI, see the CLI procedure.
Procedure
- In the Satellite web UI, navigate to Infrastructure > HTTP Proxies.
- Click New HTTP Proxy.
- In the Name field, enter the name for the HTTP proxy.
-
In the Url field, enter the URL of the HTTP proxy in the following format:
https://proxy.example.com:8080. - Optional: If authentication is required, in the Username field, enter the username to authenticate with.
- Optional: If authentication is required, in the Password field, enter the password to authenticate with.
- To test connection to the proxy, click the Test Connection button.
- Click Submit.
- In the Satellite web UI, navigate to Administer > Settings, and click the Content tab.
- Set the Default HTTP Proxy setting to the created HTTP proxy.
CLI procedure
Verify that the
http_proxy,https_proxy, andno_proxyvariables are not set.unset http_proxy unset https_proxy unset no_proxy
# unset http_proxy # unset https_proxy # unset no_proxyCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add an HTTP proxy entry to Satellite:
hammer http-proxy create --name=myproxy \ --url http://myproxy.example.com:8080 \ --username=proxy_username \ --password=proxy_password
# hammer http-proxy create --name=myproxy \ --url http://myproxy.example.com:8080 \ --username=proxy_username \ --password=proxy_passwordCopy to Clipboard Copied! Toggle word wrap Toggle overflow Configure Satellite to use this HTTP proxy by default:
hammer settings set --name=content_default_http_proxy --value=myproxy
# hammer settings set --name=content_default_http_proxy --value=myproxyCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.6.2. Configuring SELinux to Ensure Access to Satellite on Custom Ports Link kopierenLink in die Zwischenablage kopiert!
SELinux ensures access of Red Hat Satellite and Subscription Manager only to specific ports. In the case of the HTTP cache, the TCP ports are 8080, 8118, 8123, and 10001 – 10010. If you use a port that does not have SELinux type http_cache_port_t, complete the following steps.
Procedure
On Satellite, to verify the ports that are permitted by SELinux for the HTTP cache, enter a command as follows:
semanage port -l | grep http_cache
# semanage port -l | grep http_cache http_cache_port_t tcp 8080, 8118, 8123, 10001-10010 [output truncated]Copy to Clipboard Copied! Toggle word wrap Toggle overflow To configure SELinux to permit a port for the HTTP cache, for example 8088, enter a command as follows:
semanage port -a -t http_cache_port_t -p tcp 8088
# semanage port -a -t http_cache_port_t -p tcp 8088Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.6.3. Using an HTTP Proxy for all Satellite HTTP Requests Link kopierenLink in die Zwischenablage kopiert!
If your Satellite Server must remain behind a firewall that blocks HTTP and HTTPS, you can configure a proxy for communication with external systems, including compute resources.
Note that if you are using compute resources for provisioning, and you want to use a different HTTP proxy with the compute resources, the proxy that you set for all Satellite communication takes precedence over the proxies that you set for compute resources.
Procedure
- In the Satellite web UI, navigate to Administer > Settings.
- In the HTTP(S) proxy row, select the adjacent Value column and enter the proxy URL.
- Click the tick icon to save your changes.
CLI procedure
Enter the following command:
hammer settings set --name=http_proxy --value=Proxy_URL
# hammer settings set --name=http_proxy --value=Proxy_URLCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.6.4. Excluding Hosts from Receiving Proxied Requests Link kopierenLink in die Zwischenablage kopiert!
If you use an HTTP Proxy for all Satellite HTTP or HTTPS requests, you can prevent certain hosts from communicating through the proxy.
Procedure
- In the Satellite web UI, navigate to Administer > Settings.
- In the HTTP(S) proxy except hosts row, select the adjacent Value column and enter the names of one or more hosts that you want to exclude from proxy requests.
- Click the tick icon to save your changes.
CLI procedure
Enter the following command:
hammer settings set --name=http_proxy_except_list --value=[hostname1.hostname2...]
# hammer settings set --name=http_proxy_except_list --value=[hostname1.hostname2...]Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.6.5. Resetting the HTTP Proxy Link kopierenLink in die Zwischenablage kopiert!
If you want to reset the current HTTP proxy setting, unset the Default HTTP Proxy setting.
Procedure
- In the Satellite web UI, navigate to Administer > Settings, and click the Content tab.
- Set the Default HTTP Proxy setting to no global default.
CLI procedure
Set the
content_default_http_proxysetting to an empty string:hammer settings set --name=content_default_http_proxy --value=""
# hammer settings set --name=content_default_http_proxy --value=""Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.7. Enabling Power Management on Managed Hosts Link kopierenLink in die Zwischenablage kopiert!
To perform power management tasks on managed hosts using the intelligent platform management interface (IPMI) or a similar protocol, you must enable the baseboard management controller (BMC) module on Satellite Server.
Prerequisites
- All managed hosts must have a network interface of BMC type. Satellite Server uses this NIC to pass the appropriate credentials to the host. For more information, see Adding a Baseboard Management Controller (BMC) Interface in the Managing Hosts guide.
Procedure
To enable BMC, enter the following command:
satellite-installer --foreman-proxy-bmc "true" \ --foreman-proxy-bmc-default-provider "freeipmi"
# satellite-installer --foreman-proxy-bmc "true" \ --foreman-proxy-bmc-default-provider "freeipmi"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.8. Configuring DNS, DHCP, and TFTP on Satellite Server Link kopierenLink in die Zwischenablage kopiert!
To configure the DNS, DHCP, and TFTP services on Satellite Server, use the satellite-installer command with the options appropriate for your environment. To view a complete list of configurable options, enter the satellite-installer --scenario satellite --help command.
Any changes to the settings require entering the satellite-installer command again. You can enter the command multiple times and each time it updates all configuration files with the changed values.
To use external DNS, DHCP, and TFTP services instead, see Chapter 5, Configuring Satellite Server with External Services.
Adding Multihomed DHCP details
If you want to use Multihomed DHCP, you must inform the installer.
Prerequisites
Ensure that the following information is available to you:
- DHCP IP address ranges
- DHCP gateway IP address
- DHCP nameserver IP address
- DNS information
- TFTP server name
- Use the FQDN instead of the IP address where possible in case of network changes.
- Contact your network administrator to ensure that you have the correct settings.
Procedure
Enter the
satellite-installercommand with the options appropriate for your environment. The following example shows configuring full provisioning services:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
You can monitor the progress of the satellite-installer command displayed in your prompt. You can view the logs in /var/log/foreman-installer/satellite.log. You can view the settings used, including the initial_admin_password parameter, in the /etc/foreman-installer/scenarios.d/satellite-answers.yaml file.
For more information about configuring DHCP, DNS, and TFTP services, see Configuring Network Services in the Provisioning guide.
4.9. Disabling DNS, DHCP, and TFTP for Unmanaged Networks Link kopierenLink in die Zwischenablage kopiert!
If you want to manage TFTP, DHCP, and DNS services manually, you must prevent Satellite from maintaining these services on the operating system and disable orchestration to avoid DHCP and DNS validation errors. However, Satellite does not remove the back-end services on the operating system.
Procedure
On Satellite Server, enter the following command:
satellite-installer --foreman-proxy-dhcp false \ --foreman-proxy-dns false \ --foreman-proxy-tftp false
# satellite-installer --foreman-proxy-dhcp false \ --foreman-proxy-dns false \ --foreman-proxy-tftp falseCopy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Satellite web UI, navigate to Infrastructure > Subnets and select a subnet.
- Click the Capsules tab and clear the DHCP Capsule, TFTP Capsule, and Reverse DNS Capsule fields.
- In the Satellite web UI, navigate to Infrastructure > Domains and select a domain.
- Clear the DNS Capsule field.
Optional: If you use a DHCP service supplied by a third party, configure your DHCP server to pass the following options:
Option 66: IP address of Satellite or Capsule Option 67: /pxelinux.0
Option 66: IP address of Satellite or Capsule Option 67: /pxelinux.0Copy to Clipboard Copied! Toggle word wrap Toggle overflow For more information about DHCP options, see RFC 2132.
Satellite does not perform orchestration when a Capsule is not set for a given subnet and domain. When enabling or disabling Capsule associations, orchestration commands for existing hosts can fail if the expected records and configuration files are not present. When associating a Capsule to turn orchestration on, ensure the required DHCP and DNS records as well as the TFTP files are in place for the existing Satellite hosts in order to prevent host deletion failures in the future.
4.10. Configuring Satellite Server for Outgoing Emails Link kopierenLink in die Zwischenablage kopiert!
To send email messages from Satellite Server, you can use either an SMTP server, or the sendmail command.
Prerequisite
-
Some SMTP servers with anti-spam protection or grey-listing features are known to cause problems. To setup outgoing email with such a service either install and configure a vanilla SMTP service on Satellite Server for relay or use the
sendmailcommand instead.
Procedure
- In the Satellite web UI, navigate to Administer > Settings.
Click the Email tab and set the configuration options to match your preferred delivery method. The changes have an immediate effect.
The following example shows the configuration options for using an SMTP server:
Expand Table 4.1. Using an SMTP server as a delivery method Name Example value Delivery method
SMTP
SMTP address
smtp.example.com
SMTP authentication
login
SMTP HELO/EHLO domain
example.com
SMTP password
password
SMTP port
25
SMTP username
user@example.com
The
SMTP usernameandSMTP passwordspecify the login credentials for the SMTP server.The following example uses gmail.com as an SMTP server:
Expand Table 4.2. Using gmail.com as an SMTP server Name Example value Delivery method
SMTP
SMTP address
smtp.gmail.com
SMTP authentication
plain
SMTP HELO/EHLO domain
smtp.gmail.com
SMTP enable StartTLS auto
Yes
SMTP password
password
SMTP port
587
SMTP username
user@gmail.com
The following example uses the
sendmailcommand as a delivery method:Expand Table 4.3. Using sendmail as a delivery method Name Example value Delivery method
Sendmail
Sendmail location
/usr/sbin/sendmail
Sendmail arguments
-i
For security reasons, both Sendmail location and Sendmail argument settings are read-only and can be only set in
/etc/foreman/settings.yaml. Both settings currently cannot be set viasatellite-installer. For more information see the sendmail 1 man page.
If you decide to send email using an SMTP server which uses TLS authentication, also perform one of the following steps:
Mark the CA certificate of the SMTP server as trusted. To do so, execute the following commands on Satellite Server:
cp mailca.crt /etc/pki/ca-trust/source/anchors/ update-ca-trust enable update-ca-trust
# cp mailca.crt /etc/pki/ca-trust/source/anchors/ # update-ca-trust enable # update-ca-trustCopy to Clipboard Copied! Toggle word wrap Toggle overflow Where
mailca.crtis the CA certificate of the SMTP server.-
Alternatively, in the Satellite web UI, set the
SMTP enable StartTLS autooption toNo.
-
Click Test email to send a test message to the user’s email address to confirm the configuration is working. If a message fails to send, the Satellite web UI displays an error. See the log at
/var/log/foreman/production.logfor further details.
For information on configuring email notifications for individual users or user groups, see Configuring Email Notifications in Administering Red Hat Satellite.
4.11. Configuring an Alternate CNAME for Satellite Link kopierenLink in die Zwischenablage kopiert!
You can configure an alternate CNAME for Satellite. This might be useful if you want to deploy the Satellite web interface on a different domain name than the one that is used by client systems to connect to Satellite. You must plan the alternate CNAME configuration in advance prior to installing Capsules and registering hosts to Satellite to avoid redeploying new certificates to hosts.
4.11.1. Configuring Satellite with an Alternate CNAME Link kopierenLink in die Zwischenablage kopiert!
Use this procedure to configure Satellite with an alternate CNAME. Note that the procedures for users of a default Satellite certificate and custom certificate differ.
For Default Satellite Certificate Users
If you have installed Satellite with a default Satellite certificate and want to configure Satellite with an alternate CNAME, enter the following command on Satellite to generate a new default Satellite SSL certificate with an additional CNAME.
satellite-installer --certs-cname alternate_fqdn --certs-update-server
# satellite-installer --certs-cname alternate_fqdn --certs-update-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
If you have not installed Satellite, you can add the
--certs-cname alternate_fqdnoption to thesatellite-installercommand to install Satellite with an alternate CNAME.
For Custom Certificate Users
If you use Satellite with a custom certificate, when creating a custom certificate, include the alternate CNAME records to the custom certificate. For more information, see Creating a Custom SSL Certificate for Satellite Server.
4.11.2. Configuring Hosts to Use an Alternate Satellite CNAME for Content Management Link kopierenLink in die Zwischenablage kopiert!
If Satellite is configured with an alternate CNAME, you can configure hosts to use the alternate Satellite CNAME for content management. To do this, you must point hosts to the alternate Satellite CNAME prior to registering the hosts to Satellite. You can do this using the bootstrap script or manually.
Configuring Hosts with the bootstrap Script
On the host, run the bootstrap script with the --server alternate_fqdn.example.com option to register the host to the alternate Satellite CNAME:
./bootstrap.py --server alternate_fqdn.example.com
# ./bootstrap.py --server alternate_fqdn.example.com
Configuring Hosts Manually
On the host, edit the /etc/rhsm/rhsm.conf file to update hostname and baseurl settings to point to the alternate host name, for example:
Now you can register the host with the subscription-manager.
4.12. Configuring Satellite Server with a Custom SSL Certificate Link kopierenLink in die Zwischenablage kopiert!
By default, Red Hat Satellite uses a self-signed SSL certificate to enable encrypted communications between Satellite Server, external Capsule Servers, and all hosts. If you cannot use a Satellite self-signed certificate, you can configure Satellite Server to use an SSL certificate signed by an external certificate authority (CA).
When you configure Red Hat Satellite with custom SSL certificates, you must fulfill the following requirements:
- You must use the privacy-enhanced mail (PEM) encoding for the SSL certificates.
- You must not use the same SSL certificate for both Satellite Server and Capsule Server.
- The same CA must sign certificates for Satellite Server and Capsule Server.
- An SSL certificate must not also be a CA certificate.
- An SSL certificate must include a subject alt name (SAN) entry that matches the common name (CN).
- An SSL certificate must be allowed for Key Encipherment using a Key Usage extension.
- An SSL certificate must not have a shortname as the CN.
- You must not set a passphrase for the private key.
To configure your Satellite Server with a custom certificate, complete the following procedures:
- Section 4.12.1, “Creating a Custom SSL Certificate for Satellite Server”
- Section 4.12.2, “Deploying a Custom SSL Certificate to Satellite Server”
- Section 4.12.3, “Deploying a Custom SSL Certificate to Hosts”
- If you have external Capsule Servers registered to Satellite Server, configure them with custom SSL certificates. For more information, see Configuring Capsule Server with a Custom SSL Certificate in Installing Capsule Server.
4.12.1. Creating a Custom SSL Certificate for Satellite Server Link kopierenLink in die Zwischenablage kopiert!
Use this procedure to create a custom SSL certificate for Satellite Server. If you already have a custom SSL certificate for Satellite Server, skip this procedure.
Procedure
To store all the source certificate files, create a directory that is accessible only to the
rootuser:mkdir /root/satellite_cert
# mkdir /root/satellite_certCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create a private key with which to sign the certificate signing request (CSR).
Note that the private key must be unencrypted. If you use a password-protected private key, remove the private key password.
If you already have a private key for this Satellite Server, skip this step.
openssl genrsa -out /root/satellite_cert/satellite_cert_key.pem 4096
# openssl genrsa -out /root/satellite_cert/satellite_cert_key.pem 4096Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the
/root/satellite_cert/openssl.cnfconfiguration file for the CSR and include the following content:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Generate CSR:
openssl req -new \ -key /root/satellite_cert/satellite_cert_key.pem \ -config /root/satellite_cert/openssl.cnf \ -out /root/satellite_cert/satellite_cert_csr.pem
# openssl req -new \ -key /root/satellite_cert/satellite_cert_key.pem \1 -config /root/satellite_cert/openssl.cnf \2 -out /root/satellite_cert/satellite_cert_csr.pem3 Copy to Clipboard Copied! Toggle word wrap Toggle overflow Send the certificate signing request to the certificate authority (CA). The same CA must sign certificates for Satellite Server and Capsule Server.
When you submit the request, specify the lifespan of the certificate. The method for sending the certificate request varies, so consult the CA for the preferred method. In response to the request, you can expect to receive a CA bundle and a signed certificate, in separate files.
4.12.2. Deploying a Custom SSL Certificate to Satellite Server Link kopierenLink in die Zwischenablage kopiert!
Use this procedure to configure your Satellite Server to use a custom SSL certificate signed by a Certificate Authority. The katello-certs-check command validates the input certificate files and returns the commands necessary to deploy a custom SSL certificate to Satellite Server.
Do not store the SSL certificates or .tar bundles in /tmp or /var/tmp directory. The operating system removes files from these directories periodically. As a result, satellite-installer fails to execute while enabling features or upgrading Satellite Server.
Procedure
Validate the custom SSL certificate input files. Note that for the
katello-certs-checkcommand to work correctly, Common Name (CN) in the certificate must match the FQDN of Satellite Server.katello-certs-check \ -c /root/satellite_cert/satellite_cert.pem \ -k /root/satellite_cert/satellite_cert_key.pem \ -b /root/satellite_cert/ca_cert_bundle.pem
# katello-certs-check \ -c /root/satellite_cert/satellite_cert.pem \1 -k /root/satellite_cert/satellite_cert_key.pem \2 -b /root/satellite_cert/ca_cert_bundle.pem3 Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the command is successful, it returns two
satellite-installercommands, one of which you must use to deploy a certificate to Satellite Server.Example output of
katello-certs-checkCopy to Clipboard Copied! Toggle word wrap Toggle overflow Note that you must not access or modify
/root/ssl-build.From the output of the
katello-certs-checkcommand, depending on your requirements, enter thesatellite-installercommand that installs a new Satellite with custom SSL certificates or updates certificates on a currently running Satellite.If you are unsure which command to run, you can verify that Satellite is installed by checking if the file
/etc/foreman-installer/scenarios.d/.installedexists. If the file exists, run the secondsatellite-installercommand that updates certificates.Importantsatellite-installerneeds the certificate archive file after you deploy the certificate. Do not modify or delete it. It is required, for example, when upgrading Satellite Server.-
On a computer with network access to Satellite Server, navigate to the following URL:
https://satellite.example.com. - In your browser, view the certificate details to verify the deployed certificate.
4.12.3. Deploying a Custom SSL Certificate to Hosts Link kopierenLink in die Zwischenablage kopiert!
After you configure Satellite Server to use a custom SSL certificate, you must also install the katello-ca-consumer package on every host that is registered to this Satellite Server.
Procedure
On each host, install the
katello-ca-consumerpackage:yum localinstall \ http://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# yum localinstall \ http://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow
4.13. Using External Databases with Satellite Link kopierenLink in die Zwischenablage kopiert!
As part of the installation process for Red Hat Satellite, the satellite-installer command installs PostgreSQL databases on the same server as Satellite. In certain Satellite deployments, using external databases instead of the default local databases can help with the server load.
Red Hat does not provide support or tools for external database maintenance. This includes backups, upgrades, and database tuning. You must have your own database administrator to support and maintain external databases.
To create and use external databases for Satellite, you must complete the following procedures:
- Section 4.13.2, “Preparing a Host for External Databases”. Prepare a Red Hat Enterprise Linux 8 or Red Hat Enterprise Linux 7 server to host the external databases.
- Section 4.13.3, “Installing PostgreSQL”. Prepare PostgreSQL with databases for Satellite, Candlepin and Pulp with dedicated users owning them.
-
Section 4.13.4, “Configuring Satellite Server to use External Databases”. Edit the parameters of
satellite-installerto point to the new databases, and runsatellite-installer.
4.13.1. PostgreSQL as an External Database Considerations Link kopierenLink in die Zwischenablage kopiert!
Foreman, Katello, and Candlepin use the PostgreSQL database. If you want to use PostgreSQL as an external database, the following information can help you decide if this option is right for your Satellite configuration. Satellite supports PostgreSQL version 12.
Advantages of External PostgreSQL:
- Increase in free memory and free CPU on Satellite
-
Flexibility to set
shared_bufferson the PostgreSQL database to a high number without the risk of interfering with other services on Satellite - Flexibility to tune the PostgreSQL server’s system without adversely affecting Satellite operations
Disadvantages of External PostgreSQL
- Increase in deployment complexity that can make troubleshooting more difficult
- The external PostgreSQL server is an additional system to patch and maintain
- If either Satellite or the PostgreSQL database server suffers a hardware or storage failure, Satellite is not operational
- If there is latency between the Satellite server and database server, performance can suffer
If you suspect that the PostgreSQL database on your Satellite is causing performance problems, use the information in Satellite 6: How to enable postgres query logging to detect slow running queries to determine if you have slow queries. Queries that take longer than one second are typically caused by performance issues with large installations, and moving to an external database might not help. If you have slow queries, contact Red Hat Support.
4.13.2. Preparing a Host for External Databases Link kopierenLink in die Zwischenablage kopiert!
Install a freshly provisioned system with the latest Red Hat Enterprise Linux 8 or Red Hat Enterprise Linux 7 server to host the external databases.
Subscriptions for Red Hat Software Collections and Red Hat Enterprise Linux do not provide the correct service level agreement for using Satellite with external databases. You must also attach a Satellite subscription to the base operating system that you want to use for the external databases.
Prerequisites
- The prepared host must meet Satellite’s Storage Requirements.
Procedure
- Use the instructions in Attaching the Satellite Infrastructure Subscription to attach a Satellite subscription to your server.
Disable all repositories and enable only the following repositories:
For Red Hat Enterprise Linux 7:
subscription-manager repos --disable '*' subscription-manager repos --enable=rhel-server-rhscl-7-rpms \ --enable=rhel-7-server-rpms --enable=rhel-7-server-satellite-6.11-rpms
# subscription-manager repos --disable '*' # subscription-manager repos --enable=rhel-server-rhscl-7-rpms \ --enable=rhel-7-server-rpms --enable=rhel-7-server-satellite-6.11-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow For Red Hat Enterprise Linux 8:
subscription-manager repos --disable '*' subscription-manager repos \ --enable=satellite-6.11-for-rhel-8-x86_64-rpms \ --enable=rhel-8-for-x86_64-baseos-rpms \ --enable=rhel-8-for-x86_64-appstream-rpms
# subscription-manager repos --disable '*' # subscription-manager repos \ --enable=satellite-6.11-for-rhel-8-x86_64-rpms \ --enable=rhel-8-for-x86_64-baseos-rpms \ --enable=rhel-8-for-x86_64-appstream-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow
On Red Hat Enterprise Linux 8, enable the following modules:
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.
4.13.3. Installing PostgreSQL Link kopierenLink in die Zwischenablage kopiert!
You can install only the same version of PostgreSQL that is installed with the satellite-installer tool during an internal database installation. You can install PostgreSQL using Red Hat Enterprise Linux 8 or Red Hat Enterprise Linux Server 7 repositories. Satellite supports PostgreSQL version 12.
4.13.3.1. Installing PostgreSQL on Red Hat Enterprise Linux 8 Link kopierenLink in die Zwischenablage kopiert!
Procedure
To install PostgreSQL, enter the following command:
dnf install postgresql-server postgresql-evr
# dnf install postgresql-server postgresql-evrCopy to Clipboard Copied! Toggle word wrap Toggle overflow To initialize PostgreSQL, enter the following command:
postgresql-setup initdb
# postgresql-setup initdbCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
/var/lib/pgsql/data/postgresql.conffile:vi /var/lib/pgsql/data/postgresql.conf
# vi /var/lib/pgsql/data/postgresql.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the
#and edit to listen to inbound connections:listen_addresses = '*'
listen_addresses = '*'Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
/var/lib/pgsql/data/pg_hba.conffile:vi /var/lib/pgsql/data/pg_hba.conf
# vi /var/lib/pgsql/data/pg_hba.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following line to the file:
host all all Satellite_ip/24 md5
host all all Satellite_ip/24 md5Copy to Clipboard Copied! Toggle word wrap Toggle overflow To start, and enable PostgreSQL service, enter the following commands:
systemctl start postgresql systemctl enable postgresql
# systemctl start postgresql # systemctl enable postgresqlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Open the postgresql port on the external PostgreSQL server:
firewall-cmd --add-service=postgresql firewall-cmd --runtime-to-permanent
# firewall-cmd --add-service=postgresql # firewall-cmd --runtime-to-permanentCopy to Clipboard Copied! Toggle word wrap Toggle overflow Switch to the
postgresuser and start the PostgreSQL client:su - postgres -c psql
$ su - postgres -c psqlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create three databases and dedicated roles: one for Satellite, one for Candlepin, and one for Pulp:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Exit the
postgresuser:\q
# \qCopy to Clipboard Copied! Toggle word wrap Toggle overflow From Satellite Server, test that you can access the database. If the connection succeeds, the commands return
1.PGPASSWORD='Foreman_Password' psql -h postgres.example.com -p 5432 -U foreman -d foreman -c "SELECT 1 as ping" PGPASSWORD='Candlepin_Password' psql -h postgres.example.com -p 5432 -U candlepin -d candlepin -c "SELECT 1 as ping" PGPASSWORD='Pulpcore_Password' psql -h postgres.example.com -p 5432 -U pulp -d pulpcore -c "SELECT 1 as ping"
# PGPASSWORD='Foreman_Password' psql -h postgres.example.com -p 5432 -U foreman -d foreman -c "SELECT 1 as ping" # PGPASSWORD='Candlepin_Password' psql -h postgres.example.com -p 5432 -U candlepin -d candlepin -c "SELECT 1 as ping" # PGPASSWORD='Pulpcore_Password' psql -h postgres.example.com -p 5432 -U pulp -d pulpcore -c "SELECT 1 as ping"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.13.3.2. Installing PostgreSQL on Red Hat Enterprise Linux 7 Link kopierenLink in die Zwischenablage kopiert!
Procedure
To install PostgreSQL, enter the following command:
yum install rh-postgresql12-postgresql-server \ rh-postgresql12-syspaths \ rh-postgresql12-postgresql-evr
# yum install rh-postgresql12-postgresql-server \ rh-postgresql12-syspaths \ rh-postgresql12-postgresql-evrCopy to Clipboard Copied! Toggle word wrap Toggle overflow To initialize PostgreSQL, enter the following command:
postgresql-setup initdb
# postgresql-setup initdbCopy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
/var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conffile:vi /var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.conf
# vi /var/opt/rh/rh-postgresql12/lib/pgsql/data/postgresql.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Remove the
#and edit to listen to inbound connections:listen_addresses = '*'
listen_addresses = '*'Copy to Clipboard Copied! Toggle word wrap Toggle overflow Edit the
/var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_hba.conffile:vi /var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_hba.conf
# vi /var/opt/rh/rh-postgresql12/lib/pgsql/data/pg_hba.confCopy to Clipboard Copied! Toggle word wrap Toggle overflow Add the following line to the file:
host all all Satellite_ip/24 md5
host all all Satellite_ip/24 md5Copy to Clipboard Copied! Toggle word wrap Toggle overflow To start, and enable PostgreSQL service, enter the following commands:
systemctl start postgresql systemctl enable postgresql
# systemctl start postgresql # systemctl enable postgresqlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Open the postgresql port on the external PostgreSQL server:
firewall-cmd --add-service=postgresql firewall-cmd --runtime-to-permanent
# firewall-cmd --add-service=postgresql # firewall-cmd --runtime-to-permanentCopy to Clipboard Copied! Toggle word wrap Toggle overflow Switch to the
postgresuser and start the PostgreSQL client:su - postgres -c psql
$ su - postgres -c psqlCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create three databases and dedicated roles: one for Satellite, one for Candlepin, and one for Pulp:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Exit the
postgresuser:\q
# \qCopy to Clipboard Copied! Toggle word wrap Toggle overflow From Satellite Server, test that you can access the database. If the connection succeeds, the commands return
1.PGPASSWORD='Foreman_Password' psql -h postgres.example.com -p 5432 -U foreman -d foreman -c "SELECT 1 as ping" PGPASSWORD='Candlepin_Password' psql -h postgres.example.com -p 5432 -U candlepin -d candlepin -c "SELECT 1 as ping" PGPASSWORD='Pulpcore_Password' psql -h postgres.example.com -p 5432 -U pulp -d pulpcore -c "SELECT 1 as ping"
# PGPASSWORD='Foreman_Password' psql -h postgres.example.com -p 5432 -U foreman -d foreman -c "SELECT 1 as ping" # PGPASSWORD='Candlepin_Password' psql -h postgres.example.com -p 5432 -U candlepin -d candlepin -c "SELECT 1 as ping" # PGPASSWORD='Pulpcore_Password' psql -h postgres.example.com -p 5432 -U pulp -d pulpcore -c "SELECT 1 as ping"Copy to Clipboard Copied! Toggle word wrap Toggle overflow
4.13.4. Configuring Satellite Server to use External Databases Link kopierenLink in die Zwischenablage kopiert!
Use the satellite-installer command to configure Satellite to connect to an external PostgreSQL database.
Prerequisite
- You have installed and configured a PostgreSQL database on a Red Hat Enterprise Linux server.
Procedure
To configure the external databases for Satellite, enter the following command:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To enable the Secure Sockets Layer (SSL) protocol for these external databases, add the following options:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow