Add support for RedHat platforms on ensure-podman
- makes ensure-podman work on additional platforms - prevents regression on new platforms fedora-30 and centos-8 - enables validation of podman engine Change-Id: I5842ad22d94522f707ef743622b8950839d96dff
This commit is contained in:
parent
31ef54f2ec
commit
69c53666de
@ -2,3 +2,7 @@ Install podman container manager
|
||||
|
||||
**Role Variables**
|
||||
|
||||
.. zuul:rolevar:: ensure_podman_validate
|
||||
:default: false
|
||||
|
||||
Used to enable validation of podman engine.
|
||||
|
1
roles/ensure-podman/defaults/main.yaml
Normal file
1
roles/ensure-podman/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
||||
ensure_podman_validate: false
|
4
roles/ensure-podman/tasks/RedHat.yaml
Normal file
4
roles/ensure-podman/tasks/RedHat.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
- name: Install podman (RedHat)
|
||||
become: true
|
||||
package:
|
||||
name: podman
|
@ -6,3 +6,13 @@
|
||||
- "{{ ansible_distribution }}.yaml"
|
||||
- "{{ ansible_os_family }}.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
|
||||
|
@ -1,4 +1,6 @@
|
||||
- hosts: all
|
||||
vars:
|
||||
ensure_podman_validate: true
|
||||
roles:
|
||||
- ensure-podman
|
||||
|
||||
|
@ -263,11 +263,39 @@
|
||||
This job tests the ensure-podman role. It is not meant to be
|
||||
used directly but rather run on changes to roles in the
|
||||
zuul-jobs repo.
|
||||
abstract: true
|
||||
files:
|
||||
- roles/ensure-podman/.*
|
||||
- test-playbooks/ensure-podman/.*
|
||||
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 *-
|
||||
# The following project section is autogenerated by
|
||||
# tox -e update-test-platforms
|
||||
@ -290,6 +318,8 @@
|
||||
- zuul-jobs-test-registry-buildset-registry-openshift-docker
|
||||
- zuul-jobs-test-ensure-kubernetes-docker
|
||||
- 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:
|
||||
jobs: *id001
|
||||
|
Loading…
Reference in New Issue
Block a user