network/plans/test_playbooks_parallel.fmf
Rich Megginson 282e63d211 ci: use the new epel feature to enable EPEL for testing farm
Now that https://github.com/teemtee/tmt/pull/3128 has merged
we can use the new epel feature to enable EPEL for testing farm

Signed-off-by: Rich Megginson <rmeggins@redhat.com>
2025-09-09 07:43:29 -06:00

101 lines
2.7 KiB
Text

summary: A general test for a system role
tag: playbooks_parallel
provision:
# TF uses `how: artemis`, and `tmt try`` uses `how: virtual`.
# Hence there is no need to define `how` explicitly.
- name: control-node1
role: control_node
- name: managed-node1
role: managed_node
hardware:
network:
- type: eth
- type: eth
- name: managed-node2
role: managed_node
hardware:
network:
- type: eth
- type: eth
- name: managed-node3
role: managed_node
hardware:
network:
- type: eth
- type: eth
- name: managed-node4
role: managed_node
hardware:
network:
- type: eth
- type: eth
- name: managed-node5
role: managed_node
hardware:
network:
- type: eth
- type: eth
- name: managed-node6
role: managed_node
hardware:
network:
- type: eth
- type: eth
- name: managed-node7
role: managed_node
hardware:
network:
- type: eth
- type: eth
environment:
SR_ANSIBLE_VER: 2.17
SR_REPO_NAME: network
SR_PYTHON_VERSION: 3.12
SR_ONLY_TESTS: "" # tests_default.yml
SR_TEST_LOCAL_CHANGES: true
SR_PR_NUM: ""
SR_LSR_USER: ""
SR_LSR_DOMAIN: ""
SR_LSR_SSH_KEY: ""
SR_ARTIFACTS_DIR: ""
SR_ARTIFACTS_URL: ""
SR_TFT_DEBUG: false
prepare:
- name: Use vault.centos.org repos (CS 7, 8 EOL workaround)
script: |
if grep -q 'CentOS Stream release 8' /etc/redhat-release; then
sed -i '/^mirror/d;s/#\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
fi
if grep -q 'CentOS Linux release 7.9' /etc/redhat-release; then
sed -i '/^mirror/d;s/#\?\(baseurl=http:\/\/\)mirror/\1vault/' /etc/yum.repos.d/*.repo
fi
discover:
- name: Prepare managed node
how: fmf
where: managed_node
filter: tag:prep_managed_node
url: https://github.com/linux-system-roles/tft-tests
ref: main
- name: Run test playbooks from control_node
how: fmf
where: control_node
filter: tag:test_playbooks
url: https://github.com/linux-system-roles/tft-tests
ref: main
# Uncomment this step for troubleshooting
# This is required because currently testing-farm cli doesn't support running multi-node plans
# You can set ID_RSA_PUB in the environment section above to your public key to distribute it to nodes
# - name: Inject your ssh public key to test systems
# how: fmf
# where: control_node
# filter: tag:reserve_system
# url: https://github.com/linux-system-roles/tft-tests
# ref: main
adjust:
- when: distro == rhel-9 or distro == centos-stream-9 or distro == rhel-10 or distro == centos-stream-10
prepare+:
- how: feature
epel: enabled
order: 10
execute:
how: tmt