Added new role to setup default container image

Related: rhbz#2000051
This commit is contained in:
Oliver Gutierrez 2021-09-14 10:19:51 +01:00
parent 62a7b56985
commit 8eac0d08fd
No known key found for this signature in database
GPG Key ID: C4D0A809DC608C15
3 changed files with 23 additions and 1 deletions

View 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"

View 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

View File

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