How to install and configure hammer cli on any remote clients of Red Hat Satellite or Capsule 6.X ?
Environment
- Red Hat Satellite/Capsule 6.X
- Red Hat Enterprise Linux 7
Issue
-
How to install and configure "hammer cli" on a client of Redhat Satellite/Capsule 6.X?
-
Will the client host be requiring a "Satellite Infrastructure subscription" attached?
Resolution
-
Make sure the client host is properly registered with the
Satellite/Capsuleserver and has a valid RHEL subscription. -
Synchronize the mentioned repositories on your
Red Hat Satelliteserver and enable these repositories on the client host.
- rhel-7-server-satellite-tools-6.X-rpms
- rhel-7-server-rpms
- rhel-server-rhscl-7-rpms -
If the client host is registered with a
Red Hat Capsuleserver, make sure to have those repositories synced properly in yourCapsuleserver as well, so that further those can be enabled on the client host. -
To install
"hammer cli"on a host, execute the command as mentioned below.# yum install tfm-rubygem-hammer_cli_katello tfm-rubygem-hammer_cli_csv -y -
Perform the required changes in the hammer configuration file
/etc/hammer/cli.modules.d/foreman.ymlas listed.
- Atline 6- change localhost to yoursatellite server's Fully Qualified Domain Name.
- You can mention the password onLine 10after uncommenting it as well. -
For more details please refer to - Standalone Use of Hammer.
For more KB articles/solutions related to Red Hat Satellite 6.x hammer Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x hammer-related Issues
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.