-
Notifications
You must be signed in to change notification settings - Fork 3
/
tmt-sclorg-testing-plan.yml
109 lines (102 loc) · 3.57 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
---
# 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') }}"
package_names_all:
- git
- make
- ansible
package_names_centos7:
- docker
- perl
- centos-release-scl-rh
- rsync
- groff-base
- centos-release-openshift-origin
- epel-release
- rh-python36-python-virtualenv
- origin-clients
- python3
- golang-github-cpuguy83-go-md2man
- mailx
package_names_c8s:
- podman-docker
- podman
- libseccomp-devel
- golang-github-cpuguy83-md2man
- mailx
package_names_c9s:
- podman-docker
- podman
- golang-github-cpuguy83-md2man
- s-nail
package_names_c10s:
- podman-docker
- podman
- golang-github-cpuguy83-md2man
- s-nail
package_names_fedora:
- podman-docker
- podman
- acl
- libseccomp-devel
- openssl
- python3-pip
- golang-github-cpuguy83-md2man
- s-nail
files_to_check_fedora:
- /etc/containers/nodocker
files_to_check_centos7:
- /etc/rhsm/ca/redhat-uep.pem
- /etc/sysconfig/docker
files_to_check_c8s:
- /etc/containers/nodocker
files_to_check_c9s:
- /etc/containers/nodocker
files_to_check_c10s:
- /etc/containers/nodocker
tasks:
- debug: msg="{{ os_test }}"
- block:
- name: Check if listed package is installed on CentOS 7
include_tasks: ./tasks/check_rpm_presents.yml
loop: "{{ package_names_all + package_names_centos7 }}"
- name: Check if files are present on CentOS 7
include_tasks: ./tasks/check_file_presents.yml
loop: "{{ files_to_check_centos7 }}"
when: (os_test is defined) and (os_test == "centos7")
- block:
- name: Check if listed package is installed on CentOS Stream 8
include_tasks: ./tasks/check_rpm_presents.yml
loop: "{{ package_names_all + package_names_c8s }}"
- name: Check if files are present on CentOS Stream 8
include_tasks: ./tasks/check_file_presents.yml
loop: "{{ files_to_check_c8s }}"
when: (os_test is defined) and (os_test == "c8s")
- 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")