Added new role to setup default container image
Related: rhbz#2000051
This commit is contained in:
parent
62a7b56985
commit
8eac0d08fd
17
tests/roles/set_image/files/toolbox.conf
Normal file
17
tests/roles/set_image/files/toolbox.conf
Normal file
@ -0,0 +1,17 @@
|
||||
[general]
|
||||
# Create a toolbox container for a different operating system distro than the
|
||||
# host. Cannot be used with 'image'.
|
||||
## distro = "fedora"
|
||||
|
||||
# Create a toolbox container for a different operating system release than the
|
||||
# host. Cannot be used with 'image'.
|
||||
## release = "33"
|
||||
|
||||
# Change the name of the image used to create the toolbox container. This is
|
||||
# useful for creating containers from custom-built images. Cannot be used with
|
||||
# 'distro' or 'release'.
|
||||
#
|
||||
# If the name does not contain a registry, the local image storage will be
|
||||
# consulted, and if it's not present there then it will be pulled from a
|
||||
# suitable remote registry.
|
||||
image = "registry.stage.redhat.io/ubi9/toolbox:latest"
|
4
tests/roles/set_image/tasks/main.yml
Normal file
4
tests/roles/set_image/tasks/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
# Copy the toolbox.conf file
|
||||
- name: Copy toolbox.conf file to set default image
|
||||
copy: src={{ role_path }}/files/toolbox.conf dest=/etc/containers/toolbox.conf force=yes mode=0666
|
@ -4,7 +4,8 @@
|
||||
vars:
|
||||
- artifacts: ./artifacts
|
||||
roles:
|
||||
- role: bats_installed
|
||||
#- role: bats_installed
|
||||
- role: set_image
|
||||
- role: nonroot_user
|
||||
- role: run_bats_tests
|
||||
tests:
|
||||
|
Loading…
Reference in New Issue
Block a user