[Satellite 6] How to manage postgresql.conf and pg_hba.conf files with satellite

Solution Verified - Updated -

Issue

  • The Security team would like to remotely connect to the postgreSQL 'foreman' database directly to collect per host errata stats. how to give access to external user from a specific server.

  • How to configure postgresql.conf and pg_hba.conf so that the modifications do not get overwritten by a Satellite installer run.

  • How to configure postgresql.conf and pg_hba.conf as below:

    postgresql.conf:
    listen_addresses = '*'
    
    pg_hba.conf:
    # Rule Name: allow access to external user
    # Description: Permit connection from 192.0.2.1 to foreman database
    # Order: 100
    #host   DATABASE        USER            ADDRESS         METHOD  [OPTIONS]
    host    foreman         externaluser        192.0.2.1/24              md5
    

Environment

  • Red Hat Satellite 6.8 and later

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