
Adding a container pull before the tagging operation so we are sure that the image is in the local registry. We were relying on docker-puppet.py script to perform the pull but now we do the tag with Ansible, it's safer to ensure that the image is here. This patch runs a container pull before the container tag command. It works with both podman & docker since we use container_cli. Change-Id: Ib9d4ae9c2b415e427deb4b0cfc441febaa210f77 Closes-Bug: #1802511
tripleo-container-tag
An Ansible role to tag Pacemaker-managed containers.
Requirements
It requires Docker or Podman on the host, depending which container CLI is used.
Role variables
- container_image: -- Name of the container image to tag.
- container_image_latest: -- Name of the tag.
- container_cli: -- Name of the Container CLI tool (default to docker).
Example Playbook
Sample playbook to call the role:
- name: Tag Pacemaker containers
hosts: all
roles:
- tripleo-container-tag vars: container_image: haproxy container_image_latest: pcmklatest container_cli: docker
License
Free software: Apache License (2.0)
Author Information
OpenStack TripleO team