Skip to content

florianmoss/tower-insights-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Register Cloud Host with Red Hat Insights

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.

Ansible Tower Setup

  1. Go to Red Hat Automation Hub: Insights.
  2. Select Get API token
  3. Log in to your Ansible Tower instance as Admin
  4. Select Settings -> Jobs
  5. Enter the following values:
  6. Select Save

Inventory + Project + Credentials

  • 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.

Template

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

Example: Template Example

!!! Don't forget to Save the Template!!!

Running it

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.

About

Sample playbook for registering RHEL on Insights.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published