This workshop will have you deploying and creating native docker images for a Node.js based website and learning to leverage the power of OpenShift 4 to build, deploy, scale, and automate.
Anyone who has had any exposure to Containers
- Architects
- Developers
- Technical leads
- Operations Engineers
- What you will learn
- S2I
- Rollback Replication and Recovery
- Using Labels
- CI/CD pipeline
Welcome to the workshop! This particular workshop will have you deploying with native docker images as well as using OpenShift to create docker images for a Node.js based website. You will also be leveraging the power of OpenShift to build, deploy, scale, and automate.
If you don’t have a person GitHub account please sign up here to create a free account.
Create GitHub Account
This workshop currently focuses on 4 main customer pain points:
- Compliance (OpenSCAP Scanning) and Vulnerability Management
- Patch/Package Management
- CentOS to RHEL conversion
- Vulnerability Management with Insights
We will be using the following terms throughout the workshop labs; so, here are some basic definitions you should be familiar with. You’ll learn more terms along the way; but, these are the basics to get you started.
Container - Your software wrapped in a complete filesystem containing everything it needs to run
Image - We are talking about docker images; read-only and used to create containers
Image Stream - An image stream comprises one or more OCI images identified by tags.
Pod - One or more docker containers that run together
Service - Provides a common DNS name to access a pod (or replicated set of pods)
Project - A project is a group of services that are related logically
Deployment - an update to your application triggered by a image change or config change
Build - The process of turning your source code into a runnable image
BuildConfig - configuration data that determines how to manage your build
Route - a labeled and DNS mapped network path to a service from outside OpenShift
Operator - A method of packaging, deploying and managing a Kubernetes application
Cluster management nodes - The foreman of the OpenShift architecture, the management node schedules operations, watches for problems, and orchestrates everything
Cluster worker nodes - Where the compute happens, your software is run on worker nodes
This lab provides a quick tour of the OpenShift console to help you get familiar with the user interface. If you are already familiar with the basics of OpenShift, this will be easy in that we are simply ensuring you can login and create a project.
OpenShift provides a web console that allows you to perform various tasks via a web browser.
Use your browser to navigate to the URI provided by your instructor and login with the user/password provided.
$ oc login https://api.openshift4.lab-emergent360.com:6443 --insecure-skip-tls-verify=true
![ocp-login](https://private-user-images.githubusercontent.com/18014714/348922951-84b7f94f-e369-4a58-8c34-f645257ce8ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zNDg5MjI5NTEtODRiN2Y5NGYtZTM2OS00YTU4LThjMzQtZjY0NTI1N2NlOGFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU4OTYyZTAyZmFjNDlhMWI1MmRiMGQ4YjdmNGEzODM0NDU5NjczM2Y4NDVkMmMzMTAzOGJhY2JhZjA3OTg3ZGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.KuG8ZF7SjmRg1JdFzJNDCK76N8Xh-IkDgJ3LAX2Vp3M)
Login Webpage
Once logged in you should see your available projects - or you will be provided with an informational box that “No projects exist”
Developer Default View
First let’s create a new project to do our workshop work in. We will use the student number you were given to ensure you don’t clash with classmates:
Click on the “Project: all projects” button and select “Create Project” from the drop down menu
Populate “Name” with “terminal-0 ” and populate “Description” boxes with whatever you like. And click “Create”
This is going to take you to the next logical step of adding something to the project, but we don’t want to do that just yet.
Click “+Add”, to add a new item to the project
Click “Container Image”, to add an existing image from the container registry
In the dialog box under the default radio button, “Image name from external registry”, enter “quay.io/openshifthomeroom/workshop-terminal”, the image should be “Validated” when found.
Observe default values that are populated in the search results
Click “Create”
You will now see a screen that shows a thumbnail view of your deployed application. Click on it, to expand the screen, and see details of the running pod:
“Topology”
Test out the Butterfly terminal
Notice that in the web console overview, you now have a URL in the service box. You can see the webapp running by clicking the route you just exposed.
Check to see what projects you have access to: Use your existing Butterfly terminal, and login, using the same URI with following command:
$ oc login https://api.openshift4.lab-emergent360.com:6443 --insecure-skip-tls-verify=true
The preceding command should output:
Authentication required for https://api.openshift4.lab-emergent360.com:6443 (openshift)
Username: user1
Password:
Login successful.
$ oc get projects
oc get projects
NAME DISPLAY NAME STATUS
terminal-1 Active
Type the following command to show services, deployment configs, build configurations, and active deployments (this will come in handy later):
$ oc status
Summary You should now be ready to get hands-on with our workshop labs.
We will of course take a look at Inventory management as well:
Efficient inventory management is crucial for scaling your automation. We'll explore how to manage inventories in AAP, including adding machines by IP address, hostname, or cloud provider. Learn how to leverage dynamic inventories to automatically discover and manage your infrastructure.
Finally, we'll take a look at Security and Access Control:
Security is paramount. We'll discuss the robust security features within AAP, including role-based access control (RBAC) and credential management. Learn how to assign different levels of access to users and teams within your organization.
Putting it All Together:
We'll wrap up by showcasing some real-world examples of how AAP can be used to automate various tasks across IT operations, including provisioning servers, configuring software, and deploying applications.
Gain inspiration for how to leverage AAP to streamline your own processes and boost your team's efficiency. Throughout the workshop, there will be ample opportunities for hands-on practice, Q&A sessions, and interaction with your fellow participants and trainers.
Get ready to embark on your automation journey with Ansible Automation Platform!
The objective of this exercise is to setup the lab environemnt following an Infrastructure as Code process. This exercise will require you to launch a series of playbooks. The playbooks accomplish the following:
Populate Ansible Controller with an inventory source, add templates, as well as an additional project. Publish RHEL7 dev content view in Satellite Register servers to the Satellite installation - RHEL7 Register servers to the Satellite installation - CentOS7 Populate dynamic inventories - RHEL7 Populate dynamic inventories - CentOS7
Log into your Ansible Automation Platform (AAP2) Controller
Use the link found here
Select the link noted for "Automation controller"
Once logged in, you should be able to see the Ansible Automation Platform dashboard:
Use the side pane menu on the left to select Projects and review the two projects named Automated Management and Fact Scan. These projects, along with the Workshop Inventory under Resources, and Inventories, have been set up for you during the provisioning of the lab environment.
![Projects](https://private-user-images.githubusercontent.com/18014714/326584935-aaa8bf2a-b366-4302-944a-cfb04bc1ada2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY1ODQ5MzUtYWFhOGJmMmEtYjM2Ni00MzAyLTk0NGEtY2ZiMDRiYzFhZGEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZjNTJhNTU3YWI5NTU1ZjZkYWJjMTg1MThhM2E1OTZjZDJlMDgyNDI5YjNmMjllMWFkMDljNzJhNmY1NjFhMzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.uOFXE2JUKxiyiHJTc7WPVivPDJeunrswACJdYRl7UQM)
Next, we will execute our first job template. We'll be working with several templates during today's workshop, and this step uses a couple of them to initialize the lab environment.
![Templates](https://private-user-images.githubusercontent.com/18014714/326585775-c05f3c6c-4264-4e80-8a00-a2eaa4172183.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY1ODU3NzUtYzA1ZjNjNmMtNDI2NC00ZTgwLThhMDAtYTJlYWE0MTcyMTgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNhYzU4NGMxMjNjY2Q1YzNjMzhhNThiYjNlNGRiZDQ4YjhiMzUzNjE1YjllMmFjZTAyNWFmYzc0ZTMwNGMxZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x7eJOkwYzfLeL8Dk5KLTF_8W0tJq4Wc7Ih0Ka92pXJQ)
You should initially see three Templates, named Demo Job Template, Z / CaC / Controller, and Z / CaC / Satellite
Notice that the Z / CaC / Satellite template has already been run for you.
We will have to run the Z / CaC / Controller job template. To do this, click either into the job template and click Launch, or click the Rocketship icon.
![controller](https://private-user-images.githubusercontent.com/18014714/326586747-a2cd2502-1d65-4146-8d00-0ef265de1b04.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY1ODY3NDctYTJjZDI1MDItMWQ2NS00MTQ2LThkMDAtMGVmMjY1ZGUxYjA0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFhZDEwOWM1ZjZhYjlhYWJkNDNkMzIzYzQ3ZTEzYWJmZjBmOThlYWVhZTdlYjEzZmI3YTI2NTgwZWQ5MDJiMWImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.bT8gKQSnIf8jFhFo4RKY8g-1F4kuNz6RjNCiWRr4mYA)
You will be taken under the Views, Jobs output window, where you can view the output from the job run. This will display all the tasks executed as part of the playbook. This should take about two minutes to complete and you should see a green "Successful" tag after the name of the playbook in this view once the last task has completed.
![Controller Play](https://private-user-images.githubusercontent.com/18014714/326587641-ec278bcb-43f4-4623-aeaa-5811166088f9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY1ODc2NDEtZWMyNzhiY2ItNDNmNC00NjIzLWFlYWEtNTgxMTE2NjA4OGY5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRiMGUzM2U3YzFiNGEyYTc4ZjExNTQzMTZkOGZkNDg1NTUzNmQxMGU2NWQ3M2I5YmY5OTc0NzY1MTgzM2M1OGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CWhBWYWs6ursBD9EI_xE_5xtJIHK8ZgYRf6ufVRK6-o)
Remember to wait until you see the green "Successful" tag before moving on to the next exercise.
Then, navigate back to Templates on the left side pane.
You will notice many more Job Templates have been provisioned in your Controller. We will use some of these in today's workshop.
![Templates](https://private-user-images.githubusercontent.com/18014714/326660138-a807edef-6232-44a8-b132-f6966490294f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NjAxMzgtYTgwN2VkZWYtNjIzMi00NGE4LWIxMzItZjY5NjY0OTAyOTRmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3YmNjNGJjZTViYjUwZDQwOGM1ODA3OTQzODU0Mzc1YTU0OThmNjVlYjFlOTM3ZjAyMzM4ZmZhNGZmYThmYjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hjwrZQO6-6Zat6bekl-6nqQx499LVIL7JoWVbn3NdG4)
Next, let's run SATELLITE / RHEL - Publish Content View job template by clicking the rocketship icon or by pressing the Launch button. When prompted by the survey for the content view to publish, from the drop down menu, select RHEL 7.
![Publish Content View](https://private-user-images.githubusercontent.com/18014714/326660748-df91cd75-218b-4b8f-9501-e6ac0aa9b8a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NjA3NDgtZGY5MWNkNzUtMjE4Yi00YjhmLTk1MDEtZTZhYzBhYTliOGE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE3ZDNmNTc5MjkyNDY0MWJkMDk0NmZjMDlhNzkyYzg1ZDE2ZWI4YzE5YmM4MDg2NjFlZmVlZTJkNWZhMzk0Y2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sPJC38qIZjlcPcYS8l_IZ2VJLbjE8OkqXYS9dbbFe3Y)
![Survey](https://private-user-images.githubusercontent.com/18014714/326661376-7cdd8bf6-c7ad-4b52-9bdb-6fa190c05ef2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NjEzNzYtN2NkZDhiZjYtYzdhZC00YjUyLTliZGItNmZhMTkwYzA1ZWYyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmZGFiZWQzNTYzYThkNTJhZTJlZGEwODFiNDFmMGViMzgzMzkzMGFkMDUyNWQ2ZGY4NDE0NzE3OGY4Zjg2NjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.k2w-HCPOzvT7ohyys6m_nzMfrP-StM6xdqhbVsLQKdw)
Hit Next, then Launch.
You will be taken to the Jobs view, showing the output window for the template SATELLITE / RHEL - Publish Content View. This job will take about a minute to run.
![Publish Content View](https://private-user-images.githubusercontent.com/18014714/326662155-35fc21d8-bb3c-455f-a11a-34d722e9f85a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NjIxNTUtMzVmYzIxZDgtYmIzYy00NTVmLWExMWEtMzRkNzIyZTlmODVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNmNGQ3Yzg3ZjE3NDM3MjQ5NGYxMWEyZDBkM2U3YWM1ZDY0NmQyODE5MjMzZjcyY2I1NjExZTBiMjdjY2ExNDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.14KaXE6i9PupVciEoVPBj2OW85U6Sfwu9z4Ya5ZZlP8)
Next, click on Templates and search for CONVERT2RHEL / 01 - Take node snapshot job template. Click on the rocketship icon or the template, and click Launch. This job template will take longer, about seven minutes to complete.
![Convert2RHEL Take Snapshot](https://private-user-images.githubusercontent.com/18014714/326662896-3f8b53bc-9b27-4ad7-a633-c1c723ee4779.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NjI4OTYtM2Y4YjUzYmMtOWIyNy00YWQ3LWE2MzMtYzFjNzIzZWU0Nzc5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE5MjE0NWYzODg2MDFjMTljOTQ4ZmQ3MjQ3YWQwYmE4ZTU1MTM3NzhjNTZjNmYyYjBmZmU0YzA2N2M1NGEyYWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EluvSwvMIGuIVrSdGKxWeTWjMe4N4kyk6ymBQjNZZKk)
![Node Snapshot Output](https://private-user-images.githubusercontent.com/18014714/326667038-8b7f0ce8-1374-4e7a-a475-ab6f356fd761.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NjcwMzgtOGI3ZjBjZTgtMTM3NC00ZTdhLWE0NzUtYWI2ZjM1NmZkNzYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg5ZTVjNGI3MDBmMzkyMmRmZDUxZjMxMDJiYWI4MGJkMmE4MjIxMjY3Zjk1ZDBkMTdjNDE2NDVjNmY0NmY0YjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Xh2uHOnQYEvOc9mIkXJ9M3Y-o_pYlQQFFC0QeeTWuuU)
Next up, click on Templates, search for, and run the SERVER / CentOS7 - Register job template by clicking the rocketship icon or by clicking into the template and selecting Launch. When the survey appears, complete it as follows:
![CentOS Register](https://private-user-images.githubusercontent.com/18014714/326669182-7dd787a3-cd77-4a68-87e4-d9819016c7e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NjkxODItN2RkNzg3YTMtY2Q3Ny00YTY4LTg3ZTQtZDk4MTkwMTZjN2UxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRiNzhhZGMyNTUyNTk5YTQxMDdlZTE3OTg3N2M0NzllMzdlNTdmMDQ2Mzk4YWI2MmZlZjYwNGIxMTRiODgwNTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Xra1UAI1qn7es7-6iOCz7JuLbTBM63pEWWQC8jXGewM)
![CentOS Register Survery](https://private-user-images.githubusercontent.com/18014714/326669305-7584c257-c0f2-4c5e-ab7d-46e97280c17c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NjkzMDUtNzU4NGMyNTctYzBmMi00YzVlLWFiN2QtNDZlOTcyODBjMTdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3ZDEyZTUzODgwYjEwOWJlZDljMDgxOTc4YTVhMTNlMDEzMTg3NDZkNWQxNjk2MjU1Y2U4NmNmZmEwZjhiM2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Y0ar_KVQDoWKGfw6f93YTYMhgur62VIhvZD-gwzOZEA)
The SERVER / CentOS7 - Register output window will appear, showing you the results of each task executed as part of the playbook.
![CentOS7 Register Output](https://private-user-images.githubusercontent.com/18014714/326669845-3794c1c5-9c5b-4754-9d49-a5b61946b2eb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2Njk4NDUtMzc5NGMxYzUtOWM1Yi00NzU0LTlkNDktYTViNjE5NDZiMmViLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg2MjkwZjM5OTA3ZmQwMzY5MTZiNTJhMjQ4ZGNhODQwMDdiY2Y2YTg4MDZhNWFkODliYTg2Yzg4MWU2MGNhYTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.rzfThsUqLCnqdFrBzBam_KN17WEFjVt3trumjtRe44Q)
Next, go back to Templates and run the EC2 / Set instance tags based on the Satellite (Foreman) facts job template by clicking the rocketship icon or clicking into the job template and selecting Launch.
![EC2 instance tags](https://private-user-images.githubusercontent.com/18014714/326670108-91855439-4681-4db6-8ef9-21f41727e981.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzAxMDgtOTE4NTU0MzktNDY4MS00ZGI2LThlZjktMjFmNDE3MjdlOTgxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiNzFiMzhlZmJjZWI2NDNjOGJiNjExMGVhYWY0Yzg3YThlYjg5ZjQwOTczZGVjZTYwZWQ3ODdlYmNlZGQxYmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Q5C__KXE-kg_VWLUBohwZo6Aosx7EXBIsPPMel8NBDU)
![EC2 set instance tags](https://private-user-images.githubusercontent.com/18014714/326670264-e3843364-a4c2-4eb1-8f75-a0cf5b620d7c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzAyNjQtZTM4NDMzNjQtYTRjMi00ZWIxLThmNzUtYTBjZjViNjIwZDdjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA2N2QzNmM3MGYwYzVmNTZjNGVjY2IwMjI5Yzk0OTViYmE2ZmZmZDlmNTA0NzAwMzhkYzc3ZGU4MjU2ODUzNGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZRfIwYO4o1w28T945uomCBv28LURmGibkHNQlBBUmQY)
Next up, click on Templates, search for EC2 / Set instance tag - Ansible Group template, click the rocketship or click on the template and select Launch
![EC2 instance tag Ansible Group](https://private-user-images.githubusercontent.com/18014714/326670642-d774a3ad-d2bd-4e04-b87e-0209a69e3c68.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzA2NDItZDc3NGEzYWQtZDJiZC00ZTA0LWI4N2UtMDIwOWE2OWUzYzY4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY4MTA4MTA1NmU4NTg0YjUzOWEyOGFmYjIzZjRiODliZjI4ZTBhMjVjMTdmMzdlZDVhYzM1OWIyMzIxMDQ0MjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HkDq3DbBpc4FGkCsA99tHkHJsaVXSI8uRHSNssQqw84)
Note that Ansible is being directed to map nodes to a group name. This will be used later via dynamic inventory building to create Ansible inventory groups.
![Ansible Inventory Group Tags creation](https://private-user-images.githubusercontent.com/18014714/326670981-aa04ccf0-8365-4eb0-aa8b-0009f2608385.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzA5ODEtYWEwNGNjZjAtODM2NS00ZWIwLWFhOGItMDAwOWYyNjA4Mzg1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwMDE3YzNjN2UyMjQ4OGMwMWVmMDVjYTZlMTJjMWI5YzVkOWQ2ZjVlOWE5YmM4YWZkOTJkNmIyNzIyZmUzODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.yEIHV2__TAbiwBfFNXnfoX7FUCpKXE1AiiCSYxJx3Ls)
Dynamic inventories can be populated via dynamic sources
Before running additional templates, click on the Inventories menu item and select All Development and the Hosts tab. Do the same for CentOS7 and RHEL7 Development inventories. You will notice the Hosts tab on each is empty. Note the Sources tab as well, looking at the Details tab to see the source variables that will be used.
Let's run a Template to update these inventories. Search and run the CONTROLLER / Update inventories via dynamic sources job template by clicking the rocketship icon or selecting the job template and selecting Launch.
![Update inventories](https://private-user-images.githubusercontent.com/18014714/326672564-231270d9-c82a-4418-be25-6e6fc6950000.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzI1NjQtMjMxMjcwZDktYzgyYS00NDE4LWJlMjUtNmU2ZmM2OTUwMDAwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNjYzExYWEyMGRiZmU3NTQxZWIyMjBkMmRiZTVlNWU0ZWYzZWNhYTM5YzYyMzlmYWVmMGQ4YzEzZWQ1Yjk0YjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.WV6UI12Y3E3w_IiQt_-m5O3Mc2uLjb4WzIVcE9crgxA)
Complete the Survey:
![Inventories Survey](https://private-user-images.githubusercontent.com/18014714/326672676-bcaca8b1-577b-4c8e-b090-f1cbdc71a661.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzI2NzYtYmNhY2E4YjEtNTc3Yi00YzhlLWIwOTAtZjFjYmRjNzFhNjYxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiYmY5Y2ZlY2Q2ZWMyYmVhMjExNzliNjVmYjZmNTQ1ZWRiYjljMTU3OWY3MmE1Mzg3MDU1NmU3ZGM3MGJkMjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.G6cAWhovRUJjAyZXm7fLf9RJ3KzcQbfbWf0l62g9BUQ)
![Inventories output](https://private-user-images.githubusercontent.com/18014714/326672798-340be4f2-8247-4b8c-ba8e-13d7ada2e0c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzI3OTgtMzQwYmU0ZjItODI0Ny00YjhjLWJhOGUtMTNkN2FkYTJlMGM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBmNmM3ODE0MTAzMDM0ZjNhMGNjYzBhMzY3M2NkODdkNzQ2OGFjZDAwYTk1OTYwYzg4MjA3NzU1ZTIzODU1NGImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CviuruSW49HLOG3TKT61aefhmzQ6UKjbh_IFAYJIyoM)
Run the same template again, this time to update the CentOS7 instances. You will still need to select the Templates link from the menu, otherwise you will just rerun the template with the same survey if you select the rocketship icon directly from the CONTROLLER / Update inventories via dynamic sources output page you are currently on.
![Controller for CentOS7 template](https://private-user-images.githubusercontent.com/18014714/326673416-1b812aab-6702-4da2-8285-6dfd442ad36d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzM0MTYtMWI4MTJhYWItNjcwMi00ZGEyLTgyODUtNmRmZDQ0MmFkMzZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ0NjNjNDc1YzRkMmE1ZTYwMzc4ZTM3MTE3MDhhOGNmMmYxNjczYTgxMDZjOTM0NmZlMDZjZTM2NGUyODJlNGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VAy1BIQKpQrpUMrmH0qJD7xjhaQTeeg8XbRqP_icnl0)
Complete the survey this time with these variables
![CentOS7 survey variables](https://private-user-images.githubusercontent.com/18014714/326673568-026c980c-68b9-44dc-9701-e5626d7e37a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzM1NjgtMDI2Yzk4MGMtNjhiOS00NGRjLTk3MDEtZTU2MjZkN2UzN2ExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyODI1MGI0NTVmYTFkMmYzMGFiZWNhMDI3Zjk2NDRhM2IzNmRkZTY1OTAyNjJmODU4YTFjMDM2MDMzZDVhZTcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gKndZ2R0kbw-_N4PvlfXUg3at3XTF2_JgA6LtEz8qk0)
![CentOS7 inventories output](https://private-user-images.githubusercontent.com/18014714/326673813-79ae99f9-c119-4310-86e9-b8f79516768b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzM4MTMtNzlhZTk5ZjktYzExOS00MzEwLTg2ZTktYjhmNzk1MTY3NjhiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkM2UxZWFlOWQzMDIyN2Y4M2QyNjIwNTNkNDY1MjcwZjQzZTg3NDY2OWJjZDcxYjgwMjNmMjJkOTI3NDUwZGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.j5rs-gHIG7AALZscYx6m2LIA7Wvq9EPnOAQ-KS9_kCw)
During this portion of today's workshop, we will give you a comprehensive overview of Red Hat Satellite, a powerful management tool for Red Hat Enterprise Linux (RHEL) deployments. We'll dive into its features, explore its functionalities, and discover how it can streamline your infrastructure management. By the end of this portion of the workshop, you'll be equipped to leverage Satellite's capabilities to automate tasks, improve security, and achieve greater efficiency in managing your RHEL environment.
Satellite provides many benefits within your IT stack, namely, it serves as...
A centralized management platform for Red Hat Enterprise Linux (RHEL) systems.
Simplifies and automates tasks like provisioning, configuration management, patch management, and subscription management.
Provides a single point of control for managing your entire RHEL infrastructure.
Reduced Costs: Saves time and resources by automating tasks.
Increased Efficiency: Streamlines workflows and simplifies management.
Improved Security: Enhances security posture by automating patch deployment and vulnerability management.
Enhanced Compliance: Simplifies compliance audits with centralized reporting and audit trails.
System Provisioning: Automate the deployment of new RHEL systems with pre-configured settings.
Configuration Management: Apply and enforce consistent configurations across your entire RHEL environment.
Patch Management: Automate the deployment of security patches and software updates to ensure your systems stay up-to-date.
Subscription Management: Manage and track RHEL subscriptions for all your systems from a central location.
Content Delivery: Efficiently distribute content like patches, software updates, and configuration files to your RHEL systems.
Reporting and Auditing: Generate comprehensive reports for compliance audits and track system activity.
Satellite Server: The central management hub that controls and coordinates all Satellite operations.
Capsule Servers (Optional): Optional servers deployed closer to remote systems for faster content delivery and reduced network traffic.
Client Systems: RHEL systems managed by Satellite.
Content Repositories: Repositories containing software packages, patches, and configuration files.
External Systems: External systems like identity management and subscription management services.
We ran several playbooks in Ansible to help configure our Satellite environment. As we are taking our tour today, open your instance of Satellite by clicking the link from your student environment
Once logged into Satellite, click the Hosts button from the side panel menu, then select All Hosts.
![All Hosts](https://private-user-images.githubusercontent.com/18014714/326675480-bb973cd3-a9d9-4266-b4d8-7534137fba45.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzU0ODAtYmI5NzNjZDMtYTlkOS00MjY2LWI0ZDgtNzUzNDEzN2ZiYTQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBkNzI2MThkMzRhNDA0YjdlNzJiMDdjMTFmODg5Nzc0NjYwYjYzNjk2NGY2OTRjOWU0M2E5YTdlOTAyMWVkMGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hND6zQJFzhBg5b8mc0TgkHLAFAqK_OhfJKnjjtqXSPw)
You should see your RHEL 7 and CentOS7 instances appearing in your list of hosts. These nodes are now registered to your instance of Satellite.
Next, let's verify that all your content is available for your Dev, QA, and Prod environments. To do this, click on Content, then Content Views, then search for RHEL7.
![Content](https://private-user-images.githubusercontent.com/18014714/326676009-7c2f9602-ab05-4d8b-8820-468b28c10dbf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzYwMDktN2MyZjk2MDItYWIwNS00ZDhiLTg4MjAtNDY4YjI4YzEwZGJmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE0MGRiZWRhMjFmYTczNzViMjUzOGIwNGI3ZTI1NDZmNGJlMWY5ZjI0OTUxMGRhNGUwY2RjZjBiMjhmMWExYjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kOJ2JqM4XZz07-2DX1tL18ART044zu-Q0rCYAGWh1Uk)
As we continue our tour, we will learn how to configure and perform an OpenSCAP scan using playbooks in Ansible Automation Platform 2 with Satellite. When running multiple Red Hat Enterprise Linux systems, it's important to keep all of these systems compliant with a meaningful security policy and perform security scans often. OpenSCAP is an open source project that is used by government agencies, corporations, as well as e-commerce (just to name a few examples). OpenSCAP provides tools for automated vulnerability checking. Satellite can be loaded with RPM packages for SCAP workbench v1.2.0-8 which will provide scanning capabilities. Satellite is also loaded with the SCAP security guide v0.1.54-3 for RHEL7 and CentOS device which provides the appropriate XCCDF benchmarks for PCI and STIG compliance for the purpose of this exercise. This exercise will focus on RHEL systems, CentOS will be out of scope.
Now, we will create a new compliance policy. To do this, we will configure a compliance policy that we can use to scan our RHEL nodes.
In Satellite, hover over Hosts in the panel to the left and click on Policies.
![Compliance Policies](https://private-user-images.githubusercontent.com/18014714/326677660-b7bb7bb0-0cb5-4bdd-b9e4-364031a80b24.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2Nzc2NjAtYjdiYjdiYjAtMGNiNS00YmRkLWI5ZTQtMzY0MDMxYTgwYjI0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdmMjMyMGUzYzRkYjU5NzQyNGJhMmY3ZjA4YTU2ZGViYTZjMzNmNGNhNmFhY2RjMzM0MTA1ZjYxMmFmMjY0ZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.a3UgSniZE2GIP3TM1e7X7ej424hmiV8OBZ8VWj-gYt8)
Click on New Compliance Policy and complete each of the steps.
![Deployment Options](https://private-user-images.githubusercontent.com/18014714/326677881-8ed52c93-05cf-4b99-84e9-93e21ec5d3d9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2Nzc4ODEtOGVkNTJjOTMtMDVjZi00Yjk5LTg0ZTktOTNlMjFlYzVkM2Q5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiOWE1NTNjMmY4MzUyNTYxZDA2MzkxZjA3YTAwZTgwZjBkZTJjMWQzYTZkYzE5ZGJhMjc1YjcxNDAwOWJmZjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XY0qxGVav6xjbp81l6tmdM9pvzALKCmrETLbBfjfPuY)
Leave Manual selected and click on Next.
![Policy Attributes](https://private-user-images.githubusercontent.com/18014714/326678052-63000c44-cb78-4b72-af01-7457ea80196b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzgwNTItNjMwMDBjNDQtY2I3OC00YjcyLWFmMDEtNzQ1N2VhODAxOTZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUyMjgwMjBkYmU1MGQyNTM4NzFkZTVkN2E2Mzk2MGZlN2I0YzdjY2E5NmVkODZkNjY0YjhjMWY3YzI1NGI3YjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.gnwlW10isLrumFM0Vk9D3la0p7ynI8Du8UvgwiPx_g4)
Under the Policy Attributes tab, enter PCI_Compliance in both the Name and Description fields. If it gives you an error that the name has already been taken, you can use PCI_Compliance2
Click on Next.
Under the SCAP Content tab, select Red Hat rhel7 default content in the SCAP Content drop-down box, followed by PCI-DSS v3.2.1 Control Baseline for Red Hat Enterprise Linux 7 in the XCCDF Profile drop-down box.
![SCAP Content tab](https://private-user-images.githubusercontent.com/18014714/326678718-3e1e49da-3cdb-4c52-941e-1b43d2963ce2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2Nzg3MTgtM2UxZTQ5ZGEtM2NkYi00YzUyLTk0MWUtMWI0M2QyOTYzY2UyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM4ZTAzNWRhNWViNTg1ZmI0MGQ1NjljZjkzN2QzZDQxNDBlNTliYjJmMGViNDFjM2Q0YWZmYTQ5MzdlMzMzMGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.I96TGoKaJXF3tFYkycDZe6qkUarNmM0wRx68nU6HnCw)
Click on Next.
Select Weekly and Monday for the Schedule tab.
![Schedule tab](https://private-user-images.githubusercontent.com/18014714/326678926-3d314e01-b765-44c9-b02f-fe66c7c60802.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2Nzg5MjYtM2QzMTRlMDEtYjc2NS00NGM5LWIwMmYtZmU2NmM3YzYwODAyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE5NmIzNmY4M2NlMTI3OWQ0MDI0NDU4MzEzOGIwNzFlNWFiYzdlMTVkZWMzZTBiZjJkZTQxYjNmY2NlMWRmMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5HawWZDKZ14hUDKKs45o2RivfKzdGedvBmnhim4kSGs)
Click on Next.
Keep the default values for the Locations tab.
![Locations tab](https://private-user-images.githubusercontent.com/18014714/326679121-d4fcac82-d175-46e0-9eb8-02e84199cdfa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzkxMjEtZDRmY2FjODItZDE3NS00NmUwLTllYjgtMDJlODQxOTljZGZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYyMWFiZDU1YTNkN2Y3YzdmMWQ4MzExMjk2NGIwMzA4YzZmM2Y5ZTVhZDc3NzhmNDUyMDM0ZGJhNmZlOGZmYzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wknfa81Go-9pxq5LPyoc-YqU7m6AwJjtciNys34nal8)
Click on Next.
Keep the default values for the Organizations tab.
![Organizations tab](https://private-user-images.githubusercontent.com/18014714/326679279-7cc3ace0-da86-44a4-bdf8-60a55b4d25da.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2NzkyNzktN2NjM2FjZTAtZGE4Ni00NGE0LWJkZjgtNjBhNTViNGQyNWRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRlNjZlODQ1MzM1MDgyOGUwMTJjNDVhY2I5NDhiMGRlZTgxNzZlYTE2ZjZjODQyZjJmNzY1M2IwMjY5OWU2MjAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0._DoxM95eWU3_JJu-eRbmX7eapl8TUKYqdF4RwbNEjkg)
Click on Next.
Keep the default values for the Hostgroups tab.
![Hostgroups tab](https://private-user-images.githubusercontent.com/18014714/326679416-b82914ac-90d0-48e2-9d5f-44036fc8e634.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjUyODcxNjEsIm5iZiI6MTcyNTI4Njg2MSwicGF0aCI6Ii8xODAxNDcxNC8zMjY2Nzk0MTYtYjgyOTE0YWMtOTBkMC00OGUyLTlkNWYtNDQwMzZmYzhlNjM0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTAyVDE0MjEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkYjgxNDRlMWRhMDJlYWJkYmVkNjNjZDIyNzU5NWMyN2E0Yjc2NTRlYmUxZTdmYjQ0MDM3YWRjNmMyMWM3ODMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EiNlATBTd3yMGAlUoqibqCcpK2xELNyS2U-6qy1k8Qw)
Click Submit.
Next up, let's use Convert2RHEL to upgrade a CentOS 7 node to RHEL. To do this, we will first SSH into a node. We can use Node4 for this exercise.
- SSH into Node4
ssh centos@node4
- Login and sudo to root
sudo su
- Update CentOS box and reboot
yum update -y
reboot
- Login again, sudo to root
ssh centos@node4
sudo su
- Download RH GPG key and install convert2rhel repo
curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release https://www.redhat.com/security/data/fd431d51.txt
curl -o /etc/yum.repos.d/convert2rhel.repo https://ftp.redhat.com/redhat/convert2rhel/7/convert2rhel.repo
- Install convert2rhel utility
yum -y install convert2rhel
- Add activation key. INI file should look like below after opening file using VI. Update the "activation_key" value to convert2rhel_demo.
vi /etc/convert2rhel.ini
# -*- coding: utf-8 -*-
# This file should be in mode 0600
# Example of configuration file convert2rhel.ini for secrets.
# Possible locations of this file:
# 1) user specified and passed by -c, --config-file option; highest priority
# 2) ~/.convert2rhel.ini; lower priority
# 3) /etc/convert2rhel.ini; the lowest priority
[subscription_manager]
# password = <insert_password>
activation_key = convert2rhel_demo
org = 13156267
- Run convert2rhel command
convert2rhel --debug
- IF the conversion fails, the kernel module may cause convert2rhel to fail, so we must ignore that step by setting following environment variable. Run the command below and try again.
export CONVERT2RHEL_ALLOW_UNAVAILABLE_KMODS=1
- Reboot the system
reboot
- Login again, sudo to root, and verify system has been upgraded to RHEL:
uname –r
cat /etc/redhat-release
subscription-manager list