Lab Setup
This lab environment is pre-configured to ensure you can focus on learning and performing the key tasks without worrying about initial setup. Below are the details of the setup and resources provided.
It is recommended to open each of the environment’s within separate tabs using your favorite browser. |
Pre-Configured Items:
-
The Ansible Automation Platform controller is already set up.
-
The required Execution Environment (
Day2 EE
) has been pre-created with theredhat.openshift
andredhat.openshift_virtualization
collections. -
Necessary credentials to access the Virtual Machines are pre-configured in the AAP controller.
-
All VMs are running at the start of the lab.
OpenShift Environment Details:
-
Console URL: https://console-openshift-console.apps.cluster-guid.guid.sandbox.opentlc.com
-
Username: username
-
Password: password
Select the htpasswd_provider as the Log in with
|
Ansible Automation Platform Environment Details:
-
AAP Dashboard: https://aap-aap.apps.cluster-guid.dynamic.redhatworkshops.io
-
Username: username
-
Password: password
Gitea Repository Details:
-
Gitea Console URL: https://gitea.apps.cluster-guid.dynamic.redhatworkshops.io
-
Gitea User: user1
-
Gitea Password: password
VSCode and Lab Files Overview
Throughout the lab, you will create or update the following files to complete the exercises that are to be pushed to your Gitea repository:
-
tasks/main.yml
: For calling the appropriate stop, start, and restart tasks. -
tasks/stop_vm.yml
: For stopping the VM. -
tasks/start_vm.yml
: For starting the VM. -
tasks/restart_vm.yml
: For restarting the VM. -
tasks/snapshot_vms.yml
: Creating Snapshot of the VM. -
tasks/restore_vm_snapshots.yml
: Restore VM from Snapshot. -
manage_vm_playbook
: A playbook to run the stop/start/restart tasks. -
patch_vm_playbook.yml
: A playbook to run the security updates of the RHEL VMs.
To create these files, you will use the Visual Studio Code editor.
-
VSCode URL: https://codeserver-codeserver.apps.cluster-guid.dynamic.redhatworkshops.io
-
Password: password
With this setup, you’re ready to dive into the lab and focus on automating Day 2 operations for VMs on OpenShift Virtualization.