Introduction
This use-case will focus on connecting an individual's Red Hat Portal Account to the Automated Satellite Workshop environment for the purposes of demonstrating Insights functionality.
This exercise is primarily targeted for a Red Hat SA/SSP to deliver a demo of the Insights services, though any individual with a Red Hat Portal Account, the appropriate account permissions and other prerequiistes could run through this exercise.
This exercise is perscriptive in its setup, yet open-ended in its implementation.
Environment
- Satellite 6.x
- Ansible Automation Platform 4.x
- 3x RHEL 7 instances
- Red Hat Portal Account with 2 availble Red Hat RHEL Instanced-based Subscriptions
- Please note - that this lab will consume 2 subscriptions for the duration of this workshop
Exercise Scenario
- Exercise: Setup Insights
Summary
- Insights is a hosted service on console.redhat.com. In order to access this service you need a Red Hat Portal Account
- Since accounts are associated with subscriptions, sharing an account widely could cause a lost of control of the account and subscription consumption
- Therefore this exercise will require the use of a user portal account and will require 2 RHEL Subscriptions
Ok, let's get started...
-
Information required for executing this exercise
-
Manifest created in your portal account targeted to Satellite 6.15 with appropriate subscriptions including a minimum of 2 RHEL Instance-based subscriptions with Smart Management (Employee SKU can be used) and 1 Red Hat Satellite Infrastructure subscription
- Record the name ⇒ manifest_name
-
Offline Token for accessing the Subscription Manager API
- access.redhat.com -> Subscriptions -> Manage -> RHSM API Tokens - Generate Token ⇒ offline_token
-
Your Organization ID
- access.redhat.com -> Subscriptions -> Systems -> Activation Keys ⇒ rhsm_org_id OR
- console.redhat.com -> Services -> Platform/Red Hat Enterprise Linux -> Inventory -> System Configuration -> Activation Keys⇒ rhsm_org_id
-
Red Hat Account username and password
- username ⇒ redhat_portal_username
- password ⇒ redhat_portal_password
-
Login to your AAP UI's
NOTE The following are example URLs. Your student lab URLs will be different.
- Ansible Automation Platform URL
Example: https://ansible-1.{random}.sandbox{###}.opentlc.com*
Steps:
- Use a web browser on your computer to access the AAP GUI via the link found in the Environment above. And use the following username and password to login: admin /
- Upon successful login, you will be able to see the Ansible Automation Platform dashboard.
-
Use the side pane menu on the left to select Templates.
-
Scroll down to find Z / SETUP / Insights.
NOTE This template is a workflow template as indicated by the visualizer icon and type = Workflow Job Template
-
This workflow job template executes the following job templates
- Insights / Replace Satellite Manifest - Replaces the Satellite manifest in the workshop with one that attaches to your Red Hat Portal Account
- SERVER / RHEL7 - Register - Registers the hosts to Satellite
- Insights / Install and Register - Installs Insights and registers the 3 RHEL hosts to Insights. It also runs the Insights Compliance role which installs the openscap packages on the hosts
- Insights / Create Insights Credential - Creates the AAP Insights Credential using your portal account information
- Insights / Create Insights Project - Creates an Insights Project in AAP that provides a project for remediation playbooks created in Insights to be consumed by AAP
NOTE Prior to executing the workflow job template you MUST add variables to the template. To do that:
-
Configure the following variables captured during the prerequisites:
- manifest_name
- offline_token
- rhsm_org_id
- redhat_portal_username
- redhat_portal_password
-
Once the variables are entered click Save
-
Then click Launch
-
Since we are registering hosts to Satellite during this workflow you will be presented with this screen
-
Enter the information as follows:
- Server Name or Pattern - node
- Choose Environment - Dev
-
Click Next and then Launch and watch the workflow complete
NOTE You may click on each job template being executed to see the details of that job template run)
- A successful workflow run will show the following:
At this point in the exercise the Ansible Satellite Workshop is now connected to your Red Hat Portal Account and is configured to support demonstrating Insights.