Este contenido no está disponible en el idioma seleccionado.
Chapter 2. Installing Capsule Server
Before you install Capsule Server, you must ensure that your environment meets the requirements for installation. For more information, see Section 1.1, “System Requirements”.
2.1. Registering to Satellite Server Copiar enlaceEnlace copiado en el portapapeles!
Use this procedure to register the base system on which you want to install Capsule Server to Satellite Server.
Prerequisites
Before registering it to Satellite Server, ensure that the base system on which you want to install Capsule meets the following conditions:
Subscription Manifest Prerequisites
- On Satellite Server, a manifest must be installed and it must contain the appropriate repositories for the organization you want Capsule to belong to.
- The manifest must contain repositories for the base system on which you want to install Capsule, as well as any clients that you want to connect to Capsule.
- The repositories must be synchronized.
For more information on manifests and repositories, see Managing Subscriptions in the Red Hat Satellite Content Management Guide.
Proxy and Network Prerequisites
- The Satellite Server base system must be able to resolve the host name of the Capsule base system and vice versa.
- The base system on which you want to install Capsule Server must not be configured to use a proxy to connect to the Red Hat CDN.
- You must configure the host and network-based firewalls accordingly. For more information, see Section 1.5, “Ports and Firewalls Requirements”.
- You must have a Satellite Server user name and password. For more information, see Configuring External Authentication in Administering Red Hat Satellite.
Procedure
To register your system to Satellite Server, complete the following steps:
Download the
katello-ca-consumer-latest.noarch.rpmpackage on the base system on which you want to install Capsule. The consumer RPM configures the host to download content from the content source that is specified in Red Hat Satellite.curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# curl --insecure --output katello-ca-consumer-latest.noarch.rpm https://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
katello-ca-consumer-latest.noarch.rpmpackage:yum localinstall katello-ca-consumer-latest.noarch.rpm
# yum localinstall katello-ca-consumer-latest.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Register the Capsule base system with the environments that you want Capsule to belong to. Use an activation key to simplify specifying the environments.
subscription-manager register --org=organization_name --activationkey=example_activation_key
# subscription-manager register --org=organization_name --activationkey=example_activation_keyCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.2. Attaching the Satellite Infrastructure Subscription Copiar enlaceEnlace copiado en el portapapeles!
After you have registered Capsule 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, Red Hat Enterprise Linux, and Red Hat Software Collections (RHSCL) content. This is the only subscription required.
Red Hat Satellite Infrastructure is included with all subscriptions that include Smart Management. For more information, see the Red Hat Knowledgebase solution Satellite Infrastructure Subscriptions MCT3718 MCT3719.
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 your subscription is being consumed by another system.
Procedure
To attach the Satellite Infrastructure subscription, complete the following steps:
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 system that your Capsule Server is running on:
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
2.3. Configuring Repositories Copiar enlaceEnlace copiado en el portapapeles!
Use this procedure to enable the repositories that are required to install Capsule Server.
Procedure
To configure the required repositories, complete the following steps:
Disable all repositories:
subscription-manager repos --disable "*"
# subscription-manager repos --disable "*"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the following repositories:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteIf you are installing Capsule Server as a virtual machine hosted on Red Hat Virtualization (RHV), you must also enable the Red Hat Common repository, and install RHV 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 for more information.
Clear any
yummetadata:yum clean all
# yum clean allCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: Verify that the required repositories are enabled:
yum repolist enabled
# yum repolist enabledCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.4. Synchronizing the System Clock With chronyd Copiar enlaceEnlace copiado en el portapapeles!
To minimize the effects of time drift, you must synchronize the system clock on the base system on which you want to install Capsule Server with Network Time Protocol (NTP) servers. If the base 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
To synchronize the system clock, complete the following steps:
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.5. Installing Capsule Server Packages Copiar enlaceEnlace copiado en el portapapeles!
Before installing the Capsule Server packages, you must update all packages that are installed on the base system.
Procedure
To install Capsule Server, complete the following steps:
Update all packages:
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
satellite-capsulepackage:yum install satellite-capsule
# yum install satellite-capsuleCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.6. Configuring Capsule Server with SSL Certificates Copiar enlaceEnlace copiado en el portapapeles!
Red Hat Satellite uses SSL certificates to enable encrypted communications between Satellite Server, external Capsule Servers, and all hosts. Depending on the requirements of your organization, you must configure your Capsule Server with a default or custom certificate.
- If you use a default SSL certificate, you must also configure each external Capsule Server with a distinct default SSL certificate. For more information, see Section 2.6.1, “Configuring Capsule Server with a Default SSL Certificate”.
- If you use a custom SSL certificate, you must also configure each external Capsule Server with a distinct custom SSL certificate. For more information, see Section 2.6.2, “Configuring Capsule Server with a Custom SSL Certificate”.
2.6.1. Configuring Capsule Server with a Default SSL Certificate Copiar enlaceEnlace copiado en el portapapeles!
Use this section to configure Capsule Server with an SSL certificate that is signed by the Satellite Server default Certificate Authority (CA).
Prerequisites
Before configuring Capsule Server with a default server certificate, ensure that your Capsule Server meets the following conditions:
- Capsule Server is registered to Satellite Server. For more information, see Section 2.1, “Registering to Satellite Server”.
- The Capsule Server packages are installed. For more information, see Section 2.5, “Installing Capsule Server Packages”.
Procedure
To configure Capsule Server with a default server certificate, complete the following steps:
On Satellite Server, to store all the source certificate files for your Capsule Server, create a directory that is accessible only to the
rootuser, for example/root/capsule_cert:mkdir /root/capsule_cert
# mkdir /root/capsule_certCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Satellite Server, generate the
/root/capsule_cert/capsule_certs.tarcertificate archive for your Capsule Server:capsule-certs-generate \ --foreman-proxy-fqdn capsule.example.com \ --certs-tar /root/capsule_cert/capsule_certs.tar
# capsule-certs-generate \ --foreman-proxy-fqdn capsule.example.com \ --certs-tar /root/capsule_cert/capsule_certs.tarCopy to Clipboard Copied! Toggle word wrap Toggle overflow Retain a copy of the
satellite-installercommand that thecapsule-certs-generatecommand returns for deploying the certificate to your Capsule Server.Example output of capsule-certs-generate
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Satellite Server, copy the certificate archive file to your Capsule Server:
scp /root/capsule_cert/capsule.example.com-certs.tar
# scp /root/capsule_cert/capsule.example.com-certs.tar root@capsule.example.com:/root/capsule.example.com-certs.tarCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Capsule Server, to deploy the certificate, enter the
satellite-installercommand that thecapsule-certs-generatecommand returns.When network connections or ports to Satellite are not yet open, you can set the
--foreman-proxy-register-in-foremanoption tofalseto prevent Capsule from attempting to connect to Satellite and reporting errors. Run the installer again with this option set totruewhen the network and firewalls are correctly configured.ImportantDo not delete the certificate archive file after you deploy the certificate. It is required, for example, when upgrading Capsule Server.
2.6.2. Configuring Capsule Server with a Custom SSL Certificate Copiar enlaceEnlace copiado en el portapapeles!
If you configure Satellite Server to use a custom SSL certificate, you must also configure each of your external Capsule Servers with a distinct custom SSL certificate.
To configure your Capsule Server with a custom certificate, complete the following procedures on each Capsule Server:
2.6.2.1. Creating a Custom SSL Certificate for Capsule Server Copiar enlaceEnlace copiado en el portapapeles!
On Satellite Server, create a custom certificate for your Capsule Server. If you already have a custom SSL certificate for Capsule Server, skip this procedure.
When you configure Satellite with custom certificates, note the following considerations:
- You must use the Privacy-Enhanced Mail (PEM) encoding for the SSL certificates.
- You cannot use the same certificate for both Satellite and Capsule.
- The same Certificate Authority must sign certificates for Satellite and Capsule.
Procedure
To create a custom SSL certificate, complete the following steps:
To store all the source certificate files, create a directory that is accessible only to the
rootuser.mkdir /root/capsule_cert
# mkdir /root/capsule_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 Capsule Server, skip this step.
openssl genrsa -out /root/capsule_cert/capsule_cert_key.pem 4096
# openssl genrsa -out /root/capsule_cert/capsule_cert_key.pem 4096Copy to Clipboard Copied! Toggle word wrap Toggle overflow Create the
/root/capsule_cert/openssl.cnfconfiguration file for the Certificate Signing Request (CSR) and include the following content:Copy to Clipboard Copied! Toggle word wrap Toggle overflow - 1
- In the
[ req_distinguished_name ]section, enter information about your organization. - 2
- Set the certificate’s Common Name
CNto match the fully qualified domain name (FQDN) of your Capsule Server. To confirm a FQDN, on that Capsule Server, enter thehostname -fcommand. This is required to ensure that thekatello-certs-checkcommand validates the certificate correctly. - 3
- Set the Subject Alternative Name (SAN)
DNS.1to match the fully qualified domain name (FQDN) of your server.
Generate the Certificate Signing Request (CSR):
openssl req -new \ -key /root/capsule_cert/capsule_cert_key.pem \ -config /root/capsule_cert/openssl.cnf \ -out /root/capsule_cert/capsule_cert_csr.pem
# openssl req -new \ -key /root/capsule_cert/capsule_cert_key.pem \1 -config /root/capsule_cert/openssl.cnf \2 -out /root/capsule_cert/capsule_cert_csr.pem3 Copy to Clipboard Copied! Toggle word wrap Toggle overflow Send the certificate signing request to the Certificate Authority. The same Certificate Authority 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 Certificate Authority for the preferred method. In response to the request, you can expect to receive a Certificate Authority bundle and a signed certificate, in separate files.
2.6.2.2. Deploying a Custom SSL Certificate to Capsule Server Copiar enlaceEnlace copiado en el portapapeles!
Use this procedure to configure your Capsule Server with a custom SSL certificate signed by a Certificate Authority. The satellite-installer command, which the capsule-certs-generate command returns, is unique to each Capsule Server. Do not use the same command on more than one Capsule Server.
Prerequisites
Before configuring Capsule Server with a custom server certificate, ensure that your Satellite and Capsule Servers meet the following conditions:
- Satellite Server is configured with a custom certificate. For more information, see Configuring Satellite Server with a Custom Server Certificate in Installing Satellite Server from a Connected Network.
- Capsule Server is registered to Satellite Server. For more information, see Section 2.1, “Registering to Satellite Server”.
- The Capsule Server packages are installed. For more information, see Section 2.5, “Installing Capsule Server Packages”
Procedure
To configure your Capsule Server with a custom SSL certificate, complete the following steps:
On Satellite Server, validate the custom SSL certificate input files:
katello-certs-check \ -c /root/capsule_cert/capsule_cert.pem \ -k /root/capsule_cert/capsule_cert_key.pem \ -b /root/capsule_cert/ca_cert_bundle.pem
# katello-certs-check \ -c /root/capsule_cert/capsule_cert.pem \1 -k /root/capsule_cert/capsule_cert_key.pem \2 -b /root/capsule_cert/ca_cert_bundle.pem3 Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the command is successful, it returns two
capsule-certs-generatecommands, one of which you must use to generate the certificate archive file for your Capsule Server.Example output of katello-certs-check
Copy to Clipboard Copied! Toggle word wrap Toggle overflow -
On Satellite Server, from the output of the
katello-certs-checkcommand, depending on your requirements, enter thecapsule-certs-generatecommand that generates a certificate for a new or existing Capsule. In this command, change$CAPSULEto the FQDN of your Capsule Server. Retain a copy of the
satellite-installercommand that thecapsule-certs-generatecommand returns for deploying the certificate to your Capsule Server.Example output of capsule-certs-generate
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On Satellite Server, copy the certificate archive file to your Capsule Server:
scp /root/capsule_cert/capsule.example.com-certs.tar \ root@capsule.example.com:/root/capsule.example.com-certs.tar
# scp /root/capsule_cert/capsule.example.com-certs.tar \ root@capsule.example.com:/root/capsule.example.com-certs.tarCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Capsule Server, to deploy the certificate, enter the
satellite-installercommand that thecapsule-certs-generatecommand returns.When network connections or ports to Satellite are not yet open, you can set the
--foreman-proxy-register-in-foremanoption tofalseto prevent Capsule from attempting to connect to Satellite and reporting errors. Run the installer again with this option set totruewhen the network and firewalls are correctly configured.ImportantDo not delete the certificate archive file after you deploy the certificate. It is required, for example, when upgrading Capsule Server.
2.6.2.3. Deploying a Custom SSL Certificate to Hosts Copiar enlaceEnlace copiado en el portapapeles!
After you configure Capsule Server to use a custom SSL certificate, you must also install the katello-ca-consumer package on every host that is registered to this Capsule Server.
Until BZ#1683835 is resolved, you cannot upgrade the katello-ca-consumer package; you must remove the old package and install the new one. Upgrading the katello-ca-consumer package fails because the upgrade reverts the baseurl setting in rhsm.conf to subscription.rhsm.redhat.com.
Procedure
On each host, complete the following steps to install the katello-ca-consumer package:
Delete the current
katello-ca-consumerpackage on the host:yum remove 'katello-ca-consumer*'
# yum remove 'katello-ca-consumer*'Copy to Clipboard Copied! Toggle word wrap Toggle overflow Install the
katello-ca-consumerpackage on the host:yum localinstall \ http://capsule.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# yum localinstall \ http://capsule.example.com/pub/katello-ca-consumer-latest.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow