Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break Fix Release PR July 13, 2023 #2010

Merged
merged 12 commits into from
Jul 13, 2023
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ body:
- Ansible F5 Workshop
- Ansible Security Automation
- Ansible Windows Automation Workshop
- RHEL In-place Upgrade Automation Workshop
- Smart Management Automation Workshop
- Other
validations:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The Red Hat Ansible Automation Workshops project is intended for effectively dem
| **[Ansible Security Automation](./exercises/ansible_security)** <br> focused on automation of security tools like Check Point Firewall, IBM QRadar and the IDS Snort | [PDF](./decks/ansible_security.pdf) | [Google Source](https://docs.google.com/presentation/d/19gVCBz1BmxC15tDDj-FUlUd_jUUUKay81E8F24cyUjk/edit?usp=sharing) | [Exercises](./exercises/ansible_security) | `workshop_type: security` |
| **[Ansible Windows Automation Workshop](./exercises/ansible_windows)** <br> focused on automation of Microsoft Windows | [PDF](./decks/ansible_windows.pdf) | [Google Source](https://docs.google.com/presentation/d/1RO5CQiCoqLDES1NvTI_1fQrR-oWM1NuW-uB0JRvtJzE) | [Exercises](./exercises/ansible_windows) | `workshop_type: windows` |
| **[Smart Management Automation Workshop](./exercises/ansible_smart_mgmt)** <br> focused on automation of security and lifecycle management with Red Hat Satellite Server | [PDF](./decks/ansible_smart_mgmt.pdf) | [Google Source](https://docs.google.com/presentation/d/135lid9AeSioN4bJexBbv9q0fkJwDibpUQg8aeYjxzTY) | [Exercises](./exercises/ansible_smart_mgmt) | `workshop_type: smart_mgmt`
| **[RHEL In-place Upgrade Automation Workshop](./exercises/ansible_ripu)** <br> focused on automation of RHEL in-place upgrades at enterprise scale | [PDF](./decks/ansible_ripu.pdf) | [Google Source](https://docs.google.com/presentation/d/1U6i006Th7MQNuL1_0a0KhOSY4GfF1wFsINusDvJvXvo) | [Exercises](./exercises/ansible_ripu) | `workshop_type: ripu`

90 minute abbreviated versions:

Expand Down
Binary file added decks/ansible_ripu.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion exercises/ansible_config_as_code/0-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ In this section we will show you step by step how to add pre commit linting to a

If you are using the Workshop, a Workshop project should be available in your VSCode for you to push to the Workshop Gitea server. Create the files in this project folder.

NOTE: If when you click on the Explorer tab that looks like two pieces of paper and you see "Open Folder" click on that. In the popup window click windows-workshop/workshop_project/ (full path is: `/home/student/windows-workshop/workshop_project`) then click "ok". If prompted select the check box and "Yes, I trust the authors" option. You should now see a readme that has a typo saying Welcome to Windows Automation workshop.
<mark style="background-color: yellow">NOTE: If when you click on the Explorer tab that looks like two pieces of paper and you see "Open Folder" click on that. In the popup window click windows-workshop/workshop_project/ (full path is: `/home/student/windows-workshop/workshop_project`) then click "ok". If prompted select the check box and "Yes, I trust the authors" option. You should now see a readme that has a typo saying Welcome to Windows Automation workshop.</mark>

## Step 1

Expand Down
2 changes: 1 addition & 1 deletion exercises/ansible_config_as_code/1-ee/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Further documentation for those who are interested to learn more see:
Install our ee_utilities collection and containers.podman using `ansible-galaxy` command.

```console
ansible-galaxy collection install infra.ee_utilities containers.podman community.general
ansible-galaxy collection install infra.ee_utilities:2.0.8 containers.podman community.general
```

Further documentation for those who are interested to learn more see:
Expand Down
115 changes: 115 additions & 0 deletions exercises/ansible_ripu/1.1-setup/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Workshop Exercise - Your Lab Environment

## Table of Contents

- [Workshop Exercise - Your Lab Environment](#workshop-exercise---your-lab-environment)
- [Table of Contents](#table-of-contents)
- [Objectives](#objectives)
- [Guide](#guide)
- [Your Lab Environment](#your-lab-environment)
- [Step 1 - Access the Environment](#step-1---access-the-environment)
- [Step 2 - Open a Terminal Session](#step-2---open-a-terminal-session)
- [Step 3 - Access the AAP Web UI](#step-3---access-the-aap-web-ui)
- [Step 4 - Access the RHEL Web Console](#step-4---access-the-rhel-web-console)
- [Step 5 - Challenge Labs](#step-5---challenge-labs)
- [Conclusion](#conclusion)

## Objectives

* Understand the lab topology and how to access the environment
* Understand how to perform the workshop exercises
* Understand challenge labs

## Guide

### Your Lab Environment

The workshop is provisioned with a pre-configured lab environment. You will have access to a host deployed with Ansible Automation Platform (AAP) which you will use to control the playbook and workflow jobs that automation the RHEL in-place upgrade workflow steps. You will also have access to some "pet" application hosts, two with RHEL7 and another two with RHEL8. These are the hosts where we will be upgrading the RHEL operating system (OS).

| Role | Inventory name |
| ---------------------| ---------------|
| AAP Control Host | ansible-1 |
| RHEL7 pet app host 1 | tidy-bengal |
| RHEL7 pet app host 2 | strong-hyena |
| RHEL8 pet app host 1 | more-calf |
| RHEL8 pet app host 2 | upward-moray |

> **Note**
>
> The inventory names of the pet app hosts will be random pet names different from the example above. <!-- FIXME: The workshop launch page provided by your instructor will list the names actually provisioned with your workshop instance. --> We'll dive deeper into why we are using random names in a later exercise.

### Step 1 - Access the Environment

We will use Visual Studio Code (VS Code) as it provides a convenient and intuitive way to use a web browser to edit files and access terminal sessions. If you are a command line hero, direct SSH access is available if VS Code is not to your liking. There is a short YouTube video to explain if you need additional clarity: <a href="https://youtu.be/Y_Gx4ZBfcuk">Ansible Workshops - Accessing your workbench environment</a>.

- You can open VS Code in your web browser using the "WebUI" link under "VS Code access" on the workshop launch page provided by your instructor. The password is given below the link. For example:

![Example link to VS Code WebUI](images/vscode_link.png)

- After opening the link, type in the provided password to access your instance of VS Code.

> **Note**
>
> A welcome wizard may appear to guide you through configuring your VS Code user experience. This is optional as the default settings will work fine for this workshop. Feel free to step though the wizard to explore the VS code bells and whistles or you may just skip it.

### Step 2 - Open a Terminal Session

Terminal sessions provide access to the RHEL commands and utilities that will help us understand what's going on "behind the curtain" when the RHEL in-place upgrade automation is doing its thing.

- Use VS Code to open a terminal session. For example:

![Example of how to open a terminal session in VS Code](images/new_term.svg)

- This terminal session will be running on the AAP control host `ansible-1`. Use the `cat /etc/hosts` command to see the hostnames of your pet app hosts. Next, use the `ssh` command to login to one of your pet app hosts. Finally, use the highlighted commands confirm the RHEL OS version and kernel version installed.

For example:

![Example ssh login to pet app host](images/ssh_login.svg)

- In the example above, the command `ssh tidy-bengal` connects us to a new session on the named pet app host. Then the commands `cat /etc/redhat-release` and `uname -r` are used to output the OS release information `Red Hat Enterprise Linux Server release 7.9 (Maipo)` and kernel version `3.10.0-1160.88.1.el7.x86_64` from that host.

### Step 3 - Access the AAP Web UI

The AAP Web UI is where we will go to submit and check the status of the Ansible playbook jobs we will use to automate the RHEL in-place upgrade workflow.

- Let's open the AAP Web UI in a new web browser tab using the "WebUI" link under "Automation controller" on the workshop launch page. For example:

![Example link to AAP Web UI](images/aap_link.png)

- Enter the username `admin` and the password provided. This will bring you to your AAP Web UI dashboard like the example below:

![Example AAP Web UI dashboard](images/aap_console_example.svg)

- We will learn more about how to use the AAP Web UI in the next exercise.

### Step 4 - Access the RHEL Web Console

We will use the RHEL Web Console to review the results of the Leapp pre-upgrade reports we generate for our pet app servers.

- Open a new web browser tab using the link under "RHEL Web Console" on the workshop launch page. For example:

![Example link to RHEL Web Console](images/cockpit_link.png)

- Enter the username `student` and the password provided. This will bring you to a RHEL Web Console Overview page like the example below:

![Example RHEL Web Console](images/cockpit_example.svg)

- We will revisit the RHEL Web Console when we are ready to review our pre-upgrade reports in an upcoming exercise.

### Step 5 - Challenge Labs

You will soon discover that many exercises in the workshop come with a "Challenge Lab" step. These labs are meant to give you a small task to solve using what you have learned so far. The solution of the task is shown underneath a warning sign.

## Conclusion

In this exercise, we learned about the lab environment we will be using to continue through the workshop exercises. We verified that we are able to use VS Code in our web browser and from there we can open terminal sessions. We also made sure we are able to access the AAP Web UI which will be the "self-service portal" we use to perform the next steps of the RHEL in-place upgrade automation workflow. Finally, we connected to the RHEL Web Console where we will soon be reviewing pre-upgrade reports.

Use the link below to move on the the next exercise.

---

**Navigation**

[Next Exercise](../1.2-preupg/README.md)

[Home](../README.md)
Loading