Skip to content

Commit

Permalink
Fix podman_image integration tests
Browse files Browse the repository at this point in the history
Pin podman package at a specific version
  • Loading branch information
samdoran committed Jul 30, 2019
1 parent 8a6c7a9 commit 727f55c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/integration/targets/podman_image/aliases
@@ -1,4 +1,4 @@
unsupported
shippable/posix/group3
skip/osx
skip/freebsd
destructive
5 changes: 4 additions & 1 deletion test/integration/targets/setup_podman/tasks/main.yml
@@ -1,10 +1,13 @@
- block:
- name: Include distribution specific variables
include_vars: "{{ ansible_facts.distribution }}-{{ ansible_facts.distribution_major_version }}.yml"

- name: Enable extras repo
command: "{{ repo_command[ansible_facts.distribution ~ ansible_facts.distribution_major_version] | default('echo') }}"

- name: Install podman
yum:
name: podman
name: "{{ podman_package }}"
state: present
when: ansible_facts.pkg_mgr in ['yum', 'dnf']
when:
Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/setup_podman/vars/RedHat-7.yml
@@ -0,0 +1 @@
podman_package: podman-1.3.*
1 change: 1 addition & 0 deletions test/integration/targets/setup_podman/vars/RedHat-8.yml
@@ -0,0 +1 @@
podman_package: '@container-tools:1.0'
1 change: 0 additions & 1 deletion test/integration/targets/setup_podman/vars/main.yml
@@ -1,3 +1,2 @@
repo_command:
RedHat7: yum-config-manager --enable rhui-REGION-rhel-server-extras
# RedHat8: dnf config-manager --enablerepo rhui-REGION-rhel-server-extras

0 comments on commit 727f55c

Please sign in to comment.