Fix podman_image integration tests (#59805)

Pin podman package at a specific version
This commit is contained in:
Sam Doran 2019-07-30 15:11:35 -04:00 committed by GitHub
parent 1351962eee
commit 691976c3d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,4 @@
unsupported shippable/posix/group3
skip/osx skip/osx
skip/freebsd skip/freebsd
destructive destructive

View file

@ -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:

View file

@ -0,0 +1 @@
podman_package: podman-1.3.*

View file

@ -0,0 +1 @@
podman_package: '@container-tools:1.0'

View file

@ -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