Synchronize the content to the capsule server

Capsule server install:

1) List capsule servers  from satellite server

[root@satserver ~]# hammer capsule list
[Foreman] Username: admin
[Foreman] Password for admin:
ID | NAME                                       | URL
1  | |
2  |    |

2) List available lifecycle environments to the capsule

[root@satserver ~]# hammer capsule content available-lifecycle-environments –id 2
[Foreman] Username: admin
[Foreman] Password for admin:
1  | Library | Default Organization
2  | devel   | Default Organization
[root@satserver ~]#

id: 2 is my capsule server id.

3) Add life cycle environment to capsule

[root@satserver ~]# hammer capsule content add-lifecycle-environment –environment-id 2  –id 2

4) Added life cycle environment is listed here.

[root@satserver ~]# hammer capsule content lifecycle-environments –id 2

5) Synchronize content.

hammer  capsule content synchronize  –id 2

It takes a while to sync the content based on network.


Install Redhat satelitte capsule server

1) From satellite server generate certficates for capsule server.

capsule-certs-generate –capsule-fqdn  –certs-tar  ~/-certs.tar

[root@satserver ~]# capsule-certs-generate –capsule-fqdn –certs-tar  ~/
Installing             Done                                               [100%] […………………………………………………]

To finish the installation, follow these steps:

1. Ensure that the capsule-installer package is installed on the system.
2. Copy /root/ to the system
3. Run the following commands on the capsule (possibly with the customized
parameters, see capsule-installer –help and
documentation for more info on setting up additional services):

rpm -Uvh
subscription-manager register –org “Default_Organization”
capsule-installer –parent-fqdn          “”\
–register-in-foreman  “true”\
–foreman-oauth-key    “meN959SEtUnFWm2cwDCPhudaUbePW2TJ”\
–foreman-oauth-secret “5tdmdELFfnzA4tDt6oNm9usVKezCmpyS”\
–pulp-oauth-secret    “6a87Bp5YyH4YTp5WLxUnkRoXLSerpkbm”\
–certs-tar            “/root/”\
–puppet               “true”\
–puppetca             “true”\
–pulp                 “true”
The full log is at /var/log/katello-installer/capsule-certs-generate.log

2)  Follow above steps to complete Capsule server installation.

3) Once install done, capsule server will be listed under capsules as shown below.

[root@satserver ~]# hammer capsule list
[Foreman] Username: admin
[Foreman] Password for admin:
ID | NAME                                       | URL
1  | |
2  |    |

As shown above, every satellite server will have one default capsule server with id: 1

Sync and install RPMs from Redhat Satellite Server

Once you login to Redhat Satellite server

1) Create/Choose Organization if you wish to use other than default organization.

2) Import Manifest to get access to Redhat content

Content-> Redhat Subscription -> Browse  ->upload manifest

Manifest successfully imported.

3) Enable repositories to sync from Redhat Content delivery network (CDN)

Content -> Redhat Repositories

And then respective repos: rpms, source rpms, isos, docker stuff ..etc

For ex: rpms -> Red Hat Enterprise Linux 6 Server (RPMs) 

And required version

4) Now Syncronize

Content-> products

Select the repo which you enabled and then “Sync now”

it will take little time based on your network.

5)  Then make content view available for systems.

Content -> Content views -> Create a content view

And select the repositories from the list.

Once its added,  you can view this under List/Remove

6) Then publish a new version into library.  Then all systems subscribed to library environment.

7) Then promote this to other environment if needed. For ex; Dev, QA..etc

8) Activate keys to register systems

content -> Activation keys-> new activation key -> Add

9) Once done with setting up activation key:

install certification rpm system which needs to be registered.

Run the command listed in “details” on system which needs to be registred to environment.

For ex: subscription-manager register –org=”demo” –activationkey=”rhel6.6″

10) yum repolist should show satelitte repo.

11) Go ahead and install packages.