Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • GitLab runner lives on a host that can provision VMs via vagrant.

  • The GitLab runner has a valid SSH key to use to SSH onto the vagrant provisioned VM’s.

  • The Gitlab runner has the beaker-vagrant rubygem installed.

  • The beaker-vagrant libvirt file should be patched (/home/gitlab-runner/.rvm/gems/ruby-2.5.7/gems/beaker-vagrant-0.6.6/lib/beaker/hypervisor/vagrant_libvirt.rb) as described in Make beaker work with libvirt instead of virtualbox .

  • You have to be able to log into the project’s GitLab Administrator’s panel to change the project’s secret variables in the CI/CD section.

Recommendations: 

Info

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

 

...

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@a51
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "SD"
labelskb-how-to-article

...