.zuul, playbooks: Unify the setup-env.yaml across all Fedora versions
The playbooks were too fragmented and were hard to maintain. With this the number of files is significantly lowered. https://github.com/containers/toolbox/pull/517 https://github.com/containers/toolbox/pull/701
This commit is contained in:
parent
a0602e4485
commit
2a2fd5baa5
5 changed files with 19 additions and 195 deletions
|
@ -17,7 +17,7 @@
|
|||
nodes:
|
||||
- name: ci-node-32
|
||||
label: cloud-fedora-32-small
|
||||
pre-run: playbooks/fedora-32/setup-env.yaml
|
||||
pre-run: playbooks/setup-env.yaml
|
||||
run: playbooks/fedora-32/system-test-fedora-32.yaml
|
||||
|
||||
- job:
|
||||
|
@ -28,7 +28,7 @@
|
|||
nodes:
|
||||
- name: ci-node-33
|
||||
label: cloud-fedora-33-small
|
||||
pre-run: playbooks/fedora-33/setup-env.yaml
|
||||
pre-run: playbooks/setup-env.yaml
|
||||
run: playbooks/fedora-33/system-test-fedora-33.yaml
|
||||
|
||||
- job:
|
||||
|
@ -39,7 +39,7 @@
|
|||
nodes:
|
||||
- name: ci-node-34
|
||||
label: cloud-fedora-34-small
|
||||
pre-run: playbooks/fedora-34/setup-env.yaml
|
||||
pre-run: playbooks/setup-env.yaml
|
||||
run: playbooks/fedora-34/system-test-fedora-34.yaml
|
||||
|
||||
- job:
|
||||
|
@ -50,7 +50,7 @@
|
|||
nodes:
|
||||
- name: ci-node-rawhide
|
||||
label: cloud-fedora-rawhide-small
|
||||
pre-run: playbooks/fedora-rawhide/setup-env.yaml
|
||||
pre-run: playbooks/setup-env.yaml
|
||||
run: playbooks/fedora-rawhide/system-test-fedora-rawhide.yaml
|
||||
|
||||
- project:
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
---
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Install requirements
|
||||
become: yes
|
||||
package:
|
||||
use: dnf
|
||||
name:
|
||||
- golang
|
||||
- golang-github-cpuguy83-md2man
|
||||
- ninja-build
|
||||
- meson
|
||||
- flatpak-session-helper
|
||||
- systemd
|
||||
- bats
|
||||
- bash-completion
|
||||
- udisks2
|
||||
- podman
|
||||
|
||||
- name: Install bats-support library
|
||||
git:
|
||||
repo: https://github.com/bats-core/bats-support
|
||||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-support'
|
||||
depth: 1
|
||||
|
||||
- name: Install bats-assert library
|
||||
git:
|
||||
repo: https://github.com/bats-core/bats-assert
|
||||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-assert'
|
||||
depth: 1
|
||||
|
||||
- name: Setup environment
|
||||
become: yes
|
||||
command:
|
||||
cmd: systemd-tmpfiles --create
|
||||
creates: /run/media
|
||||
|
||||
- name: Check versions of crucial packages
|
||||
command: rpm -q golang podman crun conmon fuse-overlayfs flatpak-session-helper
|
||||
|
||||
- name: Show podman versions
|
||||
command: podman version
|
||||
|
||||
- name: Show podman debug information
|
||||
command: podman info --debug
|
||||
|
||||
- name: Pull registry.fedoraproject.org/fedora-toolbox:33
|
||||
command: podman pull registry.fedoraproject.org/fedora-toolbox:33
|
||||
register: _podman
|
||||
until: _podman.rc == 0
|
||||
retries: 5
|
||||
delay: 10
|
||||
|
||||
- name: Pull registry.fedoraproject.org/f29/fedora-toolbox:29
|
||||
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
|
||||
register: _podman
|
||||
until: _podman.rc == 0
|
||||
retries: 5
|
||||
delay: 10
|
|
@ -1,59 +0,0 @@
|
|||
---
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Install requirements
|
||||
become: yes
|
||||
package:
|
||||
use: dnf
|
||||
name:
|
||||
- golang
|
||||
- golang-github-cpuguy83-md2man
|
||||
- ninja-build
|
||||
- meson
|
||||
- flatpak-session-helper
|
||||
- systemd
|
||||
- bats
|
||||
- bash-completion
|
||||
- udisks2
|
||||
- podman
|
||||
|
||||
- name: Install bats-support library
|
||||
git:
|
||||
repo: https://github.com/bats-core/bats-support
|
||||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-support'
|
||||
depth: 1
|
||||
|
||||
- name: Install bats-assert library
|
||||
git:
|
||||
repo: https://github.com/bats-core/bats-assert
|
||||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-assert'
|
||||
depth: 1
|
||||
|
||||
- name: Setup environment
|
||||
become: yes
|
||||
command:
|
||||
cmd: systemd-tmpfiles --create
|
||||
creates: /run/media
|
||||
|
||||
- name: Check versions of crucial packages
|
||||
command: rpm -q golang podman crun conmon fuse-overlayfs flatpak-session-helper
|
||||
|
||||
- name: Show podman versions
|
||||
command: podman version
|
||||
|
||||
- name: Show podman debug information
|
||||
command: podman info --debug
|
||||
|
||||
- name: Pull registry.fedoraproject.org/fedora-toolbox:34
|
||||
command: podman pull registry.fedoraproject.org/fedora-toolbox:34
|
||||
register: _podman
|
||||
until: _podman.rc == 0
|
||||
retries: 5
|
||||
delay: 10
|
||||
|
||||
- name: Pull registry.fedoraproject.org/f29/fedora-toolbox:29
|
||||
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
|
||||
register: _podman
|
||||
until: _podman.rc == 0
|
||||
retries: 5
|
||||
delay: 10
|
|
@ -1,59 +0,0 @@
|
|||
---
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Install requirements
|
||||
become: yes
|
||||
package:
|
||||
use: dnf
|
||||
name:
|
||||
- golang
|
||||
- golang-github-cpuguy83-md2man
|
||||
- ninja-build
|
||||
- meson
|
||||
- flatpak-session-helper
|
||||
- systemd
|
||||
- bats
|
||||
- bash-completion
|
||||
- udisks2
|
||||
- podman
|
||||
|
||||
- name: Install bats-support library
|
||||
git:
|
||||
repo: https://github.com/bats-core/bats-support
|
||||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-support'
|
||||
depth: 1
|
||||
|
||||
- name: Install bats-assert library
|
||||
git:
|
||||
repo: https://github.com/bats-core/bats-assert
|
||||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-assert'
|
||||
depth: 1
|
||||
|
||||
- name: Setup environment
|
||||
become: yes
|
||||
command:
|
||||
cmd: systemd-tmpfiles --create
|
||||
creates: /run/media
|
||||
|
||||
- name: Check versions of crucial packages
|
||||
command: rpm -q golang podman crun conmon fuse-overlayfs flatpak-session-helper
|
||||
|
||||
- name: Show podman versions
|
||||
command: podman version
|
||||
|
||||
- name: Show podman debug information
|
||||
command: podman info --debug
|
||||
|
||||
- name: Pull registry.fedoraproject.org/fedora-toolbox:34
|
||||
command: podman pull registry.fedoraproject.org/fedora-toolbox:34
|
||||
register: _podman
|
||||
until: _podman.rc == 0
|
||||
retries: 5
|
||||
delay: 10
|
||||
|
||||
- name: Pull registry.fedoraproject.org/f29/fedora-toolbox:29
|
||||
command: podman pull registry.fedoraproject.org/f29/fedora-toolbox:29
|
||||
register: _podman
|
||||
until: _podman.rc == 0
|
||||
retries: 5
|
||||
delay: 10
|
|
@ -6,22 +6,17 @@
|
|||
package:
|
||||
use: dnf
|
||||
name:
|
||||
- bash-completion
|
||||
- bats
|
||||
- flatpak-session-helper
|
||||
- golang
|
||||
- golang-github-cpuguy83-md2man
|
||||
- ninja-build
|
||||
- meson
|
||||
- flatpak-session-helper
|
||||
- systemd
|
||||
- bats
|
||||
- bash-completion
|
||||
- udisks2
|
||||
- ninja-build
|
||||
- podman
|
||||
|
||||
- name: Install bats-support library
|
||||
git:
|
||||
repo: https://github.com/bats-core/bats-support
|
||||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-support'
|
||||
depth: 1
|
||||
- skopeo
|
||||
- systemd
|
||||
- udisks2
|
||||
|
||||
- name: Install bats-assert library
|
||||
git:
|
||||
|
@ -29,6 +24,12 @@
|
|||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-assert'
|
||||
depth: 1
|
||||
|
||||
- name: Install bats-support library
|
||||
git:
|
||||
repo: https://github.com/bats-core/bats-support
|
||||
dest: '{{ zuul.project.src_dir }}/test/system/libs/bats-support'
|
||||
depth: 1
|
||||
|
||||
- name: Setup environment
|
||||
become: yes
|
||||
command:
|
||||
|
@ -44,8 +45,8 @@
|
|||
- name: Show podman debug information
|
||||
command: podman info --debug
|
||||
|
||||
- name: Pull registry.fedoraproject.org/fedora-toolbox:32
|
||||
command: podman pull registry.fedoraproject.org/fedora-toolbox:32
|
||||
- name: Pull the default image from registry.fedoraproject.org
|
||||
command: "podman pull registry.fedoraproject.org/fedora-toolbox:{{ ansible_distribution_version }}"
|
||||
register: _podman
|
||||
until: _podman.rc == 0
|
||||
retries: 5
|
Loading…
Reference in a new issue