Skip to content

Commit

Permalink
Load fedora-toolbox images in the pre-phase
Browse files Browse the repository at this point in the history
This change adds a pre task to load the fedora-toolbox images from the
registry to prevent false positive failure when pulling images.

Each section needs it's own pre-common playbook because they use
different version of Fedora -> different default images.
  • Loading branch information
TristanCacqueray authored and HarryMichal committed Feb 10, 2020
1 parent c86a715 commit b935a3c
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 0 deletions.
13 changes: 13 additions & 0 deletions playbooks/fedora-30/pre-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Load registry image f30/fedora-toolbox:30 in pre-phase and auto restart when registry is flaky
command: podman pull registry.fedoraproject.org/f30/fedora-toolbox:30
register: _podman
until: _podman.rc == 0
retries: 5
delay: 10

- name: Load registry image f29/fedora-toolbox:29 in pre-phase and auto restart when registry is flaky
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
register: _podman
until: _podman.rc == 0
retries: 5
delay: 10
2 changes: 2 additions & 0 deletions playbooks/fedora-30/setup-rpm-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@

- name: Check versions of crucial packages
command: rpm -q podman runc conmon fuse-overlayfs flatpak-session-helper

- include_tasks: ./pre-common.yaml
13 changes: 13 additions & 0 deletions playbooks/fedora-31/pre-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Load registry image f31/fedora-toolbox:31 in pre-phase and auto restart when registry is flaky
command: podman pull registry.fedoraproject.org/f31/fedora-toolbox:31
register: _podman
until: _podman.rc == 0
retries: 5
delay: 10

- name: Load registry image f29/fedora-toolbox:29 in pre-phase and auto restart when registry is flaky
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
register: _podman
until: _podman.rc == 0
retries: 5
delay: 10
2 changes: 2 additions & 0 deletions playbooks/fedora-31/setup-rpm-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@

- name: Check versions of crucial packages
command: rpm -q podman crun conmon fuse-overlayfs flatpak-session-helper

- include_tasks: ./pre-common.yaml
13 changes: 13 additions & 0 deletions playbooks/fedora-rawhide/pre-common.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
- name: Load registry image f32/fedora-toolbox:32 in pre-phase and auto restart when registry is flaky
command: podman pull registry.fedoraproject.org/f32/fedora-toolbox:32
register: _podman
until: _podman.rc == 0
retries: 5
delay: 10

- name: Load registry image f29/fedora-toolbox:29 in pre-phase and auto restart when registry is flaky
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
register: _podman
until: _podman.rc == 0
retries: 5
delay: 10
2 changes: 2 additions & 0 deletions playbooks/fedora-rawhide/setup-rpm-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@

- name: Check versions of crucial packages
command: rpm -q podman crun conmon fuse-overlayfs flatpak-session-helper

- include_tasks: ./pre-common.yaml

0 comments on commit b935a3c

Please sign in to comment.