Merge "Add support for RedHat platforms on ensure-podman"
This commit is contained in:
commit
14a409be73
@ -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.
|
||||||
|
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_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
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
- hosts: all
|
- hosts: all
|
||||||
|
vars:
|
||||||
|
ensure_podman_validate: true
|
||||||
roles:
|
roles:
|
||||||
- ensure-podman
|
- ensure-podman
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user