tripleo_podman_buildah_login.yml playbook from tripleo_podman
role is used in periodic jobs in upstream & downstream to push
In CentOS/RHEL, buildah comes from multiple repos, sometimes
untested package from diffferent repo get installed causing
issues. Making it parameterized will help to install specific
version of buildah and avoid breakage.
Signed-off-by: Chandan Kumar (raukadah) <firstname.lastname@example.org>
Since ansible "package" takes the version in the name directly, let's
ensure we have the "latest" of that version.
This allows to still use per-OS or per-release podman version in a
convenient and easy way.
Buildah login is not needed always, it's needed
when pushing to container registeries, so make it
optional by role var tripleo_podman_buildah_login set
to false by default.
buildah login and podman login with root do not share same
authfile, buildah uses /run/containers/0/auth.json while
podman uses /run/user/0/containers/auth.json resulted from
To ensure both podman and buildah can access the configured
registry, run login command with both.
It's mainly needed as container images are being pushed
with tripleoclient using sudo buildah push and buildah creds
are not setup.
All roles that have a hyphen in them need to be renamed to use an
underscore. This change creates a symlink to all roles using their
original name which will ensure we maintain compatibility with
the rest of the TripleO stack. This is being done because roles with
hyphens are no longer valid within collections.
A temp PBR update has been made to accomodate all of the symlinks to
the legacy role names.
Signed-off-by: Kevin Carter <email@example.com>