Configure GitLab Runner to use beaker-vagrant with libvirt

This guide will assume you already have a gitlab-runner set up and configured.

 

Requirements:

 

Ruby 2.5.7 is established as the default as per the SIMP development environment guidelines at the time of writing this, and therefore you should ensure at the bare minimum the rvm has ruby-2.5.7 installed.

Instructions

As an administrator who is logged into the GitLab website (Go to Settings → CI/CD)

  1. Add the following secret variable: BEAKER_HYPERVISOR='vagrant_libvirt'

  2. Add the following secret variable: VAGRANT_DEFAULT_PROVIDER=libvirt

Related articles