提交 79e9a9df 编写于 作者: C Cleber Rosa

Deployment check: add RPM/Copr based playbook

This new playbook installs Avocado and Avocado-VT from RPM packages
from a Copr repository that follows the project's master branch.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 4ced2a59
......@@ -20,3 +20,8 @@ The following Ansible playbooks are available here:
- pip-git.yml: deployment of Avocado and Avocado-VT using pip, from a
GIT repository, on a Python virtual environment. Tested on EL7,
Fedora 28 and Fedora 29.
- rpm-copr.yml: deployment of Avocado and Avocado-VT using RPM, from
a Copr repository that follows the latest Avocado and Avocado-VT
from the GitHub repository master branch. Tested on EL7, Fedora 28
and Fedora 29.
---
- name: Installs Avocado using RPM packages from the Copr repo
hosts: avocado-test-deployment
tasks:
- include_vars: vars.yml
- include_tasks: tasks/epel.yml
- include_tasks: tasks/avocado_copr_repo.yml
- name: Install Avocado packages
package:
name: "{{ item }}"
state: latest
with_items:
- python2-avocado
- python2-avocado-plugins-glib
- python2-avocado-plugins-golang
- python2-avocado-plugins-loader-yaml
- python2-avocado-plugins-output-html
- python2-avocado-plugins-result-upload
- python2-avocado-plugins-runner-docker
- python2-avocado-plugins-runner-remote
- python2-avocado-plugins-runner-vm
- python2-avocado-plugins-varianter-cit
- python2-avocado-plugins-varianter-pict
- python2-avocado-plugins-varianter-yaml-to-mux
- name: Avocado version
shell: "avocado --version"
changed_when: false
- include_tasks: tasks/avocado_vt_rpm_pkgs.yml
- include_tasks: tasks/avocado_vt_copr_repo.yml
- name: Avocado-VT package
package:
name: python2-avocado-plugins-vt
state: latest
- name: Avocado-VT bootstrap
shell: avocado vt-bootstrap --yes-to-all --vt-skip-verify-download-assets
- name: Avocado-VT test available
shell: avocado list boot
changed_when: false
---
- name: Avocado EPEL Copr repo
yum_repository:
name: avocado-latest
description: Copr repo for avocado-latest
baseurl: https://copr-be.cloud.fedoraproject.org/results/@avocado/avocado-latest/epel-7-$basearch/
gpgcheck: no
when:
- ansible_facts['distribution_file_variety'] == "RedHat"
- ansible_facts['distribution_major_version'] == "7"
- name: Avocado Fedora Copr repo
yum_repository:
name: avocado-latest
description: Copr repo for avocado-latest
baseurl: https://copr-be.cloud.fedoraproject.org/results/@avocado/avocado-latest/fedora-$releasever-$basearch/
gpgcheck: no
when:
- ansible_facts['distribution'] == "Fedora"
---
- name: Avocado-VT Copr repo
yum_repository:
name: avocado-vt-latest
description: Copr repo for avocado-vt-latest
baseurl: https://copr-be.cloud.fedoraproject.org/results/@avocado/avocado-vt-latest/epel-7-$basearch/
gpgcheck: no
when:
- ansible_facts['distribution_file_variety'] == "RedHat"
- ansible_facts['distribution_major_version'] == "7"
- name: Avocado-VT Copr repo
yum_repository:
name: avocado-vt-latest
description: Copr repo for avocado-vt-latest
baseurl: https://copr-be.cloud.fedoraproject.org/results/@avocado/avocado-vt-latest/fedora-$releasever-$basearch/
gpgcheck: no
when:
- ansible_facts['distribution'] == "Fedora"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册