Merge "Add support for RedHat platforms on ensure-podman"

This commit is contained in:
Zuul 2020-04-07 16:03:17 +00:00 committed by Gerrit Code Review
commit 14a409be73
6 changed files with 52 additions and 1 deletions

View File

@ -2,3 +2,7 @@ Install podman container manager
**Role Variables** **Role Variables**
.. zuul:rolevar:: ensure_podman_validate
:default: false
Used to enable validation of podman engine.

View File

@ -0,0 +1 @@
ensure_podman_validate: false

View File

@ -0,0 +1,4 @@
- name: Install podman (RedHat)
become: true
package:
name: podman

View File

@ -6,3 +6,13 @@
- "{{ ansible_distribution }}.yaml" - "{{ ansible_distribution }}.yaml"
- "{{ ansible_os_family }}.yaml" - "{{ ansible_os_family }}.yaml"
- "default.yaml" - "default.yaml"
- name: Validate podman engine
when: ensure_podman_validate
# on purpose to verify that non-root user can call docker/podman
become: false
shell: |
podman version
podman info
podman ps
changed_when: false

View File

@ -1,4 +1,6 @@
- hosts: all - hosts: all
vars:
ensure_podman_validate: true
roles: roles:
- ensure-podman - ensure-podman

View File

@ -263,11 +263,39 @@
This job tests the ensure-podman role. It is not meant to be This job tests the ensure-podman role. It is not meant to be
used directly but rather run on changes to roles in the used directly but rather run on changes to roles in the
zuul-jobs repo. zuul-jobs repo.
abstract: true
files: files:
- roles/ensure-podman/.* - roles/ensure-podman/.*
- test-playbooks/ensure-podman/.* - test-playbooks/ensure-podman/.*
run: test-playbooks/ensure-podman/main.yaml run: test-playbooks/ensure-podman/main.yaml
- job:
name: zuul-jobs-test-ensure-podman-centos-8
description: Tests ensure-podman role on centos-8
parent: zuul-jobs-test-ensure-podman
nodeset:
nodes:
- name: centos-8
label: centos-8
- job:
name: zuul-jobs-test-ensure-podman-fedora-30
description: Tests ensure-podman role on fedora-30
parent: zuul-jobs-test-ensure-podman
nodeset:
nodes:
- name: fedora-30
label: fedora-30
- job:
name: zuul-jobs-test-ensure-podman-ubuntu-bionic
description: Tests ensure-podman role on ubuntu-bionic
parent: zuul-jobs-test-ensure-podman
nodeset:
nodes:
- name: ubuntu-bionic
label: ubuntu-bionic
# -* AUTOGENERATED *- # -* AUTOGENERATED *-
# The following project section is autogenerated by # The following project section is autogenerated by
# tox -e update-test-platforms # tox -e update-test-platforms
@ -290,6 +318,8 @@
- zuul-jobs-test-registry-buildset-registry-openshift-docker - zuul-jobs-test-registry-buildset-registry-openshift-docker
- zuul-jobs-test-ensure-kubernetes-docker - zuul-jobs-test-ensure-kubernetes-docker
- zuul-jobs-test-ensure-kubernetes-crio - zuul-jobs-test-ensure-kubernetes-crio
- zuul-jobs-test-ensure-podman - zuul-jobs-test-ensure-podman-centos-8
- zuul-jobs-test-ensure-podman-fedora-30
- zuul-jobs-test-ensure-podman-ubuntu-bionic
gate: gate:
jobs: *id001 jobs: *id001