Professional Documents
Culture Documents
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons
Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is
available at
http://creativecommons.org/licenses/by-sa/3.0/
. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must
provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert,
Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity
logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other
countries.
Linux ® is the registered trademark of Linus Torvalds in the United States and other countries.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and
other countries.
Node.js ® is an official trademark of Joyent. Red Hat Software Collections is not formally related to
or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks
or trademarks/service marks of the OpenStack Foundation, in the United States and other countries
and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or
sponsored by the OpenStack Foundation, or the OpenStack community.
Abstract
This guide describes how to install Red Hat Satellite Capsule Server, perform initial configuration,
and configure external services.
Table of Contents
Table of Contents
.CHAPTER
. . . . . . . . .1.. .PREPARING
. . . . . . . . . . .YOUR
. . . . . .ENVIRONMENT
. . . . . . . . . . . . . .FOR
. . . .INSTALLATION
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3. . . . . . . . . .
1.1. SYSTEM REQUIREMENTS 3
1.2. STORAGE REQUIREMENTS AND GUIDELINES 4
1.2.1. Storage Requirements 4
1.2.2. Storage Guidelines 4
1.3. SUPPORTED OPERATING SYSTEMS 6
1.4. PORTS AND FIREWALLS REQUIREMENTS 6
1.5. ENABLING CONNECTIONS FROM SATELLITE SERVER AND CLIENTS TO A CAPSULE SERVER 9
1.6. ENABLING CONNECTIONS FROM CAPSULE SERVER TO SATELLITE SERVER 9
1.7. VERIFYING FIREWALL SETTINGS 10
.CHAPTER
. . . . . . . . .2.. .INSTALLING
. . . . . . . . . . . CAPSULE
. . . . . . . . . SERVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
...........
2.1. REGISTERING TO SATELLITE SERVER 11
2.2. IDENTIFYING AND ATTACHING THE CAPSULE SERVER SUBSCRIPTION 12
2.3. CONFIGURING REPOSITORIES 13
2.4. SYNCHRONIZING TIME 13
2.5. INSTALLING CAPSULE SERVER 13
2.6. PERFORMING INITIAL CONFIGURATION OF CAPSULE SERVER 14
2.6.1. Configuring Capsule Server with a Default Server Certificate 14
. . . . . . . . . .3.. .PERFORMING
CHAPTER . . . . . . . . . . . . ADDITIONAL
. . . . . . . . . . . . CONFIGURATION
. . . . . . . . . . . . . . . .ON
. . . CAPSULE
. . . . . . . . . SERVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . .16
...........
3.1. INSTALLING THE KATELLO AGENT 16
3.2. ENABLING REMOTE EXECUTION ON CAPSULE SERVER 16
3.3. ENABLING POWER MANAGEMENT ON MANAGED HOSTS 16
3.4. CONFIGURING DNS, DHCP, AND TFTP ON CAPSULE SERVER 17
3.5. CONFIGURING CAPSULE SERVER WITH A CUSTOM SERVER CERTIFICATE 18
3.5.1. Obtain an SSL Certificate for the Capsule Server 18
3.5.2. Validate the Capsule Server’s SSL Certificate 20
3.5.3. Create the Capsule Server’s Certificate Archive File 20
3.5.4. Install the Capsule Server’s Custom Certificate 21
3.5.5. Install the Capsule Server’s New Certificate on All Hosts 22
3.6. RESTRICTING ACCESS TO MONGOD 23
.CHAPTER
. . . . . . . . .4.. .CONFIGURING
. . . . . . . . . . . . . EXTERNAL
. . . . . . . . . . SERVICES
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
...........
4.1. CONFIGURING CAPSULE SERVER WITH EXTERNAL DNS 24
4.2. CONFIGURING CAPSULE SERVER WITH EXTERNAL DHCP 25
4.3. CONFIGURING CAPSULE SERVER WITH EXTERNAL TFTP 28
4.4. CONFIGURING SATELLITE OR CAPSULE WITH EXTERNAL IDM DNS 29
4.4.1. Configuring Dynamic DNS Update with GSS-TSIG Authentication 30
4.4.2. Configuring Dynamic DNS Update with TSIG Authentication 33
4.4.3. Reverting to Internal DNS Service 36
. . . . . . . . . .5.. .UNINSTALLING
CHAPTER . . . . . . . . . . . . . .CAPSULE
. . . . . . . . .SERVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38
...........
. . . . . . . . . . A.
APPENDIX . . .CAPSULE
. . . . . . . . .SERVER
. . . . . . . .SCALABILITY
. . . . . . . . . . . .CONSIDERATIONS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .40
...........
1
Red Hat Satellite 6.4 Installing Capsule Server
2
CHAPTER 1. PREPARING YOUR ENVIRONMENT FOR INSTALLATION
64-bit architecture
A unique host name, which can contain lower-case letters, numbers, dots (.) and hyphens (-)
Full forward and reverse DNS resolution using a fully-qualified domain name
Before you install Satellite Server or Capsule Server, ensure that your environment meets the
requirements for installation.
Satellite Server must be installed on a freshly provisioned system that serves no other function except to
run Satellite Server.
NOTE
The Red Hat Satellite Server and Capsule Server versions must match. For example, a
Satellite 6.2 Server cannot run a 6.4 Capsule Server and a Satellite 6.4 Server cannot run
a 6.2 Capsule Server. Mismatching Satellite Server and Capsule Server versions results in
the Capsule Server failing silently.
NOTE
If you have a large number of content hosts, see Large Deployment Considerations to ensure that your
environment is set up appropriately.
For more information on scaling your Capsule Servers, see Capsule Server Scalability Considerations.
Certified hypervisors
Red Hat Satellite is fully supported on both physical systems and virtual machines that run on
hypervisors that are supported to run Red Hat Enterprise Linux. For more information about certified
hypervisors, see Which hypervisors are certified to run Red Hat Enterprise Linux?
3
Red Hat Satellite 6.4 Installing Capsule Server
In the following table, the runtime size was measured with Red Hat Enterprise Linux 5, 6, and 7
repositories synchronized.
/var/cache/pulp/ 1 MB 20 GB (Minimum)
/var/lib/pulp/ 1 MB 500 GB
/var/lib/mongodb/ 3.5 GB 50 GB
Because most Capsule Server data is stored within the /var directory, mounting /var on LVM
storage can help the system to scale.
The /var/lib/qpidd/ directory uses slightly more than 2 MB per Content Host managed by
the goferd service. For example, 10 000 Content Hosts require 20 GB of disk space in
/var/lib/qpidd/.
Using the same volume for the /var/cache/pulp/ and /var/lib/pulp/ directories can
decrease the time required to move content from /var/cache/pulp/ to /var/lib/pulp/
after synchronizing.
4
CHAPTER 1. PREPARING YOUR ENVIRONMENT FOR INSTALLATION
Use the XFS file system for Red Hat Satellite 6 because it does not have the inode limitations
that ext4 does. As Capsule Server uses a lot of symbolic links it is likely that your system may
run out of inodes if using ext4 and the default number of inodes.
Do not use NFS with MongoDB because MongoDB does not use conventional I/O to access
data files and performance problems occur when both the data files and the journal files are
hosted on NFS. If required to use NFS, mount the volumes with the following option in the
/etc/fstab file: bg, nolock, and noatime.
Do not use the GFS2 file system as the input-output latency is too high.
If NFS share is already mounted, remount it using the above configuration and enter the following
command:
Duplicated Packages
Packages that are duplicated in different repositories are only stored once on the disk. Additional
repositories containing duplicate packages require less additional storage. The bulk of storage resides in
the /var/lib/mongodb/ and /var/lib/pulp/ directories. These end points are not manually
configurable. Ensure that storage is available on the /var file system to prevent storage problems.
Temporary Storage
The /var/cache/pulp/ directory is used to temporarily store content while it is being synchronized.
For content in RPM format, a maximum of 5 RPM files are stored in this directory at any time. After each
file is synchronized, it is moved to the /var/lib/pulp/ directory. Up to 8 RPM content synchronization
tasks can run simultaneously by default, with each using up to 1 GB of metadata.
ISO Images
For content in ISO format, all ISO files per synchronization task are stored in /var/cache/pulp/ until
the task is complete, after which they are moved to the /var/lib/pulp/ directory.
If you plan to use ISO images for installing or updating, you must provide external storage or allow space
in /var/tmp for temporarily storing ISO files.
For example, if you are synchronizing four ISO files, each 4 GB in size, this requires a total of 16 GB in
the /var/cache/pulp/ directory. Consider the number of ISO files you intend synchronizing because
the temporary disk space required for them typically exceeds that of RPM content.
Software Collections
Software collections are installed in the /opt/rh/ and /opt/theforeman/ directories.
Write and execute permissions by the root user are required for installation to the /opt directory.
5
Red Hat Satellite 6.4 Installing Capsule Server
Symbolic links
You cannot use symbolic links for /var/lib/pulp/ and /var/lib/mongodb/.
Log Storage
You can view log files at the following locations: /var/log/messages/, /var/log/httpd/, and
/var/lib/foreman-proxy/openscap/content/. To manage the size of the log files use the
logrotate configuration file. For more information, see Log Rotation in the Red Hat Enterprise Linux 7
System Administrator’s Guide.
Red Hat Satellite Server and Red Hat Satellite Capsule Server require Red Hat Enterprise Linux
installations with the @Base package group with no other package-set modifications, and without third-
party configurations or software not directly necessary for the direct operation of the server. This
restriction includes hardening and other non-Red Hat security software. If you require such software in
your infrastructure, install and verify a complete working Satellite Server first, then create a backup of the
system before adding any non-Red Hat software.
It is recommended that the Satellite Server be a freshly provisioned system. It is also recommended that
Capsule Servers be freshly provisioned systems and not registered to the Red Hat CDN. Using the
system for anything other than running Satellite is not supported.
If any of the following exist on the system, they must be removed before installation:
Additional yum repositories other than those explicitly required in this guide for installation
The following tables indicate the destination port and the direction of network traffic. Use this information
to configure any network-based firewalls. Note that some cloud solutions must be specifically configured
to allow communications between machines because they isolate machines similarly to network-based
firewalls. If you use an application-based firewall, ensure that the application-based firewall permits all
applications that are listed in the tables and known to your firewall. If possible, disable the application
checking and allow open port communication based on the protocol.
Integrated Capsule
Satellite Server has an integrated Capsule and any host that is directly connected to Satellite Server is a
Client of Satellite in the context of these tables. This includes the base system on which a Capsule
Server is running.
6
CHAPTER 1. PREPARING YOUR ENVIRONMENT FOR INSTALLATION
Clients of Capsule
Hosts which are clients of Capsules, other than Satellite’s integrated Capsule, do not need access to
Satellite Server. For more information on Satellite Topology, see Capsule Networking in Planning for Red
Hat Satellite 6.
7
Red Hat Satellite 6.4 Installing Capsule Server
Any managed host that is directly connected to Satellite Server is a client in this context because it is a
client of the integrated Capsule. This includes the base system on which a Capsule Server is running.
8
CHAPTER 1. PREPARING YOUR ENVIRONMENT FOR INSTALLATION
If DHCP is provided by an
external service, you must
open the port on the external
server.
NOTE
For more information on the ports used, see Ports and Firewalls Requirements.
1. Configure the firewall on the base system on which you want to install Capsule:
# firewall-cmd --runtime-to-permanent
For more information on the ports used, see Section 1.4, “Ports and Firewalls Requirements”.
9
Red Hat Satellite 6.4 Installing Capsule Server
# firewall-cmd --add-port="5000/tcp" \
--add-port="5646/tcp" --add-port="443/tcp" \
--add-port="5647/tcp" --add-port="80/tcp"
# firewall-cmd --runtime-to-permanent
# firewall-cmd --list-all
For more information, see Getting Started with firewalld in the Red Hat Enterprise Linux 7 Security Guide.
10
CHAPTER 2. INSTALLING CAPSULE SERVER
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.
For more information on manifests and repositories, see Managing Subscriptions in the Red Hat Satellite
Content Management Guide.
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.
1. Install the Satellite Server’s CA certificate on the base system on which you want to install
Capsule.
2. 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.
11
Red Hat Satellite 6.4 Installing Capsule Server
+-------------------------------------------+
Available Subscriptions
+-------------------------------------------+
2. 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.
3. Attach your subscription to your Capsule Server, using your Pool ID:
# subscription-manager attach --
pool=Red_Hat_Satellite_Capsule_Pool_Id
4. To verify that the subscriptions are successfully attached, enter the following command:
12
CHAPTER 2. INSTALLING CAPSULE SERVER
2. 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.
3. Clear out any metadata left from any non-Red Hat yum repositories.
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.
1. Install chronyd.
13
Red Hat Satellite 6.4 Installing Capsule Server
# yum update
If you configured Satellite Server to use a custom SSL certificate, proceed to Section 3.5, “Configuring
Capsule Server with a Custom Server Certificate”.
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-latest package. 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.
# capsule-certs-generate \
--foreman-proxy-fqdn mycapsule.example.com \
--certs-tar mycapsule.example.com-certs.tar
2. Copy the generated archive .tar file from Satellite Server to Capsule Server.
14
CHAPTER 2. INSTALLING CAPSULE SERVER
--foreman-proxy-register-in-foreman true \
--foreman-proxy-foreman-base-url https://satellite.example.com \
--foreman-proxy-trusted-hosts satellite.example.com \
--foreman-proxy-trusted-hosts mycapsule.example.com \
--foreman-proxy-oauth-consumer-key UVrAZfMaCfBiiWejoUVLYCZHT2xhzuFV
\
--foreman-proxy-oauth-consumer-secret
ZhH8p7M577ttNU3WmUGWASag3JeXKgUX \
--foreman-proxy-content-pulp-oauth-secret
TPk42MYZ42nAE3rZvyLBh7Lxob3nEUi8 \
--foreman-proxy-content-certs-tar mycapsule.example.com-certs.tar
NOTE
When network connections or ports to the Satellite are not yet open, you can set
the --foreman-proxy-register-in-foreman option to false to prevent
Capsule from attempting to connect to Satellite and reporting errors. Run the
installer again with this option set to true when the network and firewalls are
correctly configured.
15
Red Hat Satellite 6.4 Installing Capsule Server
You must have enabled the Satellite Tools repositories in Satellite Server.
You must have synchronized the Satellite Tools repositories in Satellite Server.
To Install katello-agent:
# subscription-manager repos \
--enable=rhel-7-server-satellite-tools-6.4-rpms
NOTE
The BMC service on the satellite Capsule Server enables you to perform a range of power management
tasks. The underlying protocol for this feature is IPMI; also referred to as the BMC function. IPMI uses a
special network interface on the managed hardware that is connected to a dedicated processor that runs
independently of the host’s CPUs. In many instances the BMC functionality is built into chassis-based
systems as part of chassis management (a dedicated module in the chassis).
16
CHAPTER 3. PERFORMING ADDITIONAL CONFIGURATION ON CAPSULE SERVER
For more information on the BMC service, see Configuring an Additional Network Interface in Managing
Hosts.
All managed hosts must have a network interface, with type BMC. Satellite uses this NIC to pass
the appropriate credentials to the host.
You can also configure Capsule Server to use external DNS and DHCP services. See Configuring
External Services for more information.
You must have the correct network name (dns-interface) for the DNS server.
You must have the correct interface name (dhcp-interface) for the DHCP server.
17
Red Hat Satellite 6.4 Installing Capsule Server
For more information about configuring DHCP, DNS, and TFTP services, see the Configuring Network
Services section in the Provisioning Guide.
Prerequisites
Satellite Server configured with custom certificates. For more information, see Configuring
Satellite Server with a Custom Server Certificate in Installing Satellite Server from a Connected
Network.
Capsule Server installed and registered to the Satellite Server. For more information, see
Chapter 2, Installing Capsule Server.
5. Section 3.5.5, “Install the Capsule Server’s New Certificate on All Hosts”
IMPORTANT
This procedure generates PEM encoded certificates. Only PEM encoding must be used
for the SSL Certificates.
NOTE
Do not use the Satellite Server’s certificate on any Capsule Server as each
server’s certificate is unique.
1. Create a directory to contain all the source certificate files, accessible to only the root user.
# mkdir /root/capsule_cert
# cd /root/capsule_cert
18
CHAPTER 3. PERFORMING ADDITIONAL CONFIGURATION ON CAPSULE SERVER
and capsule_emea respectively. This is not required, but reduces the risk of using files from one
Capsule Server on another Capsule Server.
2. Create a private key with which to sign the Certificate Signing Request (CSR).
NOTE
If you already have a private key for the Capsule Server, skip this step.
NOTE
The certificate’s Common Name (CN) must match the fully-qualified domain
name (FQDN) of the server on which it is used.
19
Red Hat Satellite 6.4 Installing Capsule Server
# 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.pem 3
If the certificate is successfully validated, the output contains the following information.
Retain a copy of the example capsule-certs-generate command that is output by the katello-
certs-check command for use in the following procedure.
Proceed to Section 3.5.3, “Create the Capsule Server’s Certificate Archive File”.
The capsule-certs-generate command must be run once for every external Capsule Server. In
these examples, capsule.example.com is the example FQDN and capsule_certs.tar the
example archive file’s name. Replace these with values appropriate to your environment, taking care not
to overwrite an existing certificate archive file. For example, if you have Capsule Servers named
capsule1 and capsule2, you can name the certificate archive files capsule1_certs.tar and
capsule2_certs.tar.
20
CHAPTER 3. PERFORMING ADDITIONAL CONFIGURATION ON CAPSULE SERVER
2. Edit the values for --foreman-proxy-fqdn to match the Capsule Server’s FQDN, and --
certs-tar to the file path and name for the certificate archive file.
3. If the Capsule Server has not already been installed, remove the --certs-update-server
parameter. This is used only to update an existing Capsule Server’s certificate.
4. Copy the modified capsule-certs-generate command from the text editor to the terminal.
6. On the Satellite Server, copy the certificate archive file to the Capsule Server, providing the
root user’s password when prompted.
In this example the archive file is copied to the root user’s home directory, but you may prefer
to copy it elsewhere.
Retain a copy of the example satellite-installer command that is output by the capsule-
certs-generate command for use in the following procedure.
WARNING
To install the Capsule Server’s custom certificates, run the satellite-installer script with custom
parameters. The command, including parameters, is output by the capsule-certs-generate
command in Section 3.5.3, “Create the Capsule Server’s Certificate Archive File”.
21
Red Hat Satellite 6.4 Installing Capsule Server
3. If you want to enable additional features on the Capsule Server, append their parameters to the
satellite-installer command. For a description of all the installer’s parameters, enter the
command satellite-installer --scenario capsule --help.
4. Copy the modified satellite-installer command from the text editor to the terminal.
NOTE
Do NOT delete the certificates archive file (the .tar file) even after the certificates have
been deployed to all relevant hosts. It is required, for example, when upgrading the
Capsule Server. If the certificates archive file is not found by the installer, it fails with a
message similar to the following:
Proceed to Section 3.5.5, “Install the Capsule Server’s New Certificate on All Hosts”.
NOTE
Use the Capsule Server’s host name, not that of the Satellite Server.
# yum -y localinstall \
http://capsule.example.com/pub/katello-ca-consumer-latest.noarch.rpm
22
CHAPTER 3. PERFORMING ADDITIONAL CONFIGURATION ON CAPSULE SERVER
Restrict access to mongod on Satellite and Capsule Servers using the following commands.
# firewall-cmd --runtime-to-permanent
23
Red Hat Satellite 6.4 Installing Capsule Server
Ensure that the nsupdate utility was installed. The Capsule uses the nsupdate utility to update
DNS records on the remote server.
2. Copy the /etc/rndc.key file from the services server to the Capsule Server.
3. Ensure that the ownership, permissions, and SELinux context are correct.
# restorecon -v /etc/rndc.key
# chown -v root:named /etc/rndc.key
# chmod -v 640 /etc/rndc.key
5. Run the satellite-installer script to make the following persistent changes to the
/etc/foreman-proxy/settings.d/dns.yml file.
# satellite-installer --foreman-proxy-dns=true \
--foreman-proxy-dns-managed=false \
--foreman-proxy-dns-provider=nsupdate \
--foreman-proxy-dns-server="192.168.38.2" \
--foreman-proxy-keyfile=/etc/rndc.key \
--foreman-proxy-dns-ttl=86400
8. Go to Infrastructure > Capsules. Locate the appropriate Capsule Server and from the Actions
drop-down list, select Refresh. The DNS feature should appear.
24
CHAPTER 4. CONFIGURING EXTERNAL SERVICES
9. Associate the DNS service with the appropriate subnets and domain.
To configure the DHCP server and share the DHCP configuration and lease files
1. Deploy a Red Hat Enterprise Linux Server and install the ISC DHCP Service and Berkeley
Internet Name Domain (BIND).
The above command can take a long time, for less-secure proof-of-concept deployments you
can use a non-blocking random number generator.
This creates the key pair in two files in the current directory.
4. Edit the dhcpd configuration file for all of the subnets and add the key as in the example:
# cat /etc/dhcp/dhcpd.conf
default-lease-time 604800;
max-lease-time 2592000;
log-facility local7;
omapi-port 7911;
key omapi_key {
algorithm HMAC-MD5;
secret "jNSE5YI3H1A8Oj/tkV4...A2ZOHb6zv315CkNAY7DMYYCj48Umw==";
};
omapi-key omapi_key;
5. Delete the two key files from the directory where you created them.
25
Red Hat Satellite 6.4 Installing Capsule Server
8. Determine the UID and GID numbers of the foreman user on the Satellite Server.
# id -u foreman
993
# id -g foreman
990
9. Create the same user and group with the same IDs on the DHCP server.
10. To make the configuration files readable, restore the read and execute flags.
12. Export the DHCP configuration and leases files using NFS.
13. Create the DHCP configuration and leases files to be exported using NFS.
14. Add the following line to the /etc/fstab file to create mount points for the newly created
directories.
# mount -a
26
CHAPTER 4. CONFIGURING EXTERNAL SERVICES
/exports
192.168.38.1(rw,async,no_root_squash,fsid=0,no_subtree_check)
/exports/etc/dhcp
192.168.38.1(ro,async,no_root_squash,no_subtree_check,nohide)
/exports/var/lib/dhcpd
192.168.38.1(ro,async,no_root_squash,no_subtree_check,nohide)
# exportfs -rva
18. Configure the firewall for the DHCP omapi port 7911 for the Satellite Server.
# firewall-cmd --add-port="7911/tcp" \
&& firewall-cmd --runtime-to-permanent
4. Verify communication with the NFS server and RPC communication paths.
# showmount -e your_DHCP_server_FQDN
# rpcinfo -p your_DHCP_server_FQDN
27
Red Hat Satellite 6.4 Installing Capsule Server
ro,vers=3,auto,nosharecache,context="system_u:object_r:dhcp_etc_t:s0
" 0 0
your_DHCP_server_FQDN:/exports/var/lib/dhcpd /mnt/nfs/var/lib/dhcpd
nfs
ro,vers=3,auto,nosharecache,context="system_u:object_r:dhcpd_state_t
:s0" 0 0
# mount -a
# su foreman-proxy -s /bin/bash
bash-4.2$ cat /mnt/nfs/etc/dhcp/dhcpd.conf
bash-4.2$ cat /mnt/nfs/var/lib/dhcpd/dhcpd.leases
bash-4.2$ exit
8. Run the satellite-installer script to make the following persistent changes to the
/etc/foreman-proxy/settings.d/dhcp.yml file.
# satellite-installer --foreman-proxy-dhcp=true \
--foreman-proxy-dhcp-provider=remote_isc \
--foreman-proxy-plugin-dhcp-remote-isc-dhcp-config
/mnt/nfs/etc/dhcp/dhcpd.conf \
--foreman-proxy-plugin-dhcp-remote-isc-dhcp-leases
/mnt/nfs/var/lib/dhcpd/dhcpd.leases \
--foreman-proxy-plugin-dhcp-remote-isc-key-name=omapi_key \
--foreman-proxy-plugin-dhcp-remote-isc-key-
secret=jNSE5YI3H1A8Oj/tkV4...A2ZOHb6zv315CkNAY7DMYYCj48Umw== \
--foreman-proxy-plugin-dhcp-remote-isc-omapi-port=7911 \
--enable-foreman-proxy-plugin-dhcp-remote-isc \
--foreman-proxy-dhcp-server=your_DHCP_server_FQDN
11. Go to Infrastructure > Capsules. Locate the appropriate Capsule Server and from the Actions
drop-down list, select Refresh. The DHCP feature should appear.
12. Associate the DHCP service with the appropriate subnets and domain.
# mkdir -p /mnt/nfs/var/lib/tftpboot
28
CHAPTER 4. CONFIGURING EXTERNAL SERVICES
# mount -a
4. Run the satellite-installer script to make the following persistent changes to the
/etc/foreman-proxy/settings.d/tftp.yml file.
# satellite-installer --foreman-proxy-tftp=true \
--foreman-proxy-tftp-root /mnt/nfs/var/lib/tftpboot
5. If the TFTP service is running on a different server than the DHCP service, update the
tftp_servername setting with the FQDN or IP address of that server.
# satellite-installer --foreman-proxy-tftp-servername=new_FQDN
7. Go to Infrastructure > Capsules. Locate the appropriate Capsule Server and from the Actions
drop-down list, select Refresh. The TFTP feature should appear.
8. Associate the TFTP service with the appropriate subnets and domain.
The first method is to install the IdM client which automates the process with the generic security service
algorithm for secret key transaction (GSS-TSIG) technology defined in RFC3645. This method requires
installing the IdM client on the Satellite Server or Capsule’s base system and having an account created
by the IdM server administrator for use by the Satellite administrator. See Section 4.4.1, “Configuring
Dynamic DNS Update with GSS-TSIG Authentication” to use this method.
The second method, secret key transaction authentication for DNS (TSIG), uses an rndc.key for
authentication. It requires root access to the IdM server to edit the BIND configuration file, installing the
BIND utility on the Satellite Server’s base system, and coping the rndc.key to between the systems.
This technology is defined in RFC2845. See Section 4.4.2, “Configuring Dynamic DNS Update with
TSIG Authentication” to use this method.
29
Red Hat Satellite 6.4 Installing Capsule Server
NOTE
You are not required to use Satellite to manage DNS. If you are using the Realm
enrollment feature of Satellite, where provisioned hosts are enrolled automatically to IdM,
then the ipa-client-install script creates DNS records for the client. The following
procedure and Realm enrollment are therefore mutually exclusive. For more information
on configuring Realm enrollment, see External Authentication for Provisioned Hosts in
Administering Red Hat Satellite.
Network 192.168.55.0/24
1. Confirm the IdM server is deployed and the host-based firewall has been configured correctly.
For more information, see Port Requirements in the Linux Domain Identity, Authentication, and
Policy Guide.
2. Obtain an account on the IdM server with permissions to create zones on the IdM server.
4. Confirm that the Satellite or external Capsule are currently working as expected.
5. In the case of a newly installed system, complete the installation procedures in this guide first. In
particular, DNS and DHCP configuration should have been completed.
6. Make a backup of the answer file in case you have to revert the changes. See Specifying
Installation Options for more information.
30
CHAPTER 4. CONFIGURING EXTERNAL SERVICES
# kinit idm_user
Where idm_user is the account created for you by the IdM administrator.
2. Create a new Kerberos principal for the Satellite or Capsule to use to authenticate to the IdM
server.
2. Configure the IdM client by running the installation script and following the on-screen prompts.
# ipa-client-install
# kinit admin
# rm /etc/foreman-proxy/dns.keytab
# ipa-getkeytab -p capsule/satellite.example.com@EXAMPLE.COM \
-s idm1.example.com -k /etc/foreman-proxy/dns.keytab
NOTE
When adding a keytab to a standby system with the same host name as the
original system in service, add the r option to prevent generating new credentials
and rendering the credentials on the original system invalid.
6. Set the group and owner for the keytab file to foreman-proxy as follows.
31
Red Hat Satellite 6.4 Installing Capsule Server
b. Select Add and enter the zone name. In this example, example.com.
d. On the Settings tab, in the BIND update policy box, add an entry as follows to the semi-
colon separated list.
b. Select Add.
c. Select Reverse zone IP network and add the network address in CIDR format to enable
reverse lookups.
e. On the Settings tab, in the BIND update policy box, add an entry as follows to the semi-
colon separated list:
Configure the Satellite or Capsule Server Managing the DNS Service for the Domain.
32
CHAPTER 4. CONFIGURING EXTERNAL SERVICES
2. For each Capsule to be updated, from the Actions drop-down menu, select Refresh.
b. On the Domain tab, ensure DNS Capsule is set to the Capsule where the subnet is
connected.
c. On the Domains tab, ensure the domain to be managed by the IdM server is selected.
d. On the Capsules tab, ensure Reverse DNS Capsule is set to the Capsule where the
subnet is connected.
IP address 192.168.25.1
33
Red Hat Satellite 6.4 Installing Capsule Server
IP address 192.168.25.2
1. Confirm the IdM Server is deployed and the host-based firewall has been configured correctly.
For more information, see Port Requirements in the Linux Domain Identity, Authentication, and
Policy Guide.
4. Confirm that the Satellite or external Capsule are currently working as expected.
5. In the case of a newly installed system, complete the installation procedures in this guide first. In
particular, DNS and DHCP configuration should have been completed.
6. Make a backup of the answer file in case you have to revert the changes. See Specifying
Installation Options for more information.
1. On the IdM Server, add the following to the top of the /etc/named.conf file.
3. In the IdM web UI, go to Network Services > DNS > DNS Zones. Select the name of the zone.
On the Settings tab:
34
CHAPTER 4. CONFIGURING EXTERNAL SERVICES
4. Copy the /etc/rndc.key file from the IdM server to Satellite’s base system as follows.
5. Ensure that the ownership, permissions, and SELinux context are correct.
# restorecon -v /etc/rndc.key
# chown -v root:named /etc/rndc.key
# chmod -v 640 /etc/rndc.key
6. On Satellite Server, run the installation script as follows to use the external DNS server.
2. Ensure the key in the /etc/rndc.key file on Satellite Server is the same one as used on the
IdM server.
key "rndc-key" {
algorithm hmac-md5;
secret "secret-key==";
};
3. On Satellite Server, create a test DNS entry for a host. For example, host test.example.com
with an A record of 192.168.25.20 on the IdM server at 192.168.25.1.
Name: test.example.com
Address: 192.168.25.20
35
Red Hat Satellite 6.4 Installing Capsule Server
5. To view the entry in the IdM web UI, go to Network Services > DNS > DNS Zones. Select the
name of the zone and search for the host by name.
The above nslookup command fails and outputs the SERVFAIL error message if the record
was successfully deleted.
On the Satellite or Capsule Server that is to manage DNS for the domain.
If you backed up the answer file before the change to external DNS, restore the answer file and
then run the installation script:
# satellite-installer
If you do not have a suitable backup of the answer file, back up the answer file now, and then run
the installation script on Satellite and Capsules as described below.
See Specifying Installation Options for more information on the answer file.
# satellite-installer \
--foreman-proxy-dns=true \
--foreman-proxy-dns-managed=true \
--foreman-proxy-dns-provider=nsupdate \
--foreman-proxy-dns-server="127.0.0.1" \
--foreman-proxy-dns-tsig-
principal="foremanproxy/satellite.example.com@EXAMPLE.COM" \
--foreman-proxy-dns-tsig-keytab=/etc/foreman-proxy/dns.keytab
See Configuring DNS, DHCP, and TFTP on Capsule Server for more information.
2. For each Capsule to be updated, from the Actions drop-down menu, select Refresh.
36
CHAPTER 4. CONFIGURING EXTERNAL SERVICES
b. On the Domain tab, ensure DNS Capsule is set to the Capsule where the subnet is
connected.
c. On the Domains tab, ensure the domain to be managed by the Satellite or Capsule is
selected.
d. On the Capsules tab, ensure Reverse DNS Capsule is set to the Capsule where the
subnet is connected.
37
Red Hat Satellite 6.4 Installing Capsule Server
WARNING
This script erases packages and config files such as the following:
httpd (apache)
mongodb
tomcat6
puppet
ruby
rubygems
Procedure
1. In the Satellite web UI, navigate to Hosts > All Hosts and select Delete from the Edit list to the
right of the Capsule Server instance.
2. Navigate to Infrastructure > Capsule and select Delete from the Edit list to the right of the
Capsule Server instance.
# katello-remove
1. On Satellite Server, list all Capsule Servers to find the FQDN and ID of the Capsule Server
instance you want to remove:
2. On Satellite Server, enter the hammer host delete command and specify the Capsule Server
FQDN with the --name option to remove Capsule Server from Satellite hosts:
38
CHAPTER 5. UNINSTALLING CAPSULE SERVER
3. On Satellite Server, enter the hammer capsule delete command and specify the Capsule
Server ID with the --id option to remove Capsule Server from Satellite Capsules:
# katello-remove
39
Red Hat Satellite 6.4 Installing Capsule Server
Capsule Server scalability when managing Puppet clients depends on the number of CPUs, the run-
interval distribution, and the number of Puppet managed resources. The Capsule Server has a limitation
of 100 concurrent Puppet agents running at any single point in time. Running more than 100 concurrent
Puppet agents results in a 503 HTTP error.
For example, assuming that Puppet agent runs are evenly distributed with less than 100 concurrent
Puppet agents running at any single point during a run-interval, a Capsule Server with 4 CPUs has a
maximum of 1250-1600 Puppet clients with a moderate workload of 10 Puppet classes assigned to each
Puppet client. Depending on the number of Puppet clients required, the Satellite installation can scale out
the number of Capsule Servers to support them.
If you want to scale your Capsule Server when managing Puppet clients, the following assumptions are
made:
There are no external Puppet clients reporting directly to the Satellite 6 integrated Capsule.
NOTE
Deviating from the even distribution increases the risk of filling the passenger request
queue. The limit of 100 concurrent requests applies.
The following table describes the scalability limits using the recommended 4 CPUs.
1 3000-2500
10 2400-2000
20 1700-1400
The following table describes the scalability limits using the minimum 2 CPUs.
1 1700-1450
40
APPENDIX A. CAPSULE SERVER SCALABILITY CONSIDERATIONS
10 1500-1250
20 850-700
For more information about tuning your Satellite environment for stability and scalability, see the Tuning
Red Hat Satellite Guide.
41