-
Notifications
You must be signed in to change notification settings - Fork 3
/
tmt-sclorg-testing-plan.yml
83 lines (75 loc) · 2.89 KB
/
tmt-sclorg-testing-plan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
# This Playbook is used
# for testing sclorg-testing-farm
- name: Testing sclorg-testing-farm repo is everything is present in host provided by Testing Farm
hosts: "{{ hosts | default('localhost') }}"
vars:
os_test: "{{ lookup('env', 'OS') }}"
gpu: "{{ lookup('env', 'GPU') }}"
package_names_all:
- git
- make
- ansible
- podman-docker
- podman
package_names_c9s:
- golang-github-cpuguy83-md2man
- s-nail
package_names_c10s:
- golang-github-cpuguy83-md2man
- s-nail
package_names_fedora:
- acl
- libseccomp-devel
- openssl
- python3-pip
- golang-github-cpuguy83-md2man
- s-nail
package_names_gpu_fedora:
- pciutils
- hwdata
files_to_check_fedora:
- /etc/containers/nodocker
files_to_check_c9s:
- /etc/containers/nodocker
files_to_check_c10s:
- /etc/containers/nodocker
output_check_gpu_fedora_nvidia:
- { command: 'lspci -mm', device_name: '{{ gpu }}', vendor_name: 'NVIDIA' }
tasks:
- debug: msg="{{ os_test }}"
- block:
- name: Check if listed package is installed on CentOS Stream 9
include_tasks: ./tasks/check_rpm_presents.yml
loop: "{{ package_names_all + package_names_c9s }}"
- name: Check if files are present on CentOS Stream 9
include_tasks: ./tasks/check_file_presents.yml
loop: "{{ files_to_check_c9s }}"
when: (os_test is defined) and (os_test == "c9s")
- block:
- name: Check if listed package is installed on CentOS Stream 10
include_tasks: ./tasks/check_rpm_presents.yml
loop: "{{ package_names_all + package_names_c10s }}"
- name: Check if files are present on CentOS Stream 10
include_tasks: ./tasks/check_file_presents.yml
loop: "{{ files_to_check_c10s }}"
when: (os_test is defined) and (os_test == "c10s")
- block:
- name: Check if listed package is installed on Fedora
include_tasks: ./tasks/check_rpm_presents.yml
loop: "{{ package_names_all + package_names_fedora }}"
- name: Check if file {{ item }} exists
include_tasks: ./tasks/check_file_presents.yml
loop: "{{ files_to_check_fedora }}"
when: (os_test is defined) and (os_test == "fedora")
- block:
- name: Check if listed package is installed on Fedora
include_tasks: ./tasks/check_rpm_presents.yml
loop: "{{ package_names_all + package_names_fedora + package_names_gpu_fedora }}"
- name: Check if file {{ item }} exists
include_tasks: ./tasks/check_file_presents.yml
loop: "{{ files_to_check_fedora }}"
- name: Check if output {{ item }} exists
include_tasks: ./tasks/check_output_command.yml
loop: "{{ output_check_gpu_fedora_nvidia }}"
when: (os_test is defined) and (os_test == "gpu-fedora")