To follow this guide, you need an active Red Hat Automation subscription, commonly known as Ansible and Ansible Tower. This playbook will allow you to register existing RHEL deployments with Insights, this is especially useful for existing public cloud deployments.
- Go to Red Hat Automation Hub: Insights.
- Select Get API token
- Log in to your Ansible Tower instance as Admin
- Select Settings -> Jobs
- Enter the following values:
Primary Galaxy Server
: https://cloud.redhat.com/api/automation-hub/Primary Galaxy Authentication URL
: https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/tokenPrimary Galaxy Server Token
: <generated_token_from_step_2>
- Select Save
-
Make sure that you have an Inventory that is made up of RHEL hosts only - as these are the only hosts you can use with Insights.
-
Create a project that links to your copy of this repo.
-
Make sure you have the right Credentials setup to connect to the machine.
Create a template that uses the Inventory, Project and Credentials as setup above. The following variables are needed under Extra Variables (or an external file):
redhat_portal_username: <red_hat_username>
redhat_portal_password: <password>
insights_display_name: <example_system>
autoconfig: False
authmethod: BASIC
!!! Don't forget to Save the Template!!!
To run the playbook, simply launch it. Tower will automatically pull the Collection from the Automation Hub.
Go to the Insights Dashboard to confirm that the host registered correct.