Docsity

Linux ABCDEFGHIJKLinux ABCDEFGHIJK, Slides of Italian Philology

Partial preview of the text

Download Linux ABCDEFGHIJKLinux ABCDEFGHIJK and more Slides Italian Philology in PDF only on Docsity!

RHEL In-place Upgrade Automation Workshop

A comprehensive approach for automating in-place upgrades of Red Hat Enterprise Linux

What you will learn

▸ Key features of the upgrade automation approach

▸ Workshop setup and walkthrough

▸ Generating pre-upgrade reports

▸ Automating recommended remediations

▸ Understand potential application impacts

▸ How upgrade from RHEL 7 and RHEL 8

▸ The importance of snapshot/rollback

▸ Ansible roles available to help you get started

4

Automation happens when

one person meets a problem

they never want to solve again

RHEL In-place Upgrade Automation

Key Features to Succeed at Scale

Automate Everything

Visualize pre-upgrade results and track progress of upgrades completed across the estate

Reporting Dashboard

Automate remediations to deal with your standard tools, agents and middleware

Custom Modules

Eliminate application impact risk so there is never an excuse not to upgrade

Snapshot/rollback

Make RHEL upgrades a push-button service easily consumable by Ops and App teams

Lab Time - Workshop Lab Environment

Complete exercise 1.1 in your lab environment now

8

Section 1

Pre-upgrade Analysis

Launching the Analysis Job Template

▸ Job templates are used to launch automation jobs from AAP

▸ We’ll use the Analysis job template to generate pre-upgrade reports for all of the RHEL pet app servers in our lab

Lab Time - Run Pre-upgrade Jobs

Complete exercise 1.2 in your lab environment now

Example Pre-upgrade Report

▸ When inhibitor risk findings are reported, the RHEL upgrade is blocked and can't proceed without first resolving the issue.

▸ Other high risk findings are no big deal as we’ll learn at the end of the next exercise.

Lab Time - Review Pre-upgrade Reports

Complete exercise 1.3 in your lab environment now

Automating Remediation of Inhibitor Findings

▸ Using an Ansible playbook is the best way to automate remediations for inhibitors identified in the pre-upgrade reports.

▸ The Configure sshd task addresses the "Possible problems with remote login using root account" inhibitor.

▸ The Remove pam_pkcs11 module task will update the Leapp answer file to solve our other inhibitor.

▸ After running the remediation playbook job, we’ll generate a fresh pre-upgrade report and see no more inhibitors.

  • name: Configure sshd ansible.builtin.lineinfile: path: "/etc/ssh/sshd_config" regex: "^(#)?{{ item.key }}" line: "{{ item.key }} {{ item.value }}" state: present loop: - {key: "PermitRootLogin", value: "prohibit-password"} - {key: "PasswordAuthentication", value: "no"} notify: - Restart sshd
  • name: Remove pam_pkcs11 module ansible.builtin.shell: | set -o pipefail leapp answer --add --section remove_pam_pkcs11_module_check.confirm=True args: executable: /bin/bash

Lab Time -

Perform Recommended Remediations

Complete exercise 1.4 in your lab environment now

Lab Time - Custom Modules

Complete exercise 1.5 in your lab environment now

Deploy a Pet Application

▸ To demonstrate how in-place upgrades and rollbacks might impact business applications, we’ll install a sample app.

▸ The Spring Pet Clinic Sample Application will be installed to use a third-party JDK runtime and a local MariaDB database.

▸ Will the application lead to more findings on the pre-upgrade report? Will it still function correctly after we perform the RHEL upgrade? Continue to the next exercise to find out!