此内容没有您所选择的语言版本。
Chapter 2. Installing Capsule Server
Before you install Capsule Server, you should ensure that your environment meets the requirements for installation. Capsule Server has the same requirements for installation as Satellite Server, with the additional requirement that you have not configured it to use a proxy to connect to the Red Hat CDN. For more information, see Section 1.1, “System Requirements”.
2.1. Registering to Satellite Server 复制链接链接已复制到粘贴板!
Use this procedure to register the base system on which you want to install Capsule to Satellite Server.
Subscription Manifest Considerations
- The Satellite Server must have a manifest installed with the appropriate repositories for the organization you want the future 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 the 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 Considerations
- The Satellite Server’s base system must be able to resolve the host name of the base system on which you want to install Capsule and vice versa.
- You must revert any changes related to the use of proxies which prevent access to Red Hat Satellite.
- You must have configured host and network-based firewalls. For more information, see Section 1.4, “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.
Register to Satellite Server
Install the Satellite Server’s CA certificate on the base system on which you want to install Capsule.
rpm -Uvh http://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpm
# rpm -Uvh http://satellite.example.com/pub/katello-ca-consumer-latest.noarch.rpmCopy to Clipboard Copied! Toggle word wrap Toggle overflow Register the base system on which you want to install Capsule with the environments that you want the future 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
After you have registered the Capsule Server, you must identify your Capsule Server subscription Pool ID. The Pool ID enables you to attach the required subscription to your Capsule Server. The Capsule Server subscription provides access to the Capsule Server content, as well as Red Hat Enterprise Linux, Red Hat Software Collections (RHSCL), and Red Hat Satellite. This is the only subscription required.
Identify your Capsule Server 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 Pool ID so that you can attach it to your Satellite host. Your Pool ID is different than the example provided.
Attach your subscription to your Capsule Server, using your Pool ID:
subscription-manager attach --pool=pool_id
# subscription-manager attach --pool=pool_idCopy to Clipboard Copied! Toggle word wrap Toggle overflow The outputs displays something similar to the following:
Successfully attached a subscription for: Red Hat Capsule Server
Successfully attached a subscription for: Red Hat Capsule ServerCopy to Clipboard Copied! Toggle word wrap Toggle overflow To verify that the subscriptions are successfully attached, enter the following command:
subscription-manager list --consumed
# subscription-manager list --consumedCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.3. Configuring Repositories 复制链接链接已复制到粘贴板!
Disable all existing repositories.
subscription-manager repos --disable "*"
# subscription-manager repos --disable "*"Copy to Clipboard Copied! Toggle word wrap Toggle overflow Enable the Red Hat Satellite Capsule, Red Hat Enterprise Linux, and Red Hat Software Collections repositories.
The Red Hat Software Collections repository provides a later version of Ruby required by some Red Hat Satellite Capsule features, including the Remote Execution feature.
subscription-manager repos --enable rhel-7-server-rpms \ --enable rhel-7-server-satellite-capsule-6.4-rpms \ --enable rhel-server-rhscl-7-rpms \ --enable rhel-7-server-satellite-maintenance-6-rpms \ --enable rhel-7-server-ansible-2.6-rpms
# subscription-manager repos --enable rhel-7-server-rpms \ --enable rhel-7-server-satellite-capsule-6.4-rpms \ --enable rhel-server-rhscl-7-rpms \ --enable rhel-7-server-satellite-maintenance-6-rpms \ --enable rhel-7-server-ansible-2.6-rpmsCopy to Clipboard Copied! Toggle word wrap Toggle overflow Clear out any metadata left from any non-Red Hat
yumrepositories.yum clean all
# yum clean allCopy to Clipboard Copied! Toggle word wrap Toggle overflow Verify that the repositories have been enabled.
yum repolist enabled
# yum repolist enabledCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.4. Synchronizing Time 复制链接链接已复制到粘贴板!
You must start and enable a time synchronizer on the host operating system to minimize the effects of time drift. If a system’s time is incorrect, certificate verification can fail.
Two NTP based time synchronizers are available: chronyd and ntpd. The chronyd implementation is specifically recommended for systems that are frequently suspended and for systems that have intermittent network access. The ntpd implementation should only be used when you specifically need support for a protocol or driver not yet supported by chronyd.
For more information about the differences between ntpd and chronyd, see Differences Between ntpd and chronyd in the Red Hat Enterprise Linux 7 System Administrator’s Guide.
Synchronizing Time using chronyd
Install chronyd.
yum install chrony
# yum install chronyCopy to Clipboard Copied! Toggle word wrap Toggle overflow Start and enable the chronyd service.
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 复制链接链接已复制到粘贴板!
Update all packages.
yum update
# yum updateCopy to Clipboard Copied! Toggle word wrap Toggle overflow Install the installation package.
yum install satellite-capsule
# yum install satellite-capsuleCopy to Clipboard Copied! Toggle word wrap Toggle overflow
2.6. Performing Initial Configuration of Capsule Server 复制链接链接已复制到粘贴板!
This section demonstrates a default installation of Capsule Server, including use of default certificates, DNS, and DHCP configuration. For details of more advanced configuration options, see Performing Additional Configuration on Capsule Server.
You can use the default certificate authority (CA) that comes with Capsule Server, which is used by both the server and the client SSL certificates for the authentication of subservices.
If you configured Satellite Server to use a custom SSL certificate, proceed to Section 3.7, “Configuring Capsule Server with a Custom Server Certificate”.
Before You Begin
-
Ensure that Capsule is installed and
satellite-installerpackage is available on Capsule Server. - You must have configured host and network-based firewalls. For more information, see Section 1.4, “Ports and Firewalls Requirements”.
-
You must have installed the
katello-ca-consumer-latestpackage. For more information, see Section 2.1, “Registering to Satellite Server”. - You must have registered your Capsule Server to the Satellite Server.
- You must have attached the required subscription to the Capsule Server.
Configure Capsule Server with a Default Server Certificate
On Satellite Server, create the certificates archive:
capsule-certs-generate \ --foreman-proxy-fqdn mycapsule.example.com \ --certs-tar mycapsule.example.com-certs.tar
# capsule-certs-generate \ --foreman-proxy-fqdn mycapsule.example.com \ --certs-tar mycapsule.example.com-certs.tarCopy to Clipboard Copied! Toggle word wrap Toggle overflow Retain a copy of the
satellite-installercommand that is output by thecapsule-certs-generatecommand for installing the Capsule Server certificates.-
Copy the generated archive
.tarfile from Satellite Server to Capsule Server. On Capsule Server, run the
satellite-installercommand that thecapsule-certs-generatecommand outputs to install Capsule Server certificates:Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteWhen network connections or ports to the 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.