Fix podman_image integration tests (#59805)
Pin podman package at a specific version
This commit is contained in:
parent
1351962eee
commit
691976c3d0
5 changed files with 7 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
unsupported
|
shippable/posix/group3
|
||||||
skip/osx
|
skip/osx
|
||||||
skip/freebsd
|
skip/freebsd
|
||||||
destructive
|
destructive
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
- block:
|
- block:
|
||||||
|
- name: Include distribution specific variables
|
||||||
|
include_vars: "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"
|
||||||
|
|
||||||
- name: Enable extras repo
|
- name: Enable extras repo
|
||||||
command: "{{ repo_command[ansible_facts.distribution ~ ansible_facts.distribution_major_version] | default('echo') }}"
|
command: "{{ repo_command[ansible_facts.distribution ~ ansible_facts.distribution_major_version] | default('echo') }}"
|
||||||
|
|
||||||
- name: Install podman
|
- name: Install podman
|
||||||
yum:
|
yum:
|
||||||
name: podman
|
name: "{{ podman_package }}"
|
||||||
state: present
|
state: present
|
||||||
when: ansible_facts.pkg_mgr in ['yum', 'dnf']
|
when: ansible_facts.pkg_mgr in ['yum', 'dnf']
|
||||||
when:
|
when:
|
||||||
|
|
1
test/integration/targets/setup_podman/vars/RedHat-7.yml
Normal file
1
test/integration/targets/setup_podman/vars/RedHat-7.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
podman_package: podman-1.3.*
|
1
test/integration/targets/setup_podman/vars/RedHat-8.yml
Normal file
1
test/integration/targets/setup_podman/vars/RedHat-8.yml
Normal file
|
@ -0,0 +1 @@
|
||||||
|
podman_package: '@container-tools:1.0'
|
|
@ -1,3 +1,2 @@
|
||||||
repo_command:
|
repo_command:
|
||||||
RedHat7: yum-config-manager --enable rhui-REGION-rhel-server-extras
|
RedHat7: yum-config-manager --enable rhui-REGION-rhel-server-extras
|
||||||
# RedHat8: dnf config-manager --enablerepo rhui-REGION-rhel-server-extras
|
|
||||||
|
|
Loading…
Reference in a new issue