How to override a parameter with another parameter in a Satellite Provisioning Template regardless of default precedence?

Solution Verified - Updated

Environment

  • Satellite 6

Issue

  • Is there a way on Satellite to override Host Group values in provisioning template for a specific Subnet?
  • How to override Host Group parameter with a Subnet parameter in a Satellite Provisioning Template?

Resolution

  1. Define the paramers with a custom name, for example with a suffix based on the type of parameter.

    • For example: static_routes_subnet, static_routes_hostgroup.
  2. Use a logic that does populate and override the parameter per your needs. For example this will make the Subnet parameter take precedence over Host Group parameter:

     static_routes=static_routes_hostgroup if defined?(static_routes_hostgroup)
     static_routes=static_routes_subnet if defined?(static_routes_subnet)
    

For more KB articles/solutions related to Red Hat Satellite 6.x Provisioning Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x Provisioning related Issues

Root Cause

  • The parameters on Satellite have a predefined precedence, in this order (least significant first):
    • Common
    • Organization
    • Location
    • Domain
    • Subnet
    • OS
    • (Host) Group
    • Host
SBR
Product(s)
Components
Category

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.