Skip to content

grisu48/ansible-openqa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenQA

Role to install and bootstrap open.qa for openSUSE Linux

Requirements

A basic openSUSE Linux installation with internet connectivity and installed python-xml (Required for the ansible zypper module)

zypper in python-xml

Role Variables

The following variables are set

firewall_configure: true           # Enable firewall configuration
firewall_interface: "public"       # Firewall interface to configure

Example Playbook

- hosts: servers
  roles:
     - { role: openqa, firewall_configure: true }

Post-Install steps

Checkout the OpenQA Documentation for the first steps after installing. The following is just a jump-start guide.

Configure API keys

You find the API keys in your web frontend. Configure your client by editing either /etc/openqa/client.conf (global config) or ~/.config/openqa/client.conf (user config). Set the API key and API secret accordingly.

$ mkdir -p ~/.config/openqa/
$ vim ~/.config/openqa/client.conf

[localhost]
key = 1234567890ABCDEF
secret = 1234567890ABCDEF

Download ISOs

ISOs to be tested should be stored in /var/lib/openqa/share/factory/iso. Download your first iso

# wget -P /var/lib/openqa/share/factory/iso/ https://download.opensuse.org/distribution/leap/15.1/iso/openSUSE-Leap-15.1-DVD-x86_64.iso

Run your first tests

Run a full product test for a DVD

  $ openqa-client isos post ISO=openSUSE-Leap-15.1-DVD-x86_64.iso DISTRI=opensuse VERSION=Leap FLAVOR=DVD ARCH=x86_64

Run a single test

  $ openqa-client jobs post ISO=openSUSE-Leap-15.1-DVD-x86_64.iso DISTRI=opensuse VERSION=Leap FLAVOR=DVD ARCH=x86_64 TEST=lvm MACHINE=64bit

Start more workers

Depending on the number of cores and available memory (Up to 4GB RAM per worker!), you might want to enable more workers

  ## Enable and start 4 workers (4 cores)
  # systemctl enable --now openqa-worker@1
  # systemctl enable --now openqa-worker@2
  # systemctl enable --now openqa-worker@3
  # systemctl enable --now openqa-worker@4

License

GPLv2

About

Ansible role for installing openQA

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published