On RHN Satellite, can we get custom keys set automatically when systems are registered or after registration ?

Solution Unverified - Updated -

Environment

  • RHN Satellite v5.5

Issue

  • How can we populate custom keys when the system is being registered ?
  • Or once the system is registered, depending on the system properties/network values, how can we set the custom key value ?
  • Example : If my Netbackup configuration file that needs to talk to a different backup server depending on the network zone that a server is in. We have a configuration channel per network zone, and use custom keys to fill in the appropriate Netbackup server value based on custom key. How can be set/update custom key value depending on the network zone?

Resolution

While registering the system there is no way to set the custom key values on the system. Those have to be set after registration using the web-interface or using API's.

Also having a conditional population/update of custom values isn't possible through RHN Satellite web-interface unless you do it manually. Usage of API's should help automate it.

Use API's to set custom values - system.getCustomValues and system.setCustomValues.API which you write can be execute directly from the satellite. System profile when registered on satellite has the details of the network i.e ip, subnet etc. This information can be pulled from the system profile using APIs. Once that is done then you can subscribe the system to respective config channels and set the custom values according to the network information populated on the system profile.

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.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.