2.3.2. Managed Database Requirements

This section outlines additional steps for administrators installing Red Hat Satellite using a Managed Database. The Managed Database component installs essential packages containing the database server and Red Hat Satellite tools to a machine separate from the Red Hat Satellite server.

Note

The same media used for a Red Hat Satellite installation is also used for the Managed Database installation.

Procedure 2.1. Installing the Managed Database

  1. Register to Red Hat Subscription Management. Run the following command to register your system, entering your Customer Portal user name and password when prompted:
    # subscription-manager register
    
    The command displays output similar to the following:
    Registering to: subscription.rhsm.redhat.com:443/subscription
    Username: user_name
    Password: password
    The system has been registered with ID: aa2e5c34-b8d0-4388-b912-6be761c632b1
    
  2. Identify and attach the Red Hat Enterprise Linux and Red Hat Satellite subscriptions.
    List all available subscriptions.
    # subscription-manager list --all --available
    
    Attach the subscriptions. If there are multiple subscriptions to be attached, repeat the --pool=pool_id parameter.
    # subscription-manager attach --pool=pool_id
  3. Enable the Red Hat Enterprise Linux repository appropriate to your operating system version.
    For Red Hat Enterprise Linux 6
    # subscription-manager repos --enable rhel-6-server-rpms
    
    For Red Hat Enterprise Linux 5
    # subscription-manager repos --enable rhel-5-server-rpms
    
  4. Mount the Red Hat Satellite installation media.
    Mount as a CD:
    # mkdir /media/cdrom
    # mount /dev/cdrom /media/cdrom
    
    Mount as an ISO:
    # mkdir /media/cdrom
    # mount -o loop iso_filename /media/cdrom
    
  5. Change to the mounted directory.
    # cd /media/cdrom
    
  6. Run the install.pl script with the --managed-db and --disconnected options.
    # ./install.pl --managed-db --disconnected
    

    Note

    The --disconnected option is required to prevent the installer attempting to connect to Red Hat Network.
  7. The install.pl script asks for the following information.
    • Database name
    • Database user
    • Database password
    • A comma-separated list of local addresses to listen. Leave blank for all addresses.
    • A comma-separated list of remote addresses of Satellite servers, in address/netmask format. The Managed Database allows connections from these addresses.
    Database name: mydb
    Database user: mydbuser
    Database password:  mydbpassword
    Local addresses to listen on (comma-separated, RETURN for all): 127.0.0.1
    Remote addresses to allow connection from (address/netmask format, comma-separated): 192.168.1.10/32
    Initializing database:                                     [  OK  ]
    Starting postgresql service:                               [  OK  ]
    
    The script installs the necessary packages for your Managed Database. This includes a set of management tools for database.
    The script also prepares the database for your Red Hat Satellite installation.
  8. Enable the Managed DB repository according to the Red Hat Enterprise Linux version, and hardware platform.
    For Red Hat Enterprise Linux 6 and AMD64 and Intel 64
    # subscription-manager repos --enable=rhel-6-server-satellite-manageddb-5.6-rpms
    
    For Red Hat Enterprise Linux 6 and IBM System z
    # subscription-manager repos --enable=rhel-6-system-z-satellite-manageddb-5.6-rpms
    
    For Red Hat Enterprise Linux 5 and AMD64 and Intel 64
    # subscription-manager repos --enable=rhel-5-server-satellite-manageddb-5.6-rpms
    
    Red Hat Enterprise Linux 5 and IBM System z
    # subscription-manager repos --enable=rhel-5-system-z-satellite-manageddb-5.6-rpms
    
  9. When the script completes, install your Red Hat Satellite using the instructions from Chapter 4, Installation.