Use podman driver with molecule
Change-Id: I3d16e7e7de8afe123ee2b7175c242ceaf3c0af65
This commit is contained in:
parent
66c819423e
commit
0913c46357
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: podman
|
||||||
log: true
|
log: true
|
||||||
platforms:
|
platforms:
|
||||||
# - name: centos7
|
# - name: centos7
|
||||||
|
@ -22,8 +22,6 @@ provisioner:
|
||||||
forks: 50
|
forks: 50
|
||||||
stdout_callback: yaml
|
stdout_callback: yaml
|
||||||
timeout: 30
|
timeout: 30
|
||||||
ssh_connection:
|
|
||||||
pipelining: true
|
|
||||||
inventory:
|
inventory:
|
||||||
group_vars:
|
group_vars:
|
||||||
all:
|
all:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: podman
|
||||||
log: true
|
log: true
|
||||||
platforms:
|
platforms:
|
||||||
# - name: centos7
|
# - name: centos7
|
||||||
|
@ -22,8 +22,6 @@ provisioner:
|
||||||
forks: 50
|
forks: 50
|
||||||
stdout_callback: yaml
|
stdout_callback: yaml
|
||||||
timeout: 30
|
timeout: 30
|
||||||
ssh_connection:
|
|
||||||
pipelining: true
|
|
||||||
inventory:
|
inventory:
|
||||||
group_vars:
|
group_vars:
|
||||||
all:
|
all:
|
||||||
|
|
5
tox.ini
5
tox.ini
|
@ -13,6 +13,7 @@ usedevelop = True
|
||||||
passenv =
|
passenv =
|
||||||
ANSIBLE_*
|
ANSIBLE_*
|
||||||
CURL_CA_BUNDLE
|
CURL_CA_BUNDLE
|
||||||
|
PODMAN_*
|
||||||
DOCKER_*
|
DOCKER_*
|
||||||
HOME
|
HOME
|
||||||
REQUESTS_CA_BUNDLE
|
REQUESTS_CA_BUNDLE
|
||||||
|
@ -60,11 +61,11 @@ setenv =
|
||||||
PYTEST_REQPASS=2
|
PYTEST_REQPASS=2
|
||||||
deps =
|
deps =
|
||||||
ansible-core>=2.11,<2.12
|
ansible-core>=2.11,<2.12
|
||||||
molecule[test,docker]>=3.3.2,<3.4 # MIT
|
molecule[test,podman]>=3.3.2,<3.4 # MIT
|
||||||
pytest-molecule>=1.4.0
|
pytest-molecule>=1.4.0
|
||||||
pytest-plus # provides support for PYTEST_REQPASS
|
pytest-plus # provides support for PYTEST_REQPASS
|
||||||
commands =
|
commands =
|
||||||
ansible-galaxy collection install --force community.docker:=1.10.0 community.general:=4.0.2
|
ansible-galaxy collection install --force containers.podman:=1.8.2 community.general:=4.0.2
|
||||||
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} -k molecule {posargs}
|
python -m pytest --color=yes --html={envlogdir}/reports.html --self-contained-html {tty:-s} -k molecule {posargs}
|
||||||
|
|
||||||
[testenv:ansible]
|
[testenv:ansible]
|
||||||
|
|
|
@ -27,13 +27,21 @@
|
||||||
irrelevant-files:
|
irrelevant-files:
|
||||||
- ^vars/sova-patterns.yml$
|
- ^vars/sova-patterns.yml$
|
||||||
|
|
||||||
|
- job:
|
||||||
|
description: Molecule job
|
||||||
|
name: tripleo-logs-tox-molecule
|
||||||
|
parent: tripleo-tox-molecule
|
||||||
|
pre-run:
|
||||||
|
- zuul.d/playbooks/pre.yml
|
||||||
|
timeout: 3600
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
vars:
|
vars:
|
||||||
fail_logs_collection: true
|
fail_logs_collection: true
|
||||||
check:
|
check:
|
||||||
jobs: &jobs
|
jobs: &jobs
|
||||||
- openstack-tox-linters
|
- openstack-tox-linters
|
||||||
- openstack-tox-molecule
|
- tripleo-logs-tox-molecule
|
||||||
- tox-ansible-test-sanity
|
- tox-ansible-test-sanity
|
||||||
- tox-ansible-test-units
|
- tox-ansible-test-units
|
||||||
- zuul-ansible-role-collect-logs
|
- zuul-ansible-role-collect-logs
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Remove docker from molecule
|
||||||
|
become: true
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- docker-ce
|
||||||
|
- docker-ce-cli
|
||||||
|
- containerd.io
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- name: Set containers module to 3.0
|
||||||
|
become: true
|
||||||
|
shell: |
|
||||||
|
dnf module disable container-tools:rhel8 -y
|
||||||
|
dnf module enable container-tools:3.0 -y
|
||||||
|
dnf clean metadata
|
||||||
|
tags:
|
||||||
|
- skip_ansible_lint
|
||||||
|
|
||||||
|
- name: Install podman
|
||||||
|
include_role:
|
||||||
|
name: ensure-podman
|
Loading…
Reference in New Issue