Chapter 3. Install Red Hat Discovery containers in a connected environment
The connected installation process uses container images from the Red Hat Ecosystem Catalogto install and configure Red Hat Discovery on a Red Hat Enterprise Linux system that has internet access. Discovery starts automatically when installed.
3.1. Install the Red Hat Discovery database and server container images for the connected installation Copy linkLink copied to clipboard!
During the connected installation, you obtain the Discovery containers from the container images on the Red Hat Ecosystem Catalog website. You then configure the containers, configure Discovery, and start the containers.
Prerequisites
- The system on which you are downloading the Discovery container images is connected to the internet.
- That system can connect to the Red Hat Ecosystem Catalog.
Procedure
Install or update Podman.
sudo dnf install -y podmanEnable the Discovery repository for the Red Hat Enterprise Linux version and system architecture, and install the
discoveryctlpackage. Replace<repository>with the repository name from the prerequisites table.sudo subscription-manager repos --enable <repository> sudo dnf install -y discoveryctlRun the following command to configure and install Discovery.
WarningDo not run any
discoveryctlcommands withsudoor as therootuser. Doing so will result in a broken installation.discoveryctl installThe Discovery application automatically starts after a successful installation.
NoteWhen you run the
discoveryctl installcommand for the first time, it might prompt you to provide multiple required values.-
discoveryctl installprompts you to define a new admin login username and password. You use those values to log in to Discovery. -
discoveryctl installmight prompt you to enter your credentials for the Red Hat container registry (registry.redhat.io) so that it can pull the Discovery container images. Discovery does not log, store, or use your Red Hat container registry credentials in any other way. The first time you start Discovery, the initial startup procedure for the application might take a long time to complete. To obtain more verbose data during the initial startup of the Discovery application, use the following commands:
# check if the service is running systemctl --user status discovery-app# list all current containers podman ps -a# display service logs sudo journalctl -t discovery-app sudo journalctl -t discovery-server# display and follow service logs sudo journalctl -f -t discovery-app sudo journalctl -f -t discovery-serverIf you want to access Discovery on another computer in the same network, you must allow traffic on TCP port 9443 through any firewall. This applies to any firewall to or on the system that is running the Discovery server.
-
Verification
Run the following command to confirm that the Discovery containers are running:
podman psThe output lists the running Discovery containers, including the server, database, and UI containers.
3.2. Change the Red Hat Discovery username and password Copy linkLink copied to clipboard!
Change the Discovery server login username and password after installation to meet your organization’s security requirements.
Prerequisites
The Discovery server password meets the following requirements:
- It is at least ten characters long.
- It contains at least one number.
- It contains at least one letter.
- It does not match the login username.
- It does not match known weak passwords.
- It does not match the previously provided Discovery default password.
Procedure
To reset the username, run the following command and follow the prompts to enter the new username:
discoveryctl reset_admin_usernameTo reset the password, run the following command and follow the prompts to enter the new password:
discoveryctl reset_admin_passwordNoteIf Discovery is running when you change the username or password, you must restart Discovery for the new values to take effect.
To restart Discovery, run the following command:
systemctl --user restart discovery-appImportantRed Hat does not provide support for lost passwords for Discovery, and Discovery does not offer a method to recover passwords. However, you can reset your username or password at any time after installation completes.
Verification
- Log in to Discovery with the new username or password to verify that the change was applied successfully.