Skip to content

Build and deploy a 2-node oVirt cluster on Azure, using Terraform, Terraform Cloud and Ansible, to practice Red Hat exam EX318 (Red Hat Specialist in Virtualization) as platforms such as A Cloud Guru are missing these server playgrounds to practice with. NOTE: This repo does NOT contain ANY information related to the EX318 exam itself!

Notifications You must be signed in to change notification settings

illdynamics/ex318-playground

Repository files navigation

2node-ovirt-on-azure

2 node oVirt setup using Ansible, Terraform and Azure, where 1 node is the manager and 1 node is a hypervisor. You will need a Terraform Cloud account and a working Azure subscription to use this. Also, when you are done using the oVirt cluster, always be sure to destroy all resources, so you don't pay for the resources when you are nog using the cluster.

Supported Operating Systems

Multiple distributions of Linux are supported, but only Linux:

  • Fedora
  • CentOS
  • Red Hat Enterprise Linux
  • RockyLinux
  • AlmaLinux
  • Ubuntu
  • Debian

Prerequisites

First, you will need a working Azure DevOps subscription. Create an Azure DevOps account here. For this, you will need a Microsoft account. Create a new one when prompted for it if needed.

Second you need a Terraform Cloud account. Create a Terraform Cloud account here. Just create an account and verify your e-mail address.

That's it!

How to use

How to use this repository to create an oVirt cluster on 2 VM's on Azure with Terraform and Ansible.

Preconfiguring packages and authentication

Install Ansible, Terraform and Azure CLI and configure the authentication tokens to use.

This script will install ansible, terraform and azure-cli on your system. Then it will initiate the Terraform login command to create an API token for you and save it in your home directory. After that, it will initiate the Azure CLI login command to get your subscription_id, and use that to create a Service Principal, which is an account needed to authenticate Terraform with Azure. It will output 4 parameters (subscription_id, client_id, client_secret and tenant_id).

Don't worry, it will automatically configure the parameters for you to be used.

./00_preconfig_tf_and_az_auth.sh

Build and deploy the whole stack

Build and deploy everything from scratch to a working oVirt cluster with 2 nodes including the whole infrastructure and all resources needed in Azure.

./11_init_all.sh

Initialize Terraform only

Initialize only what's stated in the Terraform part, so only the infrastructure/networks, policies, Virtual Machines and configuration on Azure will be built and deployed.

./22_init_tf_only.sh

Initialize Ansible only

Initialize only what's stated in the Ansible part, so only configure the already built and deployed Virtual Machines with Ansible to execute the needed configuration on the hosts, run the oVirt setup and configure oVirt on the hosts.

./33_init_ansible_only.sh

Destroy the whole stack

Destroy the whole oVirt cluster and all infrastructure, configuration and hosts on Azure including all resources in Azure.

./99_destroy_all.sh

About

Build and deploy a 2-node oVirt cluster on Azure, using Terraform, Terraform Cloud and Ansible, to practice Red Hat exam EX318 (Red Hat Specialist in Virtualization) as platforms such as A Cloud Guru are missing these server playgrounds to practice with. NOTE: This repo does NOT contain ANY information related to the EX318 exam itself!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published