How to use "remote_addr" functionality in Red Hat satellite 6 for Cloud-init and Userdata Templates for Provisioning

Solution Verified - Updated -

Issue

  • How to add "Remote address" in Red Hat Satellite if it is behind the Load balancer for Cloud-init and Userdata Templates for Provisioning.
  • Red Hat satellite 6.8 and earlier version, we had option in WebUI --> Administer --> Settings available to set the remote IP.

    #  hammer settings list --search "name ~ remote_addr"
    ------------|----------------|-----------|---------------------------------------------------------------------------------
    NAME        | FULL NAME      | VALUE     | DESCRIPTION                                                                     
    ------------|----------------|-----------|---------------------------------------------------------------------------------
    remote_addr | Remote address | 127.0.0.1 | If Satellite is running behind Passenger or a remote load balancer, the IP should be set here. This is a regular expression, so it can support several load balancers, i.e: (10.0.0.1|127.0.0.1)
    ------------|----------------|-----------|---------------------------------------------------------------------------------
    
  • How to Configure Capsule to Forward the user data Template


    If you deploy Satellite with the Capsule templates feature, you must configure Satellite to recognize hosts' IP addresses forwarded over the X-Forwarded-For HTTP header to serve correct template payload. For security reasons, Satellite recognizes this HTTP header only from localhost. For each individual Capsule, you must configure a regular expression to recognize hosts' IP addresses. From the web UI, you can do this by navigating to Administer > Settings > Provisioning, and changing the Remote address setting.

Environment

  • Red Hat Satellite 6.9+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content